#include <hashmap.h>

Base class for HashMap::Entry.
Public Types | |
| using | EntryHandler = ENTRY_HANDLER |
| using | HashValueType = typename ENTRY_HANDLER::HashValueType |
Public Member Functions | |
| V & | GetValue () |
| const V & | GetValue () const |
| V & | GetSecond () |
| const V & | GetSecond () const |
| void | SetValue (const V &value) |
| void | SetValue (V &&value) |
| void | ResetValue () |
| const HashValueType & | GetKeyHashCode () const |
| Int | GetMemorySize () const |
| HashMapEntryBase (HashValueType hash) | |
| template<typename KEY > | |
| HashMapEntryBase (HashValueType hash, const KEY &) | |
| template<typename KEY , typename A > | |
| HashMapEntryBase (HashValueType hash, const KEY &, A &&value) | |
Public Attributes | |
| decltype(ENTRY_HANDLER::GetKey(*(V *) nullptr) | GetKey )() const |
| decltype(ENTRY_HANDLER::GetKey(*(V *) nullptr) | GetFirst )() const |
Protected Member Functions | |
| MAXON_DISALLOW_COPY_AND_ASSIGN (HashMapEntryBase) | |
Protected Attributes | |
| HashMapEntryBase * | _next |
| HashValueType | _hashCode |
| V | _value |
| using EntryHandler = ENTRY_HANDLER |
| using HashValueType = typename ENTRY_HANDLER::HashValueType |
|
explicit |
| HashMapEntryBase | ( | HashValueType | hash, |
| const KEY & | |||
| ) |
| HashMapEntryBase | ( | HashValueType | hash, |
| const KEY & | , | ||
| A && | value | ||
| ) |
| V& GetValue | ( | ) |
Returns this entry's value.
| const V& GetValue | ( | ) | const |
Returns this entry's value.
| V& GetSecond | ( | ) |
Returns this entry's value.
| const V& GetSecond | ( | ) | const |
Returns this entry's value.
| void SetValue | ( | const V & | value | ) |
Sets the value of this entry by copy assignment.
| [in] | value | New value. |
| void SetValue | ( | V && | value | ) |
Sets the value of this entry by move assignment.
| [in] | value | New value. |
| void ResetValue | ( | ) |
| const HashValueType& GetKeyHashCode | ( | ) | const |
| Int GetMemorySize | ( | ) | const |
|
protected |
| decltype(ENTRY_HANDLER::GetKey(*(V*) nullptr) GetKey) () const |
Returns this entry's key.
| decltype(ENTRY_HANDLER::GetKey(*(V*) nullptr) GetFirst) () const |
Returns this entry's key.
|
protected |
|
protected |
|
protected |