libStatGen Software 1
|
Public Member Functions | |
LongHash (int startsize=32) | |
void | Grow () |
void | Shrink () |
void | SetSize (int newsize) |
void | Clear () |
int | Capacity () const |
int | Entries () const |
ObjectT | Object (int i) const |
ObjectT & | Object (int i) |
void | SetObject (int i, ObjectT object) |
unsigned int | Add (long long key, ObjectT object) |
unsigned int | Find (long long key) |
unsigned int | Rehash (long long key, unsigned int h) |
LongHash & | operator= (const LongHash &rhs) |
ObjectT | operator[] (int i) const |
ObjectT | operator[] (unsigned int i) const |
void | Delete (unsigned int index) |
bool | SlotInUse (int index) const |
bool | SlotInUse (unsigned int index) const |
long long | GetKey (int index) const |
long long | GetKey (const unsigned int index) const |
void | SetAllowDuplicateKeys (bool toggle) |
Protected Attributes | |
ObjectT * | objects |
long long * | keys |
bool * | occupancy |
unsigned int | count |
unsigned int | size |
unsigned int | mask |
bool | allowDuplicates |
Definition at line 31 of file LongHash.h.
|
inline |
Definition at line 42 of file LongHash.h.
Definition at line 64 of file LongHash.h.
|
inline |
Definition at line 154 of file LongHash.h.
|
inline |
Definition at line 131 of file LongHash.h.
|
inline |
Definition at line 120 of file LongHash.h.
|
inline |
Definition at line 201 of file LongHash.h.
|
inline |
Definition at line 135 of file LongHash.h.
|
inline |
Definition at line 176 of file LongHash.h.
|
inline |
Definition at line 256 of file LongHash.h.
|
inline |
Definition at line 251 of file LongHash.h.
|
inline |
Definition at line 71 of file LongHash.h.
|
inline |
Definition at line 144 of file LongHash.h.
|
inline |
Definition at line 140 of file LongHash.h.
|
inline |
Definition at line 192 of file LongHash.h.
|
inline |
Definition at line 196 of file LongHash.h.
|
inline |
Definition at line 183 of file LongHash.h.
|
inline |
Definition at line 261 of file LongHash.h.
|
inline |
Definition at line 149 of file LongHash.h.
|
inline |
Definition at line 80 of file LongHash.h.
|
inline |
Definition at line 75 of file LongHash.h.
|
inline |
Definition at line 241 of file LongHash.h.
|
inline |
Definition at line 245 of file LongHash.h.
|
protected |
Definition at line 39 of file LongHash.h.
|
protected |
Definition at line 37 of file LongHash.h.
|
protected |
Definition at line 35 of file LongHash.h.
|
protected |
Definition at line 38 of file LongHash.h.
|
protected |
Definition at line 34 of file LongHash.h.
|
protected |
Definition at line 36 of file LongHash.h.
|
protected |
Definition at line 37 of file LongHash.h.