WvStreams
|
Classes | |
class | Iter |
Public Types | |
typedef class WvSorter< T, WvScatterHashBase, WvScatterHashBase::IterBase > | Sorter |
Public Member Functions | |
WvScatterHash (unsigned _numslots=0) | |
T * | operator[] (const K &key) const |
void | add (const T *data, bool autofree=false) |
void | remove (const T *data) |
void | set_autofree (const K &key, bool autofree) |
void | set_autofree (const T *data, bool autofree) |
bool | get_autofree (const K &key) |
bool | get_autofree (const T *data) |
void | zap () |
size_t | count () const |
bool | isempty () const |
size_t | slowcount () const |
Static Public Attributes | |
static const unsigned | null_idx = (unsigned)-1 |
static const unsigned | prime_numbers [] |
Protected Types | |
typedef Comparator< K > | MyComparator |
typedef void * | Slot |
typedef unsigned char | Status |
Protected Member Functions | |
virtual bool | compare (const void *key, const void *elem) const |
unsigned | hash (const T *data) |
virtual unsigned | do_hash (const void *data) |
virtual void | do_delete (void *data) |
unsigned | genfind (const void *data, unsigned hash) const |
Slot | genfind_or_null (const void *data, unsigned hash) const |
void | _add (void *data, bool autofree) |
void | _add (void *data, unsigned hash, bool autofree) |
void | _remove (const void *data, unsigned hash) |
void | _zap () |
void | _set_autofree (const void *data, unsigned hash, bool autofree) |
bool | _get_autofree (const void *data, unsigned hash) |
Protected Attributes | |
Slot * | xslots |
Status * | xstatus |
int | prime_index |
unsigned | numslots |
Definition at line 125 of file wvscatterhash.h.
|
protected |
Definition at line 128 of file wvscatterhash.h.
typedef class WvSorter< T, WvScatterHashBase, WvScatterHashBase::IterBase > WvScatterHash< T, K, Accessor, Comparator >::Sorter |
Definition at line 195 of file wvscatterhash.h.
|
protectedinherited |
Definition at line 86 of file wvscatterhash.h.
|
protectedinherited |
Definition at line 87 of file wvscatterhash.h.
|
inline |
Definition at line 144 of file wvscatterhash.h.
|
inlinevirtual |
Definition at line 145 of file wvscatterhash.h.
|
inlineprotectedvirtual |
Implements WvScatterHashBase.
Definition at line 130 of file wvscatterhash.h.
|
inlineprotected |
Definition at line 134 of file wvscatterhash.h.
|
inlineprotectedvirtual |
Implements WvScatterHashBase.
Definition at line 137 of file wvscatterhash.h.
|
inlineprotectedvirtual |
Implements WvScatterHashBase.
Definition at line 140 of file wvscatterhash.h.
|
inline |
Definition at line 147 of file wvscatterhash.h.
|
inline |
Definition at line 150 of file wvscatterhash.h.
|
inline |
Definition at line 153 of file wvscatterhash.h.
|
inline |
Definition at line 156 of file wvscatterhash.h.
|
inline |
Definition at line 161 of file wvscatterhash.h.
|
inline |
Definition at line 166 of file wvscatterhash.h.
|
inline |
Definition at line 171 of file wvscatterhash.h.
|
inline |
Definition at line 176 of file wvscatterhash.h.
|
inlineinherited |
Definition at line 31 of file wvscatterhash.h.
|
inlineinherited |
Definition at line 32 of file wvscatterhash.h.
|
inherited |
Definition at line 46 of file wvscatterhash.cc.
|
protectedinherited |
Definition at line 159 of file wvscatterhash.cc.
|
protectedinherited |
Definition at line 181 of file wvscatterhash.cc.
|
protectedinherited |
Definition at line 86 of file wvscatterhash.cc.
|
protectedinherited |
Definition at line 91 of file wvscatterhash.cc.
|
protectedinherited |
Definition at line 113 of file wvscatterhash.cc.
|
protectedinherited |
Definition at line 126 of file wvscatterhash.cc.
|
protectedinherited |
Definition at line 139 of file wvscatterhash.cc.
|
protectedinherited |
Definition at line 148 of file wvscatterhash.cc.
|
staticinherited |
Definition at line 28 of file wvscatterhash.h.
|
staticinherited |
Definition at line 12 of file wvscatterhash.h.
|
protectedinherited |
Definition at line 89 of file wvscatterhash.h.
|
protectedinherited |
Definition at line 90 of file wvscatterhash.h.
|
protectedinherited |
Definition at line 91 of file wvscatterhash.h.
|
protectedinherited |
Definition at line 92 of file wvscatterhash.h.