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

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


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

bool WvHashTableBase::isempty  )  const
 

Returns true if the hash table is empty.

Returns: true if empty


The documentation for this class was generated from the following files:
Generated on Fri May 20 11:17:49 2005 for WvStreams by  doxygen 1.4.2