HashMap< K, V, HASH, ENTRY_HANDLER, ALLOCATOR, MODE, INITIAL_CAPACITY, LOAD_FACTOR, ENTRY_ALLOCATOR >::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, typename ENTRY_ALLOCATOR = ALLOCATOR>
template<typename VALUEHASH>
class maxon::HashMap< K, V, HASH, ENTRY_HANDLER, ALLOCATOR, MODE, INITIAL_CAPACITY, LOAD_FACTOR, ENTRY_ALLOCATOR >::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 HashInt GetHashCode (const HashMap &m)
 
static UniqueHash GetUniqueHashCode (const HashMap &m)
 

Member Function Documentation

◆ IsEqual()

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

◆ GetHashCode()

static HashInt GetHashCode ( const HashMap m)
static

◆ GetUniqueHashCode()

static UniqueHash GetUniqueHashCode ( const HashMap m)
static