Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

Impala::Util::Cache< IdxT, ElemT > Class Template Reference

#include <Cache.h>

Collaboration diagram for Impala::Util::Cache< IdxT, ElemT >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Cache (int maxCacheSize=0, bool elemIsPointer=true)
virtual ~Cache ()
void SetSize (int maxCacheSize)
void AddElement (IdxT idx, ElemT elem)
bool GetElement (IdxT idx, ElemT &elem)
void RemoveElement (IdxT idx)
void Dump (String name) const
void Clear ()
bool Empty ()

Private Types

typedef std::deque< CacheElem<
IdxT, ElemT > > 
CacheQueue
typedef CacheQueue::iterator CacheIterator
typedef CacheQueue::const_iterator CacheConstIterator

Private Member Functions

void PopBack ()
 Cache (const Cache &)
Cacheoperator= (const Cache &)

Private Attributes

CacheQueue mQueue
int mMaxCacheSize
bool mElemIsPointer
 ILOG_VAR_DECL

Classes

class  CacheElem

Detailed Description

template<class IdxT, class ElemT>
class Impala::Util::Cache< IdxT, ElemT >

Definition at line 15 of file Cache.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 19 11:39:18 2010 for ImpalaSrc by  doxygen 1.5.1