#include <wvhashtable.h>
Inheritance diagram for WvHashTableBase:
Putting common code in here allows us to prevent it from being replicated by each template instantiation of WvHashTable<T>.
Public Member Functions | |
size_t | count () const |
Returns the number of elements in the hash table. | |
bool | isempty () const |
Returns true if the hash table is empty. | |
Public Attributes | |
unsigned | numslots |
WvListBase * | wvslots |
Protected Member Functions | |
WvHashTableBase (unsigned _numslots) | |
WvHashTableBase & | operator= (const WvHashTableBase &t) |
void | setup () |
void | shutdown () |
WvLink * | prevlink (WvListBase *slots, const void *data, unsigned hash) const |
void * | genfind (WvListBase *slots, const void *data, unsigned hash) const |
virtual bool | compare (const void *key, const void *elem) const =0 |
Classes | |
class | IterBase |
|
Returns the number of elements in the hash table. Returns: the number of elements |
|
Returns true if the hash table is empty. Returns: true if empty |