#include <wvondiskhash.h>
Inheritance diagram for WvOnDiskHash< K, D, Backend >:
This affects memory management for objects stored in it.
For find and operator[], the returned object is only guaranteed to be around until the next find() (or next(), for iterators). Remember that you may not be the only person to do a next() or find() on this database.
Public Member Functions | |
WvOnDiskHash (WvStringParm dbfile=WvString::null, bool persist=true) | |
void | add (const K &key, const D &data, bool replace=false) |
void | remove (const K &key) |
D & | find (const K &key) |
D & | operator[] (const K &key) |
bool | exists (const K &key) |
size_t | count () |
bool | isempty () |
D & | first () |
Static Public Member Functions | |
template<typename T> | |
static T | undatumize (datum &data) |
Protected Attributes | |
D * | saveddata |
Classes | |
class | datumize |
class | Iter |