Hashtable

Hash table

dmHashTable()

hashtable

Hashtable with chaining for collision resolution, memcpy-copy semantics (POD types) and 32-bit indicies instead of pointers. (NUMA-friendly)


Iterator()

Iterator to the key/value pairs of a hash table

Iterator to the key/value pairs of a hash table

MEMBERS

GetKey() -

GetValue() -


GetIterator()

Get an iterator for the key/value pairs

Get an iterator for the key/value pairs

RETURN

iterator - the iterator

EXAMPLES

dmHashTable<dmhash_t, int>::Iterator iter = ht.GetIterator();
while(iter.Next())
{
    printf("%s: %d\n", dmHashReverseSafe64(iter.GetKey()), iter.GetValue());
}


dmHashTable16()

Specialized hash table with uint16_t as key...

Specialized hash table with uint16_t as keys


dmHashTable32()

Specialized hash table with uint32_t as key...

Specialized hash table with uint32_t as keys


dmHashTable64()

Specialized hash table with uint64_t as key...

Specialized hash table with uint64_t as keys