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

StatInput< TR > Class Template Reference

An input manager class that collects some statistics (number of transactions, number of items, average size of the transactions) about the transation database. More...

#include <StatInput.hpp>

List of all members.

Public Types

typedef TR::params_t params_t

Public Member Functions

 StatInput (const params_t *par)
template<class BIS>
counter_t nextTransactionBIS (BIS &transaction)
 ~StatInput ()

Private Attributes

unsigned int nr_of_transaction
unsigned int sum_of_tr_sizes
std::vector< bool > items
bool first_run
counter_t temp_ret_value


Detailed Description

template<class TR = brBufferedTransactionReader< >>
class StatInput< TR >

An input manager class that collects some statistics (number of transactions, number of items, average size of the transactions) about the transation database.

This class is a wrapper around a transaction_reader. Collecting statistics needs resources thus do not use this class unless you are not interesred in performance.

Definition at line 23 of file StatInput.hpp.


Member Typedef Documentation

template<class TR = brBufferedTransactionReader< >>
typedef TR::params_t StatInput< TR >::params_t
 

Definition at line 31 of file StatInput.hpp.


Constructor & Destructor Documentation

template<class TR = brBufferedTransactionReader< >>
StatInput< TR >::StatInput const params_t par  )  [inline]
 

Definition at line 32 of file StatInput.hpp.

template<class TR = brBufferedTransactionReader< >>
StatInput< TR >::~StatInput  )  [inline]
 

Definition at line 60 of file StatInput.hpp.

References StatInput< TR >::items, StatInput< TR >::nr_of_transaction, and StatInput< TR >::sum_of_tr_sizes.


Member Function Documentation

template<class TR = brBufferedTransactionReader< >>
template<class BIS>
counter_t StatInput< TR >::nextTransactionBIS BIS &  transaction  )  [inline]
 

Definition at line 35 of file StatInput.hpp.

References StatInput< TR >::first_run, StatInput< TR >::items, StatInput< TR >::nr_of_transaction, StatInput< TR >::sum_of_tr_sizes, and StatInput< TR >::temp_ret_value.


Member Data Documentation

template<class TR = brBufferedTransactionReader< >>
bool StatInput< TR >::first_run [private]
 

Definition at line 27 of file StatInput.hpp.

Referenced by StatInput< TR >::nextTransactionBIS().

template<class TR = brBufferedTransactionReader< >>
std::vector<bool> StatInput< TR >::items [private]
 

Definition at line 26 of file StatInput.hpp.

Referenced by StatInput< TR >::nextTransactionBIS(), and StatInput< TR >::~StatInput().

template<class TR = brBufferedTransactionReader< >>
unsigned int StatInput< TR >::nr_of_transaction [private]
 

Definition at line 25 of file StatInput.hpp.

Referenced by StatInput< TR >::nextTransactionBIS(), and StatInput< TR >::~StatInput().

template<class TR = brBufferedTransactionReader< >>
unsigned int StatInput< TR >::sum_of_tr_sizes [private]
 

Definition at line 25 of file StatInput.hpp.

Referenced by StatInput< TR >::nextTransactionBIS(), and StatInput< TR >::~StatInput().

template<class TR = brBufferedTransactionReader< >>
counter_t StatInput< TR >::temp_ret_value [private]
 

Definition at line 29 of file StatInput.hpp.

Referenced by StatInput< TR >::nextTransactionBIS().


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