persistent map More...
#include <cachedDBM.h>
Public Member Functions | |
cachedDBM (const char *f, char mode='w') | |
![]() | |
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 |
Additional Inherited Members | |
![]() | |
size_t | max_elem |
Keys | keys |
access an iterator range of keys [keys.begin()...keys.end()) | |
![]() | |
void | set (const key &k, Datum &v) |
val & | get (const key &k) |
persistent map