Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

WvOnDiskHash< K, D, Backend > Class Template Reference

#include <wvondiskhash.h>

Inheritance diagram for WvOnDiskHash< K, D, Backend >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<class K, class D, class Backend = DefaultHash>
class WvOnDiskHash< K, D, Backend >

This hashtable is different from normal WvStreams hashtables in that it stores the data on disk.

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


The documentation for this class was generated from the following file:
Generated on Sun Jul 10 15:31:22 2005 for WvStreams by  doxygen 1.4.0