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

wvhashtable.h File Reference

#include "wvlinklist.h"
#include "wvstring.h"

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  WvHashTableBase
 The untyped base class of WvHashTable<T>. More...
class  WvHashTableBase::IterBase
struct  OpEqComp< K >
struct  StrCaseComp< K >
class  WvHashTable< T, K, Accessor, Comparator >
class  WvHashTable< T, K, Accessor, Comparator >::Iter
class  WvMapPair< TKey, _TData >
class  WvMapPair< TKey, _TData * >
class  WvMap< TKey, TData, Comparator, BackendHash >

Defines

#define DeclareWvDict2(_classname_,_type_, _ftype_, _field_)   __WvDict_base(_classname_, _type_, _ftype_, &obj->_field_)
#define DeclareWvDict(_type_, _ftype_, _field_)   DeclareWvDict2(_type_##Dict, _type_, _ftype_, _field_)
#define DeclareWvTable2(_classname_, _type_)   __WvDict_base(_classname_, _type_, _type_, obj)
#define DeclareWvTable(_type_)   DeclareWvTable2(_type_##Table, _type_)
#define __WvDict_base(_classname_, _type_, _ftype_, _field_)

Functions

unsigned WvHash (WvStringParm s)
unsigned WvHash (const char *s)
unsigned WvHash (const int &i)


Define Documentation

#define __WvDict_base _classname_,
_type_,
_ftype_,
_field_   ) 
 

Value:

template <class T, class K>                                         \
    struct _classname_##Accessor                                        \
    {                                                                   \
        static const K *get_key(const T *obj)                    \
            { return _field_; }                                         \
    };                                                                  \
                                                                        \
    typedef WvHashTable<_type_, _ftype_,                                \
             _classname_##Accessor<_type_, _ftype_> > _classname_

Definition at line 255 of file wvhashtable.h.

#define DeclareWvDict _type_,
_ftype_,
_field_   )     DeclareWvDict2(_type_##Dict, _type_, _ftype_, _field_)
 

Definition at line 245 of file wvhashtable.h.

#define DeclareWvDict2 _classname_,
_type_,
_ftype_,
_field_   )     __WvDict_base(_classname_, _type_, _ftype_, &obj->_field_)
 

Definition at line 242 of file wvhashtable.h.

#define DeclareWvTable _type_   )     DeclareWvTable2(_type_##Table, _type_)
 

Definition at line 251 of file wvhashtable.h.

#define DeclareWvTable2 _classname_,
_type_   )     __WvDict_base(_classname_, _type_, _type_, obj)
 

Definition at line 248 of file wvhashtable.h.


Function Documentation

unsigned WvHash const int &  i  ) 
 

Definition at line 32 of file wvhashtable.cc.

unsigned WvHash const char *  s  ) 
 

Definition at line 12 of file wvhashtable.cc.

unsigned WvHash WvStringParm  s  ) 
 

Definition at line 26 of file wvhashtable.cc.


Generated on Wed Dec 15 15:08:13 2004 for WvStreams by  doxygen 1.3.9.1