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

WvHashTable Class Template Reference

#include <wvhashtable.h>

Inheritance diagram for WvHashTable:

WvHashTableBase WvHashTableBase List of all members.

Public Types

typedef WvSorter< _type_,
WvHashTableBase, WvHashTableBase::IterBase
Sorter
typedef WvSorter< _type_,
WvHashTableBase, WvHashTableBase::IterBase
Sorter

Public Methods

 WvHashTable (unsigned _numslots)
WvList< _type_ > * sl ()
 ~WvHashTable ()
void add (_type_ *data, bool auto_free)
_type_ * operator[] (const _ftype_ &key)
void remove (const _type_ *data)
void zap ()
 WvHashTable (unsigned _numslots)
WvList< _type_ > * sl ()
 ~WvHashTable ()
void add (_type_ *data, bool auto_free)
_type_ * operator[] (const _ftype_ &key)
void remove (const _type_ *data)
void zap ()

Protected Methods

unsigned hash (const _type_ *data)
unsigned hash (const _type_ *data)

Static Protected Methods

bool comparator (const void *key, const void *elem)
bool comparator (const void *key, const void *elem)

template<class _type_, class _ftype_, WvFieldPointer * fptr>
class WvHashTable< _type_, _ftype_, fptr >


Member Typedef Documentation

template<class _type_, class _ftype_, WvFieldPointer * fptr>
typedef class WvSorter< _type_, WvHashTableBase, WvHashTableBase::IterBase > WvHashTable::Sorter
 

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

template<class _type_, class _ftype_, WvFieldPointer * fptr>
typedef class WvSorter< _type_, WvHashTableBase, WvHashTableBase::IterBase > WvHashTable::Sorter
 

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


Constructor & Destructor Documentation

template<class _type_, class _ftype_, WvFieldPointer * fptr>
WvHashTable< _type_, _ftype_, fptr >::WvHashTable unsigned    _numslots [inline]
 

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

template<class _type_, class _ftype_, WvFieldPointer * fptr>
WvHashTable< _type_, _ftype_, fptr >::~WvHashTable   [inline]
 

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

template<class _type_, class _ftype_, WvFieldPointer * fptr>
WvHashTable< _type_, _ftype_, fptr >::WvHashTable unsigned    _numslots [inline]
 

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

template<class _type_, class _ftype_, WvFieldPointer * fptr>
WvHashTable< _type_, _ftype_, fptr >::~WvHashTable   [inline]
 

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


Member Function Documentation

template<class _type_, class _ftype_, WvFieldPointer * fptr>
void WvHashTable< _type_, _ftype_, fptr >::add _type_ *    data,
bool    auto_free
[inline]
 

Reimplemented in WvIntTable.

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

template<class _type_, class _ftype_, WvFieldPointer * fptr>
void WvHashTable< _type_, _ftype_, fptr >::add _type_ *    data,
bool    auto_free
[inline]
 

Reimplemented in WvIntTable.

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

template<class _type_, class _ftype_, WvFieldPointer * fptr>
bool WvHashTable< _type_, _ftype_, fptr >::comparator const void *    key,
const void *    elem
[inline, static, protected]
 

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

template<class _type_, class _ftype_, WvFieldPointer * fptr>
bool WvHashTable< _type_, _ftype_, fptr >::comparator const void *    key,
const void *    elem
[inline, static, protected]
 

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

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

template<class _type_, class _ftype_, WvFieldPointer * fptr>
unsigned WvHashTable< _type_, _ftype_, fptr >::hash const _type_ *    data [inline, protected]
 

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

template<class _type_, class _ftype_, WvFieldPointer * fptr>
unsigned WvHashTable< _type_, _ftype_, fptr >::hash const _type_ *    data [inline, protected]
 

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

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

template<class _type_, class _ftype_, WvFieldPointer * fptr>
_type_* WvHashTable< _type_, _ftype_, fptr >::operator[] const _ftype_ &    key [inline]
 

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

template<class _type_, class _ftype_, WvFieldPointer * fptr>
_type_* WvHashTable< _type_, _ftype_, fptr >::operator[] const _ftype_ &    key [inline]
 

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

template<class _type_, class _ftype_, WvFieldPointer * fptr>
void WvHashTable< _type_, _ftype_, fptr >::remove const _type_ *    data [inline]
 

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

template<class _type_, class _ftype_, WvFieldPointer * fptr>
void WvHashTable< _type_, _ftype_, fptr >::remove const _type_ *    data [inline]
 

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

template<class _type_, class _ftype_, WvFieldPointer * fptr>
WvList<_type_>* WvHashTable< _type_, _ftype_, fptr >::sl   [inline]
 

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

template<class _type_, class _ftype_, WvFieldPointer * fptr>
WvList<_type_>* WvHashTable< _type_, _ftype_, fptr >::sl   [inline]
 

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

Referenced by WvHashTable< int, int, WvIntTable_hack::WvIntTable_fptr_ >::add, WvHashTable< int, int, WvIntTable_hack::WvIntTable_fptr_ >::remove, WvHashTable< int, int, WvIntTable_hack::WvIntTable_fptr_ >::zap, and WvHashTable< int, int, WvIntTable_hack::WvIntTable_fptr_ >::~WvHashTable.

template<class _type_, class _ftype_, WvFieldPointer * fptr>
void WvHashTable< _type_, _ftype_, fptr >::zap   [inline]
 

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

template<class _type_, class _ftype_, WvFieldPointer * fptr>
void WvHashTable< _type_, _ftype_, fptr >::zap   [inline]
 

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


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