#include "base/intutils.h"#include "base/Enumerator.h"
Go to the source code of this file.
Namespaces | |
| namespace | hash |
Functions | |
| void | rehash (SingleBucket_t ***tablePtr, uint32_t *maskPtr) |
| Rehashing for singled linked buckets. | |
| void | rehash (DoubleBucket_t ***tablePtr, uint32_t *maskPtr) |
| Rehashing for double linked buckets. | |
To get a working hash table one has to implement the insert/delete that is dependant on the data type, in particular to test for equality.
|
||||||||||||
|
Rehashing for double linked buckets. Same as the previous rehash with the difference on the type of the buckets: { bucket_t *next; bucket_t **previous; uint info; custom data } |
|
||||||||||||
|
Rehashing for singled linked buckets. In practice, the hash value is not recomputed since it is stored in the 'info' field of the buckets.
|
1.4.2