#include <NonOptDFOutput.hpp>
Inheritance diagram for bracz::NonOptDFOutput< FR >:
Public Types | |
typedef OutputBase< FR >::params_t | params_t |
Public Member Functions | |
NonOptDFOutput (const params_t *par) | |
~NonOptDFOutput () | |
void | pushItem (item_t item) |
void | write (counter_t support) |
void | pushItemWithWrite (item_t item, counter_t support) |
void | pushItemWithPrevSupport (item_t item) |
void | popItem () |
void | popAll () |
template<typename InputIterator> | |
void | writeItemsetAndCounter (InputIterator first, InputIterator last, counter_t support) |
Writes out one itemset and its counter. | |
Static Public Member Functions | |
static bool DINLINE | isDFO () |
Private Attributes | |
int | dummysum |
counter_t | last_support |
Definition at line 26 of file NonOptDFOutput.hpp.
|
Reimplemented from OutputBase< FR >. Definition at line 30 of file NonOptDFOutput.hpp. |
|
Definition at line 31 of file NonOptDFOutput.hpp. |
|
Definition at line 35 of file NonOptDFOutput.hpp. References bracz::NonOptDFOutput< FR >::dummysum. |
|
Reimplemented from OutputBase< FR >. Definition at line 39 of file NonOptDFOutput.hpp. |
|
Reimplemented from OutputBase< FR >. Definition at line 71 of file NonOptDFOutput.hpp. References bracz::NonOptDFOutput< FR >::dummysum. |
|
Reimplemented from OutputBase< FR >. Definition at line 66 of file NonOptDFOutput.hpp. References bracz::NonOptDFOutput< FR >::dummysum. |
|
Reimplemented from OutputBase< FR >. Definition at line 44 of file NonOptDFOutput.hpp. References bracz::NonOptDFOutput< FR >::dummysum. Referenced by bracz::NonOptDFOutput< FR >::pushItemWithWrite(). |
|
Reimplemented from OutputBase< FR >. Definition at line 61 of file NonOptDFOutput.hpp. References bracz::NonOptDFOutput< FR >::last_support, and bracz::NonOptDFOutput< FR >::pushItemWithWrite(). |
|
Reimplemented from OutputBase< FR >. Definition at line 55 of file NonOptDFOutput.hpp. References bracz::NonOptDFOutput< FR >::pushItem(), and bracz::NonOptDFOutput< FR >::write(). Referenced by bracz::NonOptDFOutput< FR >::pushItemWithPrevSupport(). |
|
Reimplemented from OutputBase< FR >. Definition at line 49 of file NonOptDFOutput.hpp. References bracz::NonOptDFOutput< FR >::dummysum, and bracz::NonOptDFOutput< FR >::last_support. Referenced by bracz::NonOptDFOutput< FR >::pushItemWithWrite(). |
|
Writes out one itemset and its counter.
Here you can see an example of the usage #include "common.hpp" #include "io/output/normal/SimpleOutput.hpp" #include "io/StreamRepr.hpp" #include "io/FILERepr.hpp" #include "io/output/OutputBase.hpp" #include "io/output/normal/BufferedNormalOutput.hpp" #include <set> #include <vector> using namespace std; int main() { typedef Bodon::SimpleOutput O_M; // typedef BufferedNormalOutput<FStreamOutput> O_M; // typedef BufferedNormalOutput<FILEOutput> O_M; O_M::params_t par; par.file_name = "output.txt"; O_M o_manager(&par); counter_t support = 19283; // itemset is stored in an array item_t itemset_array[] = {1, 4, 2, 8, 5, 7}; const int N = sizeof(itemset_array) / sizeof(item_t); o_manager.writeItemsetAndCounter( (item_t*) itemset_array, itemset_array + N, support); // itemset is stored in an vector vector<item_t> itemset_vector(itemset_array, itemset_array + N); o_manager.writeItemsetAndCounter( itemset_vector.begin(), itemset_vector.end(), support); // itemset is stored in an set set<item_t> itemset_set(itemset_array, itemset_array + N); o_manager.writeItemsetAndCounter( itemset_set.begin(), itemset_set.end(), support); return 1; } Reimplemented in CacheNormalDecoder< FR >, NoOutput< ISDFO, FR >, BufferedNormalOutput< FR >, SimpleOutput, and BufferedNormalOutput< StreamRepr >. Definition at line 51 of file OutputBase.hpp. Referenced by NoOutput< ISDFO, FR >::writeItemsetAndCounter(). |
|
Definition at line 76 of file NonOptDFOutput.hpp. Referenced by bracz::NonOptDFOutput< FR >::popAll(), bracz::NonOptDFOutput< FR >::popItem(), bracz::NonOptDFOutput< FR >::pushItem(), bracz::NonOptDFOutput< FR >::write(), and bracz::NonOptDFOutput< FR >::~NonOptDFOutput(). |
|
Definition at line 77 of file NonOptDFOutput.hpp. Referenced by bracz::NonOptDFOutput< FR >::pushItemWithPrevSupport(), and bracz::NonOptDFOutput< FR >::write(). |