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

OrderedVectorDBCache< T_R, BIS > Class Template Reference

This class stores the filtered transactions in an ordered vector. More...

#include <OrderedVectorDBCache.hpp>

List of all members.

Public Types

typedef T_R::params_t params_t

Public Member Functions

 OrderedVectorDBCache (const params_t *par)
counter_t nextTransactionBIS (BIS &transaction)
template<class UAC>
counter_t nextTransactionUAC (UAC &transaction)
void rewind ()

Protected Attributes

std::vector< std::pair< BIS,
counter_t > > 
ordered_vector
std::vector< std::pair< BIS,
counter_t > >::iterator 
it


Detailed Description

template<class T_R, class BIS>
class OrderedVectorDBCache< T_R, BIS >

This class stores the filtered transactions in an ordered vector.

When inserting a new filtered transaction a binary search is called to find the proper place. Obviously if the filtered transaction is already contained in the vector then it counter is incremented and the transaction is not stored again.

Definition at line 27 of file OrderedVectorDBCache.hpp.


Member Typedef Documentation

template<class T_R, class BIS>
typedef T_R::params_t OrderedVectorDBCache< T_R, BIS >::params_t
 

Definition at line 30 of file OrderedVectorDBCache.hpp.


Constructor & Destructor Documentation

template<class T_R, class BIS>
OrderedVectorDBCache< T_R, BIS >::OrderedVectorDBCache const params_t par  )  [inline]
 

Definition at line 50 of file OrderedVectorDBCache.hpp.

References OrderedVectorDBCache< T_R, BIS >::it, and OrderedVectorDBCache< T_R, BIS >::ordered_vector.


Member Function Documentation

template<class T_R, class BIS>
counter_t OrderedVectorDBCache< T_R, BIS >::nextTransactionBIS BIS &  transaction  )  [inline]
 

Definition at line 71 of file OrderedVectorDBCache.hpp.

References OrderedVectorDBCache< T_R, BIS >::it, and OrderedVectorDBCache< T_R, BIS >::ordered_vector.

template<class T_R, class BIS>
template<class UAC>
counter_t OrderedVectorDBCache< T_R, BIS >::nextTransactionUAC UAC &  transaction  )  [inline]
 

Definition at line 83 of file OrderedVectorDBCache.hpp.

References OrderedVectorDBCache< T_R, BIS >::it, and OrderedVectorDBCache< T_R, BIS >::ordered_vector.

template<class T_R, class BIS>
void OrderedVectorDBCache< T_R, BIS >::rewind  )  [inline]
 

Definition at line 40 of file OrderedVectorDBCache.hpp.

References OrderedVectorDBCache< T_R, BIS >::it, and OrderedVectorDBCache< T_R, BIS >::ordered_vector.


Member Data Documentation

template<class T_R, class BIS>
std::vector<std::pair<BIS, counter_t> >::iterator OrderedVectorDBCache< T_R, BIS >::it [protected]
 

Definition at line 46 of file OrderedVectorDBCache.hpp.

Referenced by OrderedVectorDBCache< T_R, BIS >::nextTransactionBIS(), OrderedVectorDBCache< T_R, BIS >::nextTransactionUAC(), OrderedVectorDBCache< T_R, BIS >::OrderedVectorDBCache(), and OrderedVectorDBCache< T_R, BIS >::rewind().

template<class T_R, class BIS>
std::vector< std::pair<BIS, counter_t> > OrderedVectorDBCache< T_R, BIS >::ordered_vector [protected]
 

Definition at line 45 of file OrderedVectorDBCache.hpp.

Referenced by OrderedVectorDBCache< T_R, BIS >::nextTransactionBIS(), OrderedVectorDBCache< T_R, BIS >::nextTransactionUAC(), OrderedVectorDBCache< T_R, BIS >::OrderedVectorDBCache(), and OrderedVectorDBCache< T_R, BIS >::rewind().


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