libStatGen Software 1
|
Public Member Functions | |
IntHash (int startsize=32) | |
void | Grow () |
void | Shrink () |
void | SetSize (int newsize) |
void | Clear () |
int | Capacity () const |
int | Entries () const |
bool | Object (int i) const |
void | SetObject (int i, bool object) |
int | Add (int key, bool object=true) |
int | Find (int key) |
int | Rehash (int key, int h) |
IntHash & | operator= (const IntHash &rhs) |
bool | operator[] (int i) const |
void | Delete (unsigned int index) |
bool | SlotInUse (int index) |
Protected Attributes | |
bool * | objects |
unsigned int * | keys |
unsigned int | count |
unsigned int | size |
unsigned int | mask |
IntHash::IntHash | ( | int | startsize = 32 | ) |
Definition at line 23 of file IntHash.cpp.
|
virtual |
Definition at line 42 of file IntHash.cpp.
int IntHash::Add | ( | int | key, |
bool | object = true |
||
) |
Definition at line 96 of file IntHash.cpp.
|
inline |
void IntHash::Clear | ( | ) |
Definition at line 48 of file IntHash.cpp.
void IntHash::Delete | ( | unsigned int | index | ) |
Definition at line 132 of file IntHash.cpp.
|
inline |
int IntHash::Find | ( | int | key | ) |
Definition at line 118 of file IntHash.cpp.
|
inline |
|
inline |
|
inline |
int IntHash::Rehash | ( | int | key, |
int | h | ||
) |
Definition at line 125 of file IntHash.cpp.
|
inline |
void IntHash::SetSize | ( | int | newsize | ) |
Definition at line 61 of file IntHash.cpp.
|
inline |
|
inline |