Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

SimpleOutput Class Reference

This is a very simple class that implements OutputBase::writeItemsetAndCounter by the call of an STL' copy procedure. More...

#include <SimpleOutput.hpp>

Inheritance diagram for SimpleOutput:

Inheritance graph
[legend]
Collaboration diagram for SimpleOutput:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

This is a very simple class that implements OutputBase::writeItemsetAndCounter by the call of an STL' copy procedure.

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.

See also:
test_results.html

Definition at line 21 of file SimpleOutput.hpp.


Member Typedef Documentation

typedef OutputBase<StreamRepr>::params_t SimpleOutput::params_t
 

Reimplemented from OutputBase< StreamRepr >.

Definition at line 25 of file SimpleOutput.hpp.


Member Enumeration Documentation

enum FileReprBase::Mode [inherited]
 

Enumerator:
READ 
WRITE 

Definition at line 20 of file FileReprBase.hpp.


Constructor & Destructor Documentation

SimpleOutput::SimpleOutput const params_t par  )  [inline]
 

Definition at line 27 of file SimpleOutput.hpp.


Member Function Documentation

void StreamRepr::flush  )  [inline, inherited]
 

Reimplemented from FileReprBase.

Definition at line 63 of file StreamRepr.hpp.

References StreamRepr::output_stream.

static bool DINLINE SimpleOutput::isDFO  )  [inline, static]
 

Reimplemented from OutputBase< StreamRepr >.

Definition at line 30 of file SimpleOutput.hpp.

OutputBase< StreamRepr >::OutputBase const params_t par  )  [inline, inherited]
 

Definition at line 30 of file OutputBase.hpp.

void OutputBase< StreamRepr >::popAll  )  [inline, inherited]
 

remove all items form the stack

Definition at line 92 of file OutputBase.hpp.

void OutputBase< StreamRepr >::popItem  )  [inline, inherited]
 

Pop an item from the top of the stack.

Reimplemented in SimpleDFDecoder< BufferedNormalOutput< StreamRepr > >.

Definition at line 87 of file OutputBase.hpp.

void OutputBase< StreamRepr >::pushItem item_t  item  )  [inline, inherited]
 

Push an item to the top of the stack.

Reimplemented in SimpleDFDecoder< BufferedNormalOutput< StreamRepr > >.

Definition at line 61 of file OutputBase.hpp.

void OutputBase< StreamRepr >::pushItemWithPrevSupport item_t  item  )  [inline, inherited]
 

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.

void OutputBase< StreamRepr >::pushItemWithWrite item_t  item,
counter_t  support
[inline, inherited]
 

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.

std::streamsize StreamRepr::readFromFile char *  buffer,
std::streamsize  buffer_size
[inline, inherited]
 

Reimplemented from FileReprBase.

Definition at line 68 of file StreamRepr.hpp.

References StreamRepr::input_stream.

void StreamRepr::rewind  )  [inline, inherited]
 

Reimplemented from FileReprBase.

Definition at line 58 of file StreamRepr.hpp.

References StreamRepr::input_stream.

void OutputBase< StreamRepr >::write counter_t  support  )  [inline, inherited]
 

write the content of the stack together with a counter

Reimplemented in SimpleDFDecoder< BufferedNormalOutput< StreamRepr > >.

Definition at line 67 of file OutputBase.hpp.

template<typename InputIterator>
void SimpleOutput::writeItemsetAndCounter InputIterator  first,
InputIterator  last,
counter_t  support
[inline]
 

Reimplemented from OutputBase< StreamRepr >.

Definition at line 36 of file SimpleOutput.hpp.

References StreamRepr::output_stream.

void StreamRepr::writeToFile const char *  str,
std::streamsize  n
[inline, inherited]
 

Reimplemented from FileReprBase.

Definition at line 72 of file StreamRepr.hpp.

References StreamRepr::output_stream.


Member Data Documentation

char* FileReprBase::file_buffer [protected, inherited]
 

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().

std::streamsize FileReprBase::file_buffer_size [protected, inherited]
 

the size of the lowest level buffer

Definition at line 91 of file FileReprBase.hpp.

Referenced by FDRepr::FDRepr(), and FDRepr::flush().

std::ifstream StreamRepr::input_stream [protected, inherited]
 

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().

Mode FileReprBase::mode [protected, inherited]
 

operating mode

Definition at line 93 of file FileReprBase.hpp.

Referenced by SimpleOutputTester::doTest(), FileReprBase::FileReprBase(), and FDRepr::~FDRepr().

std::ofstream StreamRepr::output_stream [protected, inherited]
 

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().


The documentation for this class was generated from the following file:
Generated on Sun Sep 17 17:55:38 2006 for FIM environment by  doxygen 1.4.4