Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

s_cf_hash Struct Reference

#include <hashlib.h>


Data Fields

ub4 tablesize
t_cf_hash_cleanup destroy
t_cf_hash_entry ** table


Detailed Description

this struct is used to store the infos about a hashtable instance.

Definition at line 74 of file hashlib.h.


Field Documentation

t_cf_hash_cleanup s_cf_hash::destroy
 

For element cleanups we need a callback function. This callback function has to cleanup the structure we saved.

Definition at line 87 of file hashlib.h.

t_cf_hash_entry** s_cf_hash::table
 

We save only pointers because in each element we have a linked list of elements

Definition at line 93 of file hashlib.h.

ub4 s_cf_hash::tablesize
 

The higher the tablesize, the smaller the possibility of a double hash value. This goes on the cost of memory... a pointer to a t_cf_hashentry type has 4 byte, so 512 entries have 2048 bytes (2kb!). This is very big... so be patiant!

Definition at line 81 of file hashlib.h.


The documentation for this struct was generated from the following file:
Generated on Sun Apr 25 16:37:40 2004 for Classic Forum by doxygen 1.3.5