HashMapEntryBase< K, UnitType, ENTRY_HANDLER, HASHMAP_ENTRY_LAYOUT::HASH_KEY_VALUE > Class Template Reference

#include <hashmap.h>

Public Types

using EntryHandler = ENTRY_HANDLER
 
using HashValueType = typename ENTRY_HANDLER::HashValueType
 

Public Member Functions

const K & GetKey () const
 
UnitTypeGetValue ()
 
const UnitTypeGetValue () const
 
const K & GetFirst () const
 
UnitTypeGetSecond ()
 
const UnitTypeGetSecond () const
 
void SetValue (const UnitType &)
 
void ResetValue ()
 
const HashValueTypeGetKeyHashCode () const
 
Int GetMemorySize () const
 
 HashMapEntryBase (HashValueType hash)
 
 HashMapEntryBase (HashValueType hash, const K &key)
 
 HashMapEntryBase (HashValueType hash, K &&key)
 
template<typename A >
 HashMapEntryBase (HashValueType hash, const K &key, A &&value)
 
template<typename A >
 HashMapEntryBase (HashValueType hash, K &&key, A &&value)
 

Protected Member Functions

 MAXON_DISALLOW_COPY_AND_ASSIGN (HashMapEntryBase)
 

Protected Attributes

HashMapEntryBase_next
 
HashValueType _hashCode
 
_key
 

Member Typedef Documentation

◆ EntryHandler

using EntryHandler = ENTRY_HANDLER

◆ HashValueType

using HashValueType = typename ENTRY_HANDLER::HashValueType

Constructor & Destructor Documentation

◆ HashMapEntryBase() [1/5]

HashMapEntryBase ( HashValueType  hash)
explicit

◆ HashMapEntryBase() [2/5]

HashMapEntryBase ( HashValueType  hash,
const K &  key 
)

◆ HashMapEntryBase() [3/5]

HashMapEntryBase ( HashValueType  hash,
K &&  key 
)

◆ HashMapEntryBase() [4/5]

HashMapEntryBase ( HashValueType  hash,
const K &  key,
A &&  value 
)

◆ HashMapEntryBase() [5/5]

HashMapEntryBase ( HashValueType  hash,
K &&  key,
A &&  value 
)

Member Function Documentation

◆ GetKey()

const K& GetKey ( ) const

◆ GetValue() [1/2]

UnitType& GetValue ( )

◆ GetValue() [2/2]

const UnitType& GetValue ( ) const

◆ GetFirst()

const K& GetFirst ( ) const

◆ GetSecond() [1/2]

UnitType& GetSecond ( )

◆ GetSecond() [2/2]

const UnitType& GetSecond ( ) const

◆ SetValue()

void SetValue ( const UnitType )

◆ ResetValue()

void ResetValue ( )

◆ GetKeyHashCode()

const HashValueType& GetKeyHashCode ( ) const

◆ GetMemorySize()

Int GetMemorySize ( ) const

◆ MAXON_DISALLOW_COPY_AND_ASSIGN()

MAXON_DISALLOW_COPY_AND_ASSIGN ( HashMapEntryBase< K, UnitType, ENTRY_HANDLER, HASHMAP_ENTRY_LAYOUT::HASH_KEY_VALUE )
protected

Member Data Documentation

◆ _next

HashMapEntryBase* _next
protected

◆ _hashCode

HashValueType _hashCode
protected

◆ _key

K _key
protected