StringHash Class Reference

Collaboration diagram for StringHash:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 StringHash (int startsize=32)
void Grow ()
void Shrink ()
void SetSize (int newsize)
void Clear ()
int Capacity () const
int Entries () const
void * Object (int i) const
void * Object (const String &key) const
void * Object (const String &key, void *(*create_object)())
void SetObject (int i, void *object)
void SetObject (const String &key, void *object)
int Add (const String &s, void *object=NULL)
int Find (const String &s, void *(*create_object)()=NULL)
int Find (const String &s) const
StringHashoperator= (const StringHash &rhs)
const Stringoperator[] (int i) const
Stringoperator[] (int i)
void Delete (unsigned int index)
void Delete (const String &key)
bool SlotInUse (int index) const
void Print ()
void Print (FILE *file)
void Print (const char *filename)
String StringList (char separator= ',')
void ReadLinesFromFile (FILE *file)
void ReadLinesFromFile (const char *filename)
void Swap (StringHash &s)

Static Public Member Functions

static void * CreateHash ()

Protected Attributes

String ** strings
void ** objects
unsigned int * keys
unsigned int count
unsigned int size
unsigned int mask

Detailed Description

Definition at line 25 of file StringHash.h.


The documentation for this class was generated from the following files:
Generated on Tue Sep 6 17:52:07 2011 for libStatGen Software by  doxygen 1.6.3