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

CdbBdbCache.hh

Go to the documentation of this file.
00001 #ifndef CDBBDB_CACHE_HH
00002 #define CDBBDB_CACHE_HH
00003 
00004 // File and Version Information:
00005 //      $Id: CdbBdbCache.hh,v 1.3 2004/10/21 20:35:49 gapon Exp $
00006 
00007 #include "CdbBase/CdbCommon.hh"
00008 
00009 template< class Object > class CdbItr;
00010 
00011 /// An interface to the caching facility
00012 /**
00013   * This class provides a cache interface for persistent object references.
00014   *
00015   * The cache is maintained through two parameters: "theKeyRef"
00016   * which serves as a key, and the "theValueRef" which represents
00017   * a value for the key.
00018   */
00019 template< class Object >
00020 class CdbBdbCache {
00021 
00022 public:
00023 
00024   /// Destructor
00025   /**
00026     * Moe details...
00027     */
00028     virtual ~CdbBdbCache( );
00029 
00030   // Operations
00031 
00032     virtual void addObject( const Object& theKeyRef,
00033                             const Object& theValueRef ) = 0;
00034 
00035     virtual Object findObject( const Object& theKeyRef ) const = 0;
00036 
00037     virtual CdbItr< Object > iterator( ) const = 0;
00038 };
00039 
00040 #ifdef    BABAR_COMP_INST
00041 #include "CdbBdb/CdbBdbCache.cc"
00042 #endif /* BABAR_COMP_INST */
00043 
00044 #endif /* CDBBDB_CACHE_HH */

Generated on Mon Dec 5 18:21:59 2005 for CDB by doxygen1.3-rc3