Classes | Typedefs | Functions
gft::HashTable Namespace Reference

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

HashTableCreate (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 Documentation

A hashing table node.

Function Documentation

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.