libStatGen Software  1
StringIntHash Class Reference
Inheritance diagram for StringIntHash:
Collaboration diagram for StringIntHash:

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
 
StringIntHashoperator= (const StringIntHash &rhs)
 
bool operator== (const StringIntHash &rhs) const
 
const Stringoperator[] (int i) const
 
Stringoperator[] (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
 

Detailed Description

Definition at line 193 of file StringHash.h.


The documentation for this class was generated from the following files: