|
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
|
|
val & | operator[] (const key &k) |
|
val | 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 |
|
template<class key, class val>
class ecolab::cachedDBM_base< key, val >
implementation of cacheDBM common to all specialisations