#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>.
Definition at line 88 of file wvhashtable.h.
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) | |
virtual | ~WvHashTableBase () |
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 |
size_t WvHashTableBase::count | ( | ) | const |
Returns the number of elements in the hash table.
Returns: the number of elements
Definition at line 51 of file wvhashtable.cc.
bool WvHashTableBase::isempty | ( | ) | const |
Returns true if the hash table is empty.
Returns: true if empty
Definition at line 61 of file wvhashtable.cc.
References numslots, and wvslots.
Referenced by WvCallbackList< WvCallbackvCallback< void, const UniConfKey &, WvStringParm > >::isempty().