| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DbiCache Class Reference

Id
DbiCache.h,v 1.19 2006/08/08 10:51:32 west Exp
More...

#include <DbiCache.h>

Collaboration diagram for DbiCache:

[legend]
List of all members.

Public Types

typedef std::list< DbiResult * > ResultList_t

Public Member Functions

 DbiCache (DbiTableProxy &qp, const string &tableName)
virtual ~DbiCache ()
UInt_t GetMaxSize () const
UInt_t GetCurSize () const
UInt_t GetNumAdopted () const
UInt_t GetNumReused () const
const DbiResultSearch (const Context &vc, const Dbi::SubSite &subsite, const Dbi::Task &task) const
 Primary searches.
const DbiResultSearch (const string &sqlQualifiers) const
const DbiResultSearch (const DbiValidityRec &vr, const string &sqlQualifiers="") const
 Secondary search.
ostream & ShowStatistics (ostream &msg) const
void Adopt (DbiResult *res, bool registerKey=true)
void Purge ()
void SetStale ()

Private Member Functions

 DbiCache (const DbiCache &)
DbiCacheoperator= (const DbiCache &)
const ResultList_tGetSubCache (Int_t aggNo) const
void Purge (ResultList_t &subCache, const DbiResult *res=0)

Private Attributes

DbiTableProxyfTableProxy
 TableProxy owning cache.
const string & fTableName
 Name of associated table.
std::map< Int_t, ResultList_tfCache
 Map of sub-caches indexed by aggregate number.
UInt_t fCurSize
 Current size.
UInt_t fMaxSize
 Max (high water) size.
UInt_t fNumAdopted
 Total number adopted.
UInt_t fNumReused
 Number reused i.e. found.

Detailed Description

Id
DbiCache.h,v 1.19 2006/08/08 10:51:32 west Exp

Definition at line 41 of file DbiCache.h.


Member Typedef Documentation

typedef std::list<DbiResult*> DbiCache::ResultList_t

Definition at line 47 of file DbiCache.h.


Constructor & Destructor Documentation

DbiCache::DbiCache ( DbiTableProxy qp,
const string &  tableName 
)

virtual DbiCache::~DbiCache (  )  [virtual]

DbiCache::DbiCache ( const DbiCache  )  [private]


Member Function Documentation

UInt_t DbiCache::GetMaxSize (  )  const [inline]

Definition at line 57 of file DbiCache.h.

00057 { return fMaxSize; } 

UInt_t DbiCache::GetCurSize (  )  const [inline]

Definition at line 58 of file DbiCache.h.

00058 { return fCurSize; } 

UInt_t DbiCache::GetNumAdopted (  )  const [inline]

Definition at line 59 of file DbiCache.h.

00059 { return fNumAdopted; } 

UInt_t DbiCache::GetNumReused (  )  const [inline]

Definition at line 60 of file DbiCache.h.

00060 { return fNumReused; } 

const DbiResult* DbiCache::Search ( const Context vc,
const Dbi::SubSite subsite,
const Dbi::Task task 
) const

Primary searches.

const DbiResult* DbiCache::Search ( const string &  sqlQualifiers  )  const

const DbiResult* DbiCache::Search ( const DbiValidityRec vr,
const string &  sqlQualifiers = "" 
) const

Secondary search.

ostream& DbiCache::ShowStatistics ( ostream &  msg  )  const

void DbiCache::Adopt ( DbiResult res,
bool  registerKey = true 
)

void DbiCache::Purge (  ) 

void DbiCache::SetStale (  ) 

DbiCache& DbiCache::operator= ( const DbiCache  )  [private]

const ResultList_t* DbiCache::GetSubCache ( Int_t  aggNo  )  const [private]

void DbiCache::Purge ( ResultList_t subCache,
const DbiResult res = 0 
) [private]


Member Data Documentation

DbiTableProxy& DbiCache::fTableProxy [private]

TableProxy owning cache.

Definition at line 96 of file DbiCache.h.

const string& DbiCache::fTableName [private]

Name of associated table.

Definition at line 99 of file DbiCache.h.

std::map<Int_t,ResultList_t> DbiCache::fCache [private]

Map of sub-caches indexed by aggregate number.

Each sub-cache is a list of owned results for that aggregate.

Definition at line 104 of file DbiCache.h.

UInt_t DbiCache::fCurSize [mutable, private]

Current size.

Definition at line 107 of file DbiCache.h.

UInt_t DbiCache::fMaxSize [mutable, private]

Max (high water) size.

Definition at line 110 of file DbiCache.h.

UInt_t DbiCache::fNumAdopted [mutable, private]

Total number adopted.

Definition at line 113 of file DbiCache.h.

UInt_t DbiCache::fNumReused [mutable, private]

Number reused i.e. found.

Definition at line 116 of file DbiCache.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:15:47 2011 for DatabaseInterface by doxygen 1.4.7