Nothing is faster than the speed of light... To prove this to yourself, try opening the refrigerator door before the light comes on. | ||
-- Anonymous |
HashMaster is a class that's able to handle hash tables. Hash tables are particulary useful for ultra speed items lookups. To each element in the table, you can assign an id (the so called hash_value) that will help find quickly the element in the table.
Internally, elements are sorted by their hash_value and accessed using a dicothomic search algo.
Main features of this class are:
High search speed.
Simple interface.
To inizialize a new instance, simply call afc_hash_master_new() and to destroy it, call the afc_hash_master_delete()
To add a new value in the hash table, use the afc_hash_master_add() method. To get back a value use the afc_hash_master_find() method.