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

WvHashTableBase Class Reference

#include <wvhashtable.h>

Inheritance diagram for WvHashTableBase:

WvHashTable< _type_, _ftype_, fptr > WvHashTable< _type_, _ftype_, fptr > 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 Member Functions

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 Member Functions

 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, 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(), 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(), 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 Mar 16 01:01:15 2003 for WvStreams by doxygen1.3-rc3