#include <SimpleOutput.hpp>
Inheritance diagram for SimpleOutput:
Public Types | |
typedef OutputBase< StreamRepr >::params_t | params_t |
enum | Mode { READ, WRITE } |
Public Member Functions | |
SimpleOutput (const params_t *par) | |
template<typename InputIterator> | |
void | writeItemsetAndCounter (InputIterator first, InputIterator last, counter_t support) |
OutputBase (const params_t *par) | |
void | pushItem (item_t item) |
Push an item to the top of the stack. | |
void | write (counter_t support) |
write the content of the stack together with a counter | |
void | pushItemWithWrite (item_t item, counter_t support) |
Push an item to the top of the stack and write the content of it together with a counter. | |
void | pushItemWithPrevSupport (item_t item) |
Push an item to the top of the stack and write the content of it together with the previously used counter. | |
void | popItem () |
Pop an item from the top of the stack. | |
void | popAll () |
remove all items form the stack | |
void | rewind () |
void | flush () |
std::streamsize | readFromFile (char *buffer, std::streamsize buffer_size) |
void | writeToFile (const char *str, std::streamsize n) |
Static Public Member Functions | |
static bool DINLINE | isDFO () |
Protected Attributes | |
std::ifstream | input_stream |
stream to read | |
std::ofstream | output_stream |
steam to write | |
char * | file_buffer |
the low-level buffer | |
std::streamsize | file_buffer_size |
the size of the lowest level buffer | |
Mode | mode |
operating mode |
The main purpose of this class is to provide a basic class for the tests. If the size of the output is large, and the performance is important, you should use a BufferedOutput like NormalBufferedOutput. For more information about the performance of the different output classes test_results.html.
Definition at line 21 of file SimpleOutput.hpp.
|
Reimplemented from OutputBase< StreamRepr >. Definition at line 25 of file SimpleOutput.hpp. |
|
Definition at line 20 of file FileReprBase.hpp. |
|
Definition at line 27 of file SimpleOutput.hpp. |
|
Reimplemented from FileReprBase. Definition at line 63 of file StreamRepr.hpp. References StreamRepr::output_stream. |
|
Reimplemented from OutputBase< StreamRepr >. Definition at line 30 of file SimpleOutput.hpp. |
|
Definition at line 30 of file OutputBase.hpp. |
|
remove all items form the stack
Definition at line 92 of file OutputBase.hpp. |
|
Pop an item from the top of the stack.
Reimplemented in SimpleDFDecoder< BufferedNormalOutput< StreamRepr > >. Definition at line 87 of file OutputBase.hpp. |
|
Push an item to the top of the stack.
Reimplemented in SimpleDFDecoder< BufferedNormalOutput< StreamRepr > >. Definition at line 61 of file OutputBase.hpp. |
|
Push an item to the top of the stack and write the content of it together with the previously used counter.
Reimplemented in SimpleDFDecoder< BufferedNormalOutput< StreamRepr > >. Definition at line 81 of file OutputBase.hpp. |
|
Push an item to the top of the stack and write the content of it together with a counter.
Reimplemented in SimpleDFDecoder< BufferedNormalOutput< StreamRepr > >. Definition at line 73 of file OutputBase.hpp. |
|
Reimplemented from FileReprBase. Definition at line 68 of file StreamRepr.hpp. References StreamRepr::input_stream. |
|
Reimplemented from FileReprBase. Definition at line 58 of file StreamRepr.hpp. References StreamRepr::input_stream. |
|
write the content of the stack together with a counter
Reimplemented in SimpleDFDecoder< BufferedNormalOutput< StreamRepr > >. Definition at line 67 of file OutputBase.hpp. |
|
Reimplemented from OutputBase< StreamRepr >. Definition at line 36 of file SimpleOutput.hpp. References StreamRepr::output_stream. |
|
Reimplemented from FileReprBase. Definition at line 72 of file StreamRepr.hpp. References StreamRepr::output_stream. |
|
the low-level buffer
Definition at line 89 of file FileReprBase.hpp. Referenced by FDRepr::FDRepr(), FILERepr::FILERepr(), FileReprBase::FileReprBase(), FDRepr::flush(), StreamRepr::StreamRepr(), FDRepr::writeToFile(), and FileReprBase::~FileReprBase(). |
|
the size of the lowest level buffer
Definition at line 91 of file FileReprBase.hpp. Referenced by FDRepr::FDRepr(), and FDRepr::flush(). |
|
stream to read
Definition at line 78 of file StreamRepr.hpp. Referenced by SimpleTransactionReader::getNextItem(), SimpleTransactionReader::nextTransactionBIS(), SimpleTransactionReader::nextTransactionUAC(), StreamRepr::readFromFile(), StreamRepr::rewind(), StreamRepr::StreamRepr(), and StreamRepr::~StreamRepr(). |
|
operating mode
Definition at line 93 of file FileReprBase.hpp. Referenced by SimpleOutputTester::doTest(), FileReprBase::FileReprBase(), and FDRepr::~FDRepr(). |
|
steam to write
Definition at line 80 of file StreamRepr.hpp. Referenced by StreamRepr::flush(), StreamRepr::StreamRepr(), SimpleAssocRuleWriter::writeAssocRule(), writeItemsetAndCounter(), StreamRepr::writeToFile(), and StreamRepr::~StreamRepr(). |