|
libStatGen Software 1
|


Public Member Functions | |
| StringIntHash (int startsize=32) | |
| void | Grow () |
| void | Shrink () |
| void | SetSize (int newsize) |
| void | Clear () |
| int | Capacity () const |
| int | Entries () const |
| int | Integer (int i) const |
| int | Integer (const String &key) const |
| void | SetInteger (int i, int value) |
| void | SetInteger (const String &key, int value) |
| int | IncrementCount (const String &key) |
| int | IncrementCount (const String &key, int amount) |
| int | DecrementCount (const String &key) |
| int | GetCount (const String &key) const |
| int | GetCount (int index) const |
| int | Add (const String &s, int integer) |
| int | Find (const String &s, int defaultValue) |
| int | Find (const String &s) const |
| StringIntHash & | operator= (const StringIntHash &rhs) |
| bool | operator== (const StringIntHash &rhs) const |
| const String & | operator[] (int i) const |
| String & | operator[] (int i) |
| void | Delete (unsigned int index) |
| void | Delete (const String &key) |
| bool | SlotInUse (int index) const |
| Public Member Functions inherited from StringHashBase | |
| void | setCaseSensitive (bool caseSensitive) |
Protected Attributes | |
| String ** | strings |
| int * | integers |
| unsigned int * | keys |
| unsigned int | count |
| unsigned int | size |
| unsigned int | mask |
| Protected Attributes inherited from StringHashBase | |
| bool | myCaseSensitive |
Additional Inherited Members | |
| Protected Member Functions inherited from StringHashBase | |
| bool | stringsEqual (const String &string1, const String &string2) const |
| unsigned int | getKey (const String &string) const |
Definition at line 193 of file StringHash.h.
| StringIntHash::StringIntHash | ( | int | startsize = 32 | ) |
Definition at line 239 of file StringHash.cpp.
|
virtual |
Definition at line 258 of file StringHash.cpp.
| int StringIntHash::Add | ( | const String & | s, |
| int | integer ) |
Definition at line 321 of file StringHash.cpp.
|
inline |
Definition at line 219 of file StringHash.h.
| void StringIntHash::Clear | ( | ) |
Definition at line 306 of file StringHash.cpp.
| int StringIntHash::DecrementCount | ( | const String & | key | ) |
Definition at line 626 of file StringHash.cpp.
|
inline |
Definition at line 275 of file StringHash.h.
| void StringIntHash::Delete | ( | unsigned int | index | ) |
Definition at line 371 of file StringHash.cpp.
|
inline |
Definition at line 223 of file StringHash.h.
| int StringIntHash::Find | ( | const String & | s | ) | const |
Definition at line 360 of file StringHash.cpp.
| int StringIntHash::Find | ( | const String & | s, |
| int | defaultValue ) |
Definition at line 340 of file StringHash.cpp.
| int StringIntHash::GetCount | ( | const String & | key | ) | const |
Definition at line 598 of file StringHash.cpp.
|
inline |
Definition at line 252 of file StringHash.h.
|
inline |
Definition at line 206 of file StringHash.h.
| int StringIntHash::IncrementCount | ( | const String & | key | ) |
Definition at line 604 of file StringHash.cpp.
| int StringIntHash::IncrementCount | ( | const String & | key, |
| int | amount ) |
Definition at line 615 of file StringHash.cpp.
|
inline |
Definition at line 232 of file StringHash.h.
|
inline |
Definition at line 228 of file StringHash.h.
| StringIntHash & StringIntHash::operator= | ( | const StringIntHash & | rhs | ) |
Definition at line 663 of file StringHash.cpp.
| bool StringIntHash::operator== | ( | const StringIntHash & | rhs | ) | const |
Definition at line 674 of file StringHash.cpp.
|
inline |
Definition at line 268 of file StringHash.h.
|
inline |
Definition at line 264 of file StringHash.h.
|
inline |
Definition at line 243 of file StringHash.h.
|
inline |
Definition at line 239 of file StringHash.h.
|
virtual |
Implements StringHashBase.
Definition at line 269 of file StringHash.cpp.
|
inline |
Definition at line 210 of file StringHash.h.
|
inline |
Definition at line 280 of file StringHash.h.
|
protected |
Definition at line 199 of file StringHash.h.
|
protected |
Definition at line 197 of file StringHash.h.
|
protected |
Definition at line 198 of file StringHash.h.
|
protected |
Definition at line 200 of file StringHash.h.
|
protected |
Definition at line 199 of file StringHash.h.
|
protected |
Definition at line 196 of file StringHash.h.