ecolab::cachedDBM< key, char * > Class Template Reference
Inheritance diagram for ecolab::cachedDBM< key, char * >:
Inheritance graph
Collaboration diagram for ecolab::cachedDBM< key, char * >:
Collaboration graph

Public Member Functions

 cachedDBM (const char *f, char mode='w')
 
- Public Member Functions inherited from ecolab::cachedDBM_base< key, cachedDBM_string >
void init (const char *fname, char mode='w')
 
void Init (TCL_args args)
 
void close ()
 
bool opened () const
 
bool load (const key &k)
 
bool key_exists (const key &k) const
 returns true if key is in data base or added with [] operator
 
cachedDBM_stringoperator[] (const key &k)
 
cachedDBM_string elem (TCL_args args)
 
size_t cacheSize () const
 number of elements in cache
 
void clear ()
 clear the cache
 
void commit ()
 write any changes out to the file, and clear some of the cache
 
void del (key k)
 delete entry associated with key k
 
key firstkey () const
 obtain first key for iteration through database. More...
 
key nextkey () const
 advance to next key in database
 
bool eof () const
 true if no further keys remain when iterating
 
void pack (classdesc::pack_t &b)
 
void unpack (classdesc::pack_t &b)
 
KeyValueIterator begin () const
 
KeyValueIterator begin ()
 
KeyValueIterator end () const
 

Additional Inherited Members

- Public Attributes inherited from ecolab::cachedDBM_base< key, cachedDBM_string >
size_t max_elem
 
Keys keys
 access an iterator range of keys [keys.begin()...keys.end())
 
- Protected Member Functions inherited from ecolab::base_map< key, cachedDBM_string >
void set (const key &k, Datum &v)
 
cachedDBM_stringget (const key &k)
 

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