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

CdbBdbSimpleCache Class Reference

A simple implementation of the interface to the caching facility. More...

#include <CdbBdbSimpleCache.hh>

Inheritance diagram for CdbBdbSimpleCache:

CdbBdbCache< ooRef(ooObj) > List of all members.

Public Member Functions

 CdbBdbSimpleCache ()
 Default constructor.

virtual ~CdbBdbSimpleCache ()
 Destructor.

virtual void addObject (const ooRef(ooObj)&theKeyRef, const ooRef(ooObj)&theValueRef)
 Add a new element to the cache.

virtual ooRef (ooObj) findObject(const ooRef(ooObj)&theKeyRef) const
 Find an object at the cache.


Static Public Member Functions

std::string refToString (const ooRef(ooObj)&theRef)
 Translate an OID into a string.


Public Attributes

virtual CdbItr< ooRef(ooObj) iterator )() const
 Create an iterator for keys stored at the cache.


Detailed Description

A simple implementation of the interface to the caching facility.

This class provides a cache implementation based on std::map for persistent object references of ooRef(ooObj) type.

See also:
class CdbBdbCache

Definition at line 21 of file CdbBdbSimpleCache.hh.


Constructor & Destructor Documentation

CdbBdbSimpleCache::CdbBdbSimpleCache  
 

Default constructor.

Definition at line 114 of file CdbBdbSimpleCache.cc.

References ooRef().

CdbBdbSimpleCache::~CdbBdbSimpleCache   [virtual]
 

Destructor.

Definition at line 119 of file CdbBdbSimpleCache.cc.


Member Function Documentation

void CdbBdbSimpleCache::addObject const ooRef(ooObj)&    theKeyRef,
const ooRef(ooObj)&    theValueRef
[virtual]
 

Add a new element to the cache.

Implements the corresponding method at the base class.

See also:
CdbBdbCache::addObject()

Implements CdbBdbCache< ooRef(ooObj) >.

Definition at line 126 of file CdbBdbSimpleCache.cc.

References refToString().

virtual CdbBdbSimpleCache::ooRef ooObj    const [virtual]
 

Find an object at the cache.

Implements the corresponding method at the base class.

See also:
CdbBdbCache::findObject()

std::string CdbBdbSimpleCache::refToString const ooRef(ooObj)&    theRef [static]
 

Translate an OID into a string.

This method is used to produce dictionary keys from OID-s.

Definition at line 161 of file CdbBdbSimpleCache.cc.

Referenced by addObject().


Member Data Documentation

virtual CdbItr<ooRef(ooObj) CdbBdbSimpleCache::iterator)( ) const
 

Create an iterator for keys stored at the cache.

Implements the corresponding method at the base class.

See also:
CdbBdbCache::iterator()


The documentation for this class was generated from the following files:
Generated on Mon Dec 5 18:22:19 2005 for CDB by doxygen1.3-rc3