#include <hashmap.h>
Class used for entries of the HashMap. The entries of a bucket are stored as a singly linked list, you can loop over this list via GetNextInBucket().
Public Types | |
using | KeyType = K |
using | ValueType = V |
Public Types inherited from HashMapEntryBase< K, V, ENTRY_HANDLER, LAYOUT > | |
using | EntryHandler = ENTRY_HANDLER |
using | HashValueType = typename ENTRY_HANDLER::HashValueType |
Public Member Functions | |
operator Pair< K, V > () const | |
const Entry * | GetNextWithSameKey () const |
Entry * | GetNextWithSameKey () |
const Entry * | GetNextInBucket () const |
Entry * | GetNextInBucket () |
void | PrivateInitNextInBucket (Entry *next) |
SFINAEHelper< String, V >::type | ToString (const FormatStatement *format=nullptr) const |
Int | GetMemorySize () const |
Public Member Functions inherited from HashMapEntryBase< K, V, ENTRY_HANDLER, LAYOUT > | |
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) | |
Private Member Functions | |
MAXON_DISALLOW_COPY_AND_ASSIGN (Entry) | |
Friends | |
class | HashMap |
Additional Inherited Members | |
Public Attributes inherited from HashMapEntryBase< K, V, ENTRY_HANDLER, LAYOUT > | |
decltype(ENTRY_HANDLER::GetKey(*(V *) nullptr) | GetKey )() const |
decltype(ENTRY_HANDLER::GetKey(*(V *) nullptr) | GetFirst )() const |
Protected Member Functions inherited from HashMapEntryBase< K, V, ENTRY_HANDLER, LAYOUT > | |
MAXON_DISALLOW_COPY_AND_ASSIGN (HashMapEntryBase) | |
Protected Attributes inherited from HashMapEntryBase< K, V, ENTRY_HANDLER, LAYOUT > | |
HashMapEntryBase * | _next |
HashValueType | _hashCode |
V | _value |
using KeyType = K |
using ValueType = V |
operator Pair< K, V > | ( | ) | const |
const Entry* GetNextWithSameKey | ( | ) | const |
Returns the next entry with the same key. This is needed for multi-maps to iterate over all entries for a key, see InsertMultiEntry().
Entry* GetNextWithSameKey | ( | ) |
Returns the next entry with the same key. This is needed for multi-maps to iterate over all entries for a key, see InsertMultiEntry().
const Entry* GetNextInBucket | ( | ) | const |
Returns the next entry in the same bucket.
Entry* GetNextInBucket | ( | ) |
Returns the next entry in the same bucket.
void PrivateInitNextInBucket | ( | Entry * | next | ) |
SFINAEHelper<String, V>::type ToString | ( | const FormatStatement * | format = nullptr | ) | const |
Int GetMemorySize | ( | void | ) | const |
|
private |
|
friend |