HashMapEntryBase< K, V, ENTRY, ENTRY_HANDLER, HASHMAP_ENTRY_LAYOUT::VALUE_KEY > Class Template Reference

#include <hashmap.h>

Public Types

using EntryHandler = ENTRY_HANDLER
 

Public Member Functions

const K & GetKey () const
 
V & GetValue ()
 
const V & GetValue () const
 
const K & GetFirst () const
 
V & GetSecond ()
 
const V & GetSecond () const
 
void SetValue (const V &value)
 
void SetValue (V &&value)
 
void ResetValue ()
 
UInt GetHashCode () const
 
Int GetMemorySize () const
 
 HashMapEntryBase (UInt hash)
 
 HashMapEntryBase (UInt hash, const K &key)
 
 HashMapEntryBase (UInt hash, K &&key)
 
template<typename A >
 HashMapEntryBase (UInt hash, const K &key, A &&value)
 
template<typename A >
 HashMapEntryBase (UInt hash, K &&key, A &&value)
 

Protected Member Functions

 MAXON_DISALLOW_COPY_AND_ASSIGN (HashMapEntryBase)
 

Protected Attributes

ENTRY * _next
 
UInt _hashCode
 
_value
 
_key
 

Member Typedef Documentation

◆ EntryHandler

using EntryHandler = ENTRY_HANDLER

Constructor & Destructor Documentation

◆ HashMapEntryBase() [1/5]

HashMapEntryBase ( UInt  hash)
explicit

◆ HashMapEntryBase() [2/5]

HashMapEntryBase ( UInt  hash,
const K &  key 
)

◆ HashMapEntryBase() [3/5]

HashMapEntryBase ( UInt  hash,
K &&  key 
)

◆ HashMapEntryBase() [4/5]

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

◆ HashMapEntryBase() [5/5]

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

Member Function Documentation

◆ GetKey()

const K& GetKey ( ) const

◆ GetValue() [1/2]

V& GetValue ( )

◆ GetValue() [2/2]

const V& GetValue ( ) const

◆ GetFirst()

const K& GetFirst ( ) const

◆ GetSecond() [1/2]

V& GetSecond ( )

◆ GetSecond() [2/2]

const V& GetSecond ( ) const

◆ SetValue() [1/2]

void SetValue ( const V &  value)

◆ SetValue() [2/2]

void SetValue ( V &&  value)

◆ ResetValue()

void ResetValue ( )

◆ GetHashCode()

UInt GetHashCode ( ) const

◆ GetMemorySize()

Int GetMemorySize ( ) const

◆ MAXON_DISALLOW_COPY_AND_ASSIGN()

MAXON_DISALLOW_COPY_AND_ASSIGN ( HashMapEntryBase< K, V, ENTRY, ENTRY_HANDLER, HASHMAP_ENTRY_LAYOUT::VALUE_KEY )
protected

Member Data Documentation

◆ _next

ENTRY* _next
protected

◆ _hashCode

UInt _hashCode
protected

◆ _value

V _value
protected

◆ _key

K _key
protected