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

brBufferedTransactionReader< T_R > Class Template Reference

Another buffered transaction reader, taken from bracz's FIMI04 code. More...

#include <brBufferedTransactionReader.hpp>

Inheritance diagram for brBufferedTransactionReader< T_R >:

Inheritance graph
[legend]
Collaboration diagram for brBufferedTransactionReader< T_R >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef BufferedTransactionReader<
T_R >::params_t 
params_t

Public Member Functions

 brBufferedTransactionReader (const params_t *par)
void DINLINE nextChar (char &c)
template<class BIS>
counter_t nextTransactionBIS (BIS &Items)
 Reads in one transaction from the file and writes it to a class whose type is given by the template.
template<class UAC>
counter_t nextTransactionUAC (UAC &transaction)
 Reads in one transaction from the file and writes it to a class whose type is given by the template.
void rewind ()
 Go to the beginning of the transaction file.

Protected Attributes

std::streamsize buffer_size
 The size of the buffer.
char * buffer
 The buffer.

Private Attributes

char * bufp
char * bufend
bool ateof

Detailed Description

template<class T_R = TransactionReader<>>
class brBufferedTransactionReader< T_R >

Another buffered transaction reader, taken from bracz's FIMI04 code.

Definition at line 27 of file brBufferedTransactionReader.hpp.


Member Typedef Documentation

template<class T_R = TransactionReader<>>
typedef BufferedTransactionReader<T_R>::params_t brBufferedTransactionReader< T_R >::params_t
 

Definition at line 34 of file brBufferedTransactionReader.hpp.


Constructor & Destructor Documentation

template<class T_R = TransactionReader<>>
brBufferedTransactionReader< T_R >::brBufferedTransactionReader const params_t par  )  [inline]
 

Definition at line 36 of file brBufferedTransactionReader.hpp.


Member Function Documentation

template<class T_R = TransactionReader<>>
void DINLINE brBufferedTransactionReader< T_R >::nextChar char &  c  )  [inline]
 

Definition at line 42 of file brBufferedTransactionReader.hpp.

References brBufferedTransactionReader< T_R >::ateof, brBufferedTransactionReader< T_R >::bufend, BufferedTransactionReader< T_R >::buffer, and brBufferedTransactionReader< T_R >::bufp.

Referenced by brBufferedTransactionReader< T_R >::nextTransactionBIS().

template<class T_R = TransactionReader<>>
template<class BIS>
counter_t brBufferedTransactionReader< T_R >::nextTransactionBIS BIS &  Items  )  [inline]
 

Reads in one transaction from the file and writes it to a class whose type is given by the template.

Definition at line 62 of file brBufferedTransactionReader.hpp.

References brBufferedTransactionReader< T_R >::ateof, and brBufferedTransactionReader< T_R >::nextChar().

template<class T_R = TransactionReader<>>
template<class UAC>
counter_t brBufferedTransactionReader< T_R >::nextTransactionUAC UAC &  transaction  )  [inline]
 

Reads in one transaction from the file and writes it to a class whose type is given by the template.

Definition at line 94 of file brBufferedTransactionReader.hpp.

template<class T_R = TransactionReader<>>
void brBufferedTransactionReader< T_R >::rewind  )  [inline]
 

Go to the beginning of the transaction file.

Definition at line 100 of file brBufferedTransactionReader.hpp.

References brBufferedTransactionReader< T_R >::ateof, brBufferedTransactionReader< T_R >::bufend, BufferedTransactionReader< T_R >::buffer, and brBufferedTransactionReader< T_R >::bufp.


Member Data Documentation

template<class T_R = TransactionReader<>>
bool brBufferedTransactionReader< T_R >::ateof [private]
 

Definition at line 31 of file brBufferedTransactionReader.hpp.

Referenced by brBufferedTransactionReader< T_R >::nextChar(), brBufferedTransactionReader< T_R >::nextTransactionBIS(), and brBufferedTransactionReader< T_R >::rewind().

template<class T_R = TransactionReader<>>
char * brBufferedTransactionReader< T_R >::bufend [private]
 

Definition at line 30 of file brBufferedTransactionReader.hpp.

Referenced by brBufferedTransactionReader< T_R >::nextChar(), and brBufferedTransactionReader< T_R >::rewind().

template<class T_R = TransactionReader<>>
char* BufferedTransactionReader< T_R >::buffer [protected, inherited]
 

The buffer.

Definition at line 46 of file BufferedTransactionReader.hpp.

Referenced by BufferedTransactionReader< T_R >::BufferedTransactionReader(), LBufferedTransactionReader< T_R >::getNextItem(), LBufferedTransactionReader< T_R >::LBufferedTransactionReader(), brBufferedTransactionReader< T_R >::nextChar(), LBufferedTransactionReader< T_R >::rewind(), brBufferedTransactionReader< T_R >::rewind(), and BufferedTransactionReader< T_R >::~BufferedTransactionReader().

template<class T_R = TransactionReader<>>
std::streamsize BufferedTransactionReader< T_R >::buffer_size [protected, inherited]
 

The size of the buffer.

Definition at line 44 of file BufferedTransactionReader.hpp.

Referenced by BufferedTransactionReader< T_R >::BufferedTransactionReader(), LBufferedTransactionReader< T_R >::getNextItem(), LBufferedTransactionReader< T_R >::LBufferedTransactionReader(), and LBufferedTransactionReader< T_R >::rewind().

template<class T_R = TransactionReader<>>
char* brBufferedTransactionReader< T_R >::bufp [private]
 

Definition at line 30 of file brBufferedTransactionReader.hpp.

Referenced by brBufferedTransactionReader< T_R >::nextChar(), and brBufferedTransactionReader< T_R >::rewind().


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