Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

WvHashTableBase Class Reference

#include <wvhashtable.h>

Inheritance diagram for WvHashTableBase:

WvHashTable WvHashTable WvHashTable< int, int, WvIntTable_hack::WvIntTable_fptr_ > WvHashTable< int, int, WvIntTable_hack::WvIntTable_fptr_ > WvHashTable< Intstr, WvString, IntstrDict_hack::IntstrDict_fptr_ > WvHashTable< Intstr, WvString, IntstrDict_hack::IntstrDict_fptr_ > WvHashTable< WvHTTPHeader, WvString, WvHTTPHeaderDict_hack::WvHTTPHeaderDict_fptr_ > WvHashTable< WvHTTPHeader, WvString, WvHTTPHeaderDict_hack::WvHTTPHeaderDict_fptr_ > WvHashTable< WvInterface, WvString, WvInterfaceDictBase_hack::WvInterfaceDictBase_fptr_ > WvHashTable< WvInterface, WvString, WvInterfaceDictBase_hack::WvInterfaceDictBase_fptr_ > WvHashTable< WvIPAddr, WvIPAddr, WvIPAddrTable_hack::WvIPAddrTable_fptr_ > WvHashTable< WvIPAddr, WvIPAddr, WvIPAddrTable_hack::WvIPAddrTable_fptr_ > WvHashTable< WvString, WvString, WvStringTable_hack::WvStringTable_fptr_ > WvHashTable< WvString, WvString, WvStringTable_hack::WvStringTable_fptr_ > List of all members.

Public Methods

size_t count () const
size_t count () const

Public Attributes

unsigned numslots
WvListBaseslots
WvListBaseslots

Protected Types

typedef bool Comparator (const void *, const void *)
typedef bool Comparator (const void *, const void *)

Protected Methods

 WvHashTableBase (unsigned _numslots)
 WvHashTableBase (const WvHashTableBase &t)
WvHashTableBase & operator= (const WvHashTableBase &t)
void setup ()
void shutdown ()
WvLinkprevlink (WvListBase *slots, const void *data, unsigned hash, Comparator *comp)
void * genfind (WvListBase *slots, const void *data, unsigned hash, Comparator *comp)
 WvHashTableBase (unsigned _numslots)
 WvHashTableBase (const WvHashTableBase &t)
WvHashTableBase & operator= (const WvHashTableBase &t)
void setup ()
void shutdown ()
WvLinkprevlink (WvListBase *slots, const void *data, unsigned hash, Comparator *comp)
void * genfind (WvListBase *slots, const void *data, unsigned hash, Comparator *comp)

Member Typedef Documentation

typedef bool WvHashTableBase::Comparator(const void *, const void *) [protected]
 

Definition at line 85 of file utils/wvhashtable.h.

typedef bool WvHashTableBase::Comparator(const void *, const void *) [protected]
 

Definition at line 85 of file include/wvhashtable.h.


Constructor & Destructor Documentation

WvHashTableBase::WvHashTableBase unsigned    _numslots [protected]
 

Definition at line 41 of file wvhashtable.cc.

References numslots.

WvHashTableBase::WvHashTableBase const WvHashTableBase &    t [protected]
 

WvHashTableBase::WvHashTableBase unsigned    _numslots [protected]
 

WvHashTableBase::WvHashTableBase const WvHashTableBase &    t [protected]
 


Member Function Documentation

size_t WvHashTableBase::count   const
 

size_t WvHashTableBase::count   const
 

Definition at line 79 of file wvhashtable.cc.

References WvListBase::count, count, numslots, and slots.

Referenced by count, and main.

void* WvHashTableBase::genfind WvListBase   slots,
const void *    data,
unsigned    hash,
Comparator   comp
[protected]
 

void * WvHashTableBase::genfind WvListBase   slots,
const void *    data,
unsigned    hash,
Comparator   comp
[protected]
 

Definition at line 68 of file wvhashtable.cc.

References WvLink::data, WvLink::next, and prevlink.

Referenced by WvHashTable< int, int, WvIntTable_hack::WvIntTable_fptr_ >::operator[].

WvHashTableBase& WvHashTableBase::operator= const WvHashTableBase &    t [protected]
 

WvHashTableBase& WvHashTableBase::operator= const WvHashTableBase &    t [protected]
 

WvLink* WvHashTableBase::prevlink WvListBase   slots,
const void *    data,
unsigned    hash,
Comparator   comp
[protected]
 

WvLink * WvHashTableBase::prevlink WvListBase   slots,
const void *    data,
unsigned    hash,
Comparator   comp
[protected]
 

Definition at line 52 of file wvhashtable.cc.

References WvListBase::IterBase::cur, WvLink::data, WvListBase::IterBase::next, WvLink::next, numslots, and WvListBase::IterBase::rewind.

Referenced by genfind, and WvHashTable< int, int, WvIntTable_hack::WvIntTable_fptr_ >::remove.

void WvHashTableBase::setup   [inline, protected]
 

Definition at line 90 of file utils/wvhashtable.h.

void WvHashTableBase::setup   [inline, protected]
 

Definition at line 90 of file include/wvhashtable.h.

Referenced by WvHashTable< int, int, WvIntTable_hack::WvIntTable_fptr_ >::WvHashTable.

void WvHashTableBase::shutdown   [inline, protected]
 

Definition at line 92 of file utils/wvhashtable.h.

void WvHashTableBase::shutdown   [inline, protected]
 

Definition at line 92 of file include/wvhashtable.h.

Referenced by WvHashTable< int, int, WvIntTable_hack::WvIntTable_fptr_ >::~WvHashTable.


Member Data Documentation

unsigned WvHashTableBase::numslots
 

Definition at line 99 of file utils/wvhashtable.h.

Referenced by WvHashTable< int, int, WvIntTable_hack::WvIntTable_fptr_ >::add, count, main, WvHashTableBase::IterBase::next, prevlink, WvHashTable< int, int, WvIntTable_hack::WvIntTable_fptr_ >::remove, WvHashTable< int, int, WvIntTable_hack::WvIntTable_fptr_ >::WvHashTable, WvHashTableBase, and WvHashTable< int, int, WvIntTable_hack::WvIntTable_fptr_ >::zap.

WvListBase* WvHashTableBase::slots
 

Definition at line 100 of file utils/wvhashtable.h.

WvListBase* WvHashTableBase::slots
 

Definition at line 100 of file include/wvhashtable.h.

Referenced by count, main, WvHashTableBase::IterBase::next, WvHashTable< int, int, WvIntTable_hack::WvIntTable_fptr_ >::operator[], WvHashTable< int, int, WvIntTable_hack::WvIntTable_fptr_ >::remove, WvHashTableBase::IterBase::rewind, WvHashTable< int, int, WvIntTable_hack::WvIntTable_fptr_ >::sl, WvHashTable< int, int, WvIntTable_hack::WvIntTable_fptr_ >::WvHashTable, and WvHashTable< int, int, WvIntTable_hack::WvIntTable_fptr_ >::zap.


The documentation for this class was generated from the following files:
Generated on Sun Aug 25 02:29:40 2002 for WvStreams by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002