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

SimpleAssocRuleWriter Class Reference

#include <SimpleAssocRuleWriter.hpp>

Inheritance diagram for SimpleAssocRuleWriter:

Inheritance graph
[legend]
Collaboration diagram for SimpleAssocRuleWriter:

Collaboration graph
[legend]
List of all members.

Public Types

typedef PARENT::params_t params_t
enum  Mode { READ, WRITE }

Public Member Functions

 SimpleAssocRuleWriter (const params_t *par)
template<typename ANTECIterator, typename CONSEQIterator>
void writeAssocRule (ANTECIterator antec_first, ANTECIterator antec_last, CONSEQIterator conseq_first, CONSEQIterator conseq_last, counter_t union_support, float confidence, float lift)
 SimpleDFDecoder (const params_t *par)
void pushItem (item_t item)
void write (const counter_t support)
void writeNEE (const counter_t support, const std::vector< item_t > &nee_items)
void pushItemWithWrite (item_t item, counter_t support)
void pushItemWithPrevSupport (item_t item)
void popItem ()
 SimpleDecoderBase (const typename DecoderBase< BufferedNormalOutput< StreamRepr > >::params_t *par)
void setCodeInverse (const std::vector< item_t > &code_inverse)
 DecoderBase (const params_t *par)
 BufferedNormalOutput (const params_t *par)
void writeItemsetAndCounter (InputIterator first, InputIterator last, counter_t support)
 BufferedOutput (const params_t *par)
 OutputBase (const params_t *par)
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 Types

typedef SimpleDFDecoder< BufferedNormalOutput<
StreamRepr > > 
PARENT

Protected Attributes

std::vector< item_tcode_inverse
 The inverse of code vector.
std::streamsize buffer_size
 The size of the buffer.
char * buffer
 The buffer.
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

Author:
Ferenc Bodon

Definition at line 14 of file SimpleAssocRuleWriter.hpp.


Member Typedef Documentation

typedef PARENT::params_t SimpleAssocRuleWriter::params_t
 

Reimplemented from SimpleDFDecoder< BufferedNormalOutput< StreamRepr > >.

Definition at line 19 of file SimpleAssocRuleWriter.hpp.

typedef SimpleDFDecoder< BufferedNormalOutput<StreamRepr> > SimpleAssocRuleWriter::PARENT [protected]
 

Definition at line 17 of file SimpleAssocRuleWriter.hpp.


Member Enumeration Documentation

enum FileReprBase::Mode [inherited]
 

Enumerator:
READ 
WRITE 

Definition at line 20 of file FileReprBase.hpp.


Constructor & Destructor Documentation

SimpleAssocRuleWriter::SimpleAssocRuleWriter const params_t par  )  [inline]
 

Definition at line 21 of file SimpleAssocRuleWriter.hpp.


Member Function Documentation

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

Definition at line 23 of file BufferedNormalOutput.hpp.

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

Definition at line 31 of file BufferedOutput.hpp.

References BufferedOutput< FR >::buffer, and BufferedOutput< FR >::buffer_size.

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

Definition at line 28 of file DecoderBase.hpp.

void StreamRepr::flush  )  [inline, inherited]
 

Reimplemented from FileReprBase.

Definition at line 63 of file StreamRepr.hpp.

References StreamRepr::output_stream.

static bool DINLINE SimpleDFDecoder< BufferedNormalOutput< StreamRepr > >::isDFO  )  [inline, static, inherited]
 

Reimplemented from BufferedNormalOutput< StreamRepr >.

Definition at line 20 of file SimpleDFDecoder.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 SimpleDFDecoder< BufferedNormalOutput< StreamRepr > >::popItem  )  [inline, inherited]
 

Reimplemented from OutputBase< StreamRepr >.

Definition at line 50 of file SimpleDFDecoder.hpp.

References SimpleDFDecoder< O >::decoded_set.

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

Reimplemented from OutputBase< StreamRepr >.

Definition at line 25 of file SimpleDFDecoder.hpp.

References SimpleDFDecoder< O >::decoded_set.

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

Reimplemented from OutputBase< StreamRepr >.

Definition at line 45 of file SimpleDFDecoder.hpp.

References SimpleDFDecoder< O >::last_support, and SimpleDFDecoder< O >::pushItemWithWrite().

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

Reimplemented from OutputBase< StreamRepr >.

Definition at line 39 of file SimpleDFDecoder.hpp.

References SimpleDFDecoder< O >::pushItem(), and SimpleDFDecoder< O >::write().

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 SimpleDecoderBase< BufferedNormalOutput< StreamRepr > >::setCodeInverse const std::vector< item_t > &  code_inverse  )  [inline, inherited]
 

Reimplemented from DecoderBase< BufferedNormalOutput< StreamRepr > >.

Definition at line 26 of file SimpleDecoderBase.hpp.

SimpleDecoderBase< BufferedNormalOutput< StreamRepr > >::SimpleDecoderBase const typename DecoderBase< BufferedNormalOutput< StreamRepr > >::params_t par  )  [inline, inherited]
 

Definition at line 24 of file SimpleDecoderBase.hpp.

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

Definition at line 17 of file SimpleDFDecoder.hpp.

void SimpleDFDecoder< BufferedNormalOutput< StreamRepr > >::write const counter_t  support  )  [inline, inherited]
 

Reimplemented from OutputBase< StreamRepr >.

Definition at line 30 of file SimpleDFDecoder.hpp.

References SimpleDFDecoder< O >::decoded_set, and SimpleDFDecoder< O >::last_support.

template<typename ANTECIterator, typename CONSEQIterator>
void SimpleAssocRuleWriter::writeAssocRule ANTECIterator  antec_first,
ANTECIterator  antec_last,
CONSEQIterator  conseq_first,
CONSEQIterator  conseq_last,
counter_t  union_support,
float  confidence,
float  lift
[inline]
 

Definition at line 25 of file SimpleAssocRuleWriter.hpp.

References SimpleDecoderBase< BufferedNormalOutput< StreamRepr > >::code_inverse, and StreamRepr::output_stream.

void BufferedNormalOutput< StreamRepr >::writeItemsetAndCounter InputIterator  first,
InputIterator  last,
counter_t  support
[inline, inherited]
 

Reimplemented from OutputBase< StreamRepr >.

Definition at line 33 of file BufferedNormalOutput.hpp.

References BufferedOutput< FR >::buffer_size, Formatter::ItemsetToStringBack(), and Formatter::SupportToStringBack().

void SimpleDFDecoder< BufferedNormalOutput< StreamRepr > >::writeNEE const counter_t  support,
const std::vector< item_t > &  nee_items
[inherited]
 

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* BufferedOutput< StreamRepr >::buffer [protected, inherited]
 

The buffer.

Definition at line 47 of file BufferedOutput.hpp.

std::streamsize BufferedOutput< StreamRepr >::buffer_size [protected, inherited]
 

The size of the buffer.

Definition at line 45 of file BufferedOutput.hpp.

std::vector<item_t> SimpleDecoderBase< BufferedNormalOutput< StreamRepr > >::code_inverse [protected, inherited]
 

The inverse of code vector.

code_inverse[i] stores the original code of the item, whose new code is i.

Definition at line 39 of file SimpleDecoderBase.hpp.

Referenced by writeAssocRule().

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(), writeAssocRule(), SimpleOutput::writeItemsetAndCounter(), StreamRepr::writeToFile(), and StreamRepr::~StreamRepr().


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