Classes | |
struct | _hashnode |
A hashing table node. More... | |
struct | _hashtable |
Typedefs | |
typedef struct gft::HashTable::_hashnode | HashNode |
A hashing table node. More... | |
typedef struct gft::HashTable::_hashtable | HashTable |
Functions | |
HashTable * | Create (int size) |
A constructor. More... | |
void | Destroy (HashTable **ht) |
A destructor. More... | |
int | HashPosition (HashTable *ht, char *key) |
void | Insert (HashTable *ht, char *key, void *value) |
Insert the pair (key, value) in the hash table. More... | |
void * | Search (HashTable *ht, char *key) |
Search for the value associated with a key. More... | |
typedef struct gft::HashTable::_hashnode gft::HashTable::HashNode |
A hashing table node.
typedef struct gft::HashTable::_hashtable gft::HashTable::HashTable |
HashTable * gft::HashTable::Create | ( | int | size | ) |
A constructor.
void gft::HashTable::Destroy | ( | HashTable ** | ht | ) |
A destructor.
int gft::HashTable::HashPosition | ( | HashTable * | ht, |
char * | key | ||
) |
void gft::HashTable::Insert | ( | HashTable * | ht, |
char * | key, | ||
void * | value | ||
) |
Insert the pair (key, value) in the hash table.
void * gft::HashTable::Search | ( | HashTable * | ht, |
char * | key | ||
) |
Search for the value associated with a key.