WvHashTableBase Class Reference

#include <wvhashtable.h>

Inheritance diagram for WvHashTableBase:

[legend]
List of all members.

Detailed Description

The untyped base class of WvHashTable<T>.

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
WvListBasewvslots

Protected Member Functions

 WvHashTableBase (unsigned _numslots)
virtual ~WvHashTableBase ()
WvHashTableBaseoperator= (const WvHashTableBase &t)
void setup ()
void shutdown ()
WvLinkprevlink (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


Member Function Documentation

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.

References numslots, and wvslots.

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().


The documentation for this class was generated from the following files:
Generated on Mon Feb 5 10:54:37 2007 for WvStreams by  doxygen 1.5.1