altEngine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Member Functions | Private Attributes | List of all members
HashTable Class Reference

#include <hashtable.h>

Collaboration diagram for HashTable:
Collaboration graph
[legend]

Public Member Functions

 HashTable ()
 
void insert (char *key, char *value)
 
void * find (const char *key) const
 
bool update (const char *key, char *value)
 
void destroy ()
 

Private Member Functions

int hash (const char *key, int i) const
 
int hash_djb2 (const char *key) const
 
int hash_sdbm (const char *key) const
 

Private Attributes

hashnode_ttable [TABLE_SIZE]
 

Constructor & Destructor Documentation

HashTable::HashTable ( )

Member Function Documentation

void HashTable::destroy ( )

Here is the caller graph for this function:

void * HashTable::find ( const char *  key) const

Here is the call graph for this function:

Here is the caller graph for this function:

int HashTable::hash ( const char *  key,
int  i 
) const
private

Here is the call graph for this function:

Here is the caller graph for this function:

int HashTable::hash_djb2 ( const char *  key) const
private

Here is the caller graph for this function:

int HashTable::hash_sdbm ( const char *  key) const
private

Here is the caller graph for this function:

void HashTable::insert ( char *  key,
char *  value 
)

Here is the call graph for this function:

Here is the caller graph for this function:

bool HashTable::update ( const char *  key,
char *  value 
)

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

hashnode_t* HashTable::table[TABLE_SIZE]
private

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