Bdb packages | Design docs | Source docs | Guidelines | Recent releases

Search | Site Map .

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

BdbCondRInfoCache Class Reference
[BdbCondRemote]

#include <BdbCondRInfoCache.hh>

Inheritance diagram for BdbCondRInfoCache:

BdbCondRCacheNode< BdbCondRInfoFederation > List of all members.

Public Methods

 BdbCondRInfoCache ()
virtual ~BdbCondRInfoCache ()
bool isValid () const
BdbCondReadWriteLockgetLock ()
void setValid (bool isValidFlag)
BdbCondRInfoFederationfindFederation (const char *theFederationName)
BdbCondRInfoSnapshotfindSnapshot (const char *theFederationName, const char *theSnapshotName)
BdbCondRInfoDetectorfindDetector (const char *theFederationName, const char *theSnapshotName, const char *theDetectorName)
BdbCondRInfoOriginfindOrigin (const char *theFederationName, const char *theSnapshotName, const char *theDetectorName, const char *theOriginName)
BdbCondRInfoContainerfindContainer (const char *theFederationName, const char *theSnapshotName, const char *theDetectorName, const char *theOriginName, const char *theContainerName)
virtual void clear ()

Private Methods

 BdbCondRInfoCache (const BdbCondRInfoCache &theCache)
BdbCondRInfoCache & operator= (const BdbCondRInfoCache &theCache)

Private Attributes

bool _isValid
BdbCondReadWriteLock _myLock

Constructor & Destructor Documentation

BdbCondRInfoCache::BdbCondRInfoCache  
 

Definition at line 66 of file BdbCondRInfoCache.cc.

References false.

BdbCondRInfoCache::~BdbCondRInfoCache   [virtual]
 

Definition at line 82 of file BdbCondRInfoCache.cc.

BdbCondRInfoCache::BdbCondRInfoCache const BdbCondRInfoCache &    theCache [private]
 

Definition at line 72 of file BdbCondRInfoCache.cc.

References _isValid.


Member Function Documentation

void BdbCondRInfoCache::clear   [virtual]
 

Invalidate the cache and release the allocated data structures.

NOTE: This method _extends_ the one defined in the base class in order to reset the locally defined data structures in addition to what is done in the base class.

Reimplemented from BdbCondRCacheNode< BdbCondRInfoFederation >.

Definition at line 161 of file BdbCondRInfoCache.cc.

References _isValid, and BdbCondRCacheNode< Object >::clear().

Referenced by BdbCondRInfoImpl::reloadCache().

BdbCondRInfoContainer * BdbCondRInfoCache::findContainer const char *    theFederationName,
const char *    theSnapshotName,
const char *    theDetectorName,
const char *    theOriginName,
const char *    theContainerName
 

Definition at line 146 of file BdbCondRInfoCache.cc.

References BdbCondRCacheNode< BdbCondRInfoContainer >::find(), and findOrigin().

Referenced by BdbCondRInfoImpl::getGenealogy(), BdbCondRInfoImpl::getHistory(), BdbCondRInfoImpl::getRevisions(), BdbCondRInfoImpl::resetContainer(), BdbCondRInfoImpl::tryGetGenealogy(), BdbCondRInfoImpl::tryGetHistory(), and BdbCondRInfoImpl::tryGetRevisions().

BdbCondRInfoDetector * BdbCondRInfoCache::findDetector const char *    theFederationName,
const char *    theSnapshotName,
const char *    theDetectorName
 

Definition at line 122 of file BdbCondRInfoCache.cc.

References BdbCondRCacheNode< BdbCondRInfoDetector >::find(), and findSnapshot().

Referenced by findOrigin(), and BdbCondRInfoImpl::getOrigins().

BdbCondRInfoFederation * BdbCondRInfoCache::findFederation const char *    theFederationName
 

The following "find" methods will make their search down the hierarchical cache tree and return a pointer to the corresponding object or just null if none was found.

Definition at line 107 of file BdbCondRInfoCache.cc.

References BdbCondRCacheNode< BdbCondRInfoFederation >::find().

Referenced by findSnapshot(), and BdbCondRInfoImpl::getSnapshots().

BdbCondRInfoOrigin * BdbCondRInfoCache::findOrigin const char *    theFederationName,
const char *    theSnapshotName,
const char *    theDetectorName,
const char *    theOriginName
 

Definition at line 133 of file BdbCondRInfoCache.cc.

References BdbCondRCacheNode< BdbCondRInfoOrigin >::find(), and findDetector().

Referenced by findContainer(), and BdbCondRInfoImpl::getContainers().

BdbCondRInfoSnapshot * BdbCondRInfoCache::findSnapshot const char *    theFederationName,
const char *    theSnapshotName
 

Definition at line 113 of file BdbCondRInfoCache.cc.

References BdbCondRCacheNode< BdbCondRInfoSnapshot >::find(), and findFederation().

Referenced by findDetector(), and BdbCondRInfoImpl::getDetectors().

BdbCondReadWriteLock & BdbCondRInfoCache::getLock   [inline]
 

Definition at line 135 of file BdbCondRInfoCache.hh.

References _myLock.

Referenced by BdbCondRInfoLoader::cacheLockBeginRead(), BdbCondRInfoImpl::cacheLockBeginRead(), BdbCondRInfoImpl::cacheLockDowngrade(), BdbCondRInfoLoader::cacheLockEndRead(), BdbCondRInfoImpl::cacheLockEndRead(), and BdbCondRInfoImpl::cacheLockUpgrade().

bool BdbCondRInfoCache::isValid   [inline]
 

Definition at line 129 of file BdbCondRInfoCache.hh.

References _isValid.

Referenced by BdbCondRInfoImpl::reloadCache().

BdbCondRInfoCache & BdbCondRInfoCache::operator= const BdbCondRInfoCache &    theCache [private]
 

Definition at line 91 of file BdbCondRInfoCache.cc.

References _isValid, and BdbCondRCacheNode< Object >::operator=().

void BdbCondRInfoCache::setValid bool    isValidFlag [inline]
 

Definition at line 141 of file BdbCondRInfoCache.hh.

References _isValid.

Referenced by BdbCondRInfoImpl::reloadCache().


Member Data Documentation

bool BdbCondRInfoCache::_isValid [private]
 

Definition at line 117 of file BdbCondRInfoCache.hh.

Referenced by BdbCondRInfoCache(), clear(), isValid(), operator=(), and setValid().

BdbCondReadWriteLock BdbCondRInfoCache::_myLock [private]
 

Definition at line 121 of file BdbCondRInfoCache.hh.

Referenced by getLock().


The documentation for this class was generated from the following files:

 


BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us

Page Owner: Jacek Becla
Last Update: October 04, 2002