HashMap< K, V, HASH, ENTRY_HANDLER, ALLOCATOR, MODE, INITIAL_CAPACITY, LOAD_FACTOR >::Hash< VALUEHASH > Class Template Reference

#include <hashmap.h>

Detailed Description

template<typename K, typename V, typename HASH = DefaultCompare, typename ENTRY_HANDLER = HashMapKeyValuePair, typename ALLOCATOR = DefaultAllocator, HASHMAP_MODE MODE = HASHMAP_MODE::DEFAULT, Int INITIAL_CAPACITY = 16, Int LOAD_FACTOR = (MODE == HASHMAP_MODE::SYNCHRONIZED) ? 0 : 10>
template<typename VALUEHASH>
class maxon::HashMap< K, V, HASH, ENTRY_HANDLER, ALLOCATOR, MODE, INITIAL_CAPACITY, LOAD_FACTOR >::Hash< VALUEHASH >

Class to compute the hash value of a HashMap. You have to use this as HASH class if you want to use HashMaps in HashSets or as keys in other HashMaps.

Template Parameters
VALUEHASHHash class used for HashMap values.

Static Public Member Functions

static Bool IsEqual (const HashMap &a, const HashMap &b, VALUEHASH &&hash=VALUEHASH())
 
static UInt GetHashCode (const HashMap &m)
 

Member Function Documentation

◆ IsEqual()

static Bool IsEqual ( const HashMap a,
const HashMap b,
VALUEHASH &&  hash = VALUEHASH() 
)
static

◆ GetHashCode()

static UInt GetHashCode ( const HashMap m)
static