#include <Map.h>
|
| | TScriptMap () |
| |
| | TScriptMap (FIntrusiveUnsetOptionalState Tag) |
| |
| bool | operator== (FIntrusiveUnsetOptionalState Tag) const |
| |
| bool | IsValidIndex (int32 Index) const |
| |
| bool | IsEmpty () const |
| |
| int32 | Num () const |
| |
| int32 | Max () const |
| |
| int32 | NumUnchecked () const |
| |
| int32 | GetMaxIndex () const |
| |
| void * | GetData (int32 Index, const FScriptMapLayout &Layout) |
| |
| const void * | GetData (int32 Index, const FScriptMapLayout &Layout) const |
| |
| void | MoveAssign (DerivedType &Other, const FScriptMapLayout &Layout) |
| |
| void | Empty (int32 Slack, const FScriptMapLayout &Layout) |
| |
| void | RemoveAt (int32 Index, const FScriptMapLayout &Layout) |
| |
| int32 | AddUninitialized (const FScriptMapLayout &Layout) |
| |
| void | RemoveAtUninitialized (const FScriptMapLayout &Layout, int32 Index) |
| |
| void | CommitLastUninitialized (const FScriptMapLayout &Layout, TFunctionRef< uint32(const void *)> GetKeyHash) |
| |
| void | CommitAllUninitialized (const FScriptMapLayout &Layout, TFunctionRef< uint32(const void *)> GetKeyHash) |
| |
| void | Rehash (const FScriptMapLayout &Layout, TFunctionRef< uint32(const void *)> GetKeyHash) |
| |
| int32 | FindPairIndex (const void *Key, const FScriptMapLayout &MapLayout, TFunctionRef< uint32(const void *)> GetKeyHash, TFunctionRef< bool(const void *, const void *)> KeyEqualityFn) const |
| |
| uint8 * | FindValue (const void *Key, const FScriptMapLayout &MapLayout, TFunctionRef< uint32(const void *)> GetKeyHash, TFunctionRef< bool(const void *, const void *)> KeyEqualityFn) |
| |
| void | Add (const void *Key, const void *Value, const FScriptMapLayout &Layout, TFunctionRef< uint32(const void *)> GetKeyHash, TFunctionRef< bool(const void *, const void *)> KeyEqualityFn, TFunctionRef< void(void *)> KeyConstructAndAssignFn, TFunctionRef< void(void *)> ValueConstructAndAssignFn, TFunctionRef< void(void *)> ValueAssignFn, TFunctionRef< void(void *)> DestructKeyFn, TFunctionRef< void(void *)> DestructValueFn) |
| |
| void * | FindOrAdd (const void *Key, const FScriptMapLayout &Layout, TFunctionRef< uint32(const void *)> GetKeyHash, TFunctionRef< bool(const void *, const void *)> KeyEqualityFn, TFunctionRef< void(void *, void *)> ConstructPairFn) |
| |
| | TScriptMap (const TScriptMap &) |
| |
| void | operator= (const TScriptMap &) |
| |
◆ IntrusiveUnsetOptionalStateType
◆ TScriptMap() [1/3]
◆ TScriptMap() [2/3]
◆ TScriptMap() [3/3]
◆ Add()
| void TScriptMap< AllocatorType, InDerivedType >::Add |
( |
const void * |
Key, |
|
|
const void * |
Value, |
|
|
const FScriptMapLayout & |
Layout, |
|
|
TFunctionRef< uint32(const void *)> |
GetKeyHash, |
|
|
TFunctionRef< bool(const void *, const void *)> |
KeyEqualityFn, |
|
|
TFunctionRef< void(void *)> |
KeyConstructAndAssignFn, |
|
|
TFunctionRef< void(void *)> |
ValueConstructAndAssignFn, |
|
|
TFunctionRef< void(void *)> |
ValueAssignFn, |
|
|
TFunctionRef< void(void *)> |
DestructKeyFn, |
|
|
TFunctionRef< void(void *)> |
DestructValueFn |
|
) |
| |
|
inline |
Adds the (key, value) pair to the map
◆ AddUninitialized()
Adds an uninitialized object to the map. The map will need rehashing at some point after this call to make it valid.
- Returns
- The index of the added element.
◆ CommitAllUninitialized()
◆ CommitLastUninitialized()
◆ Empty()
◆ FindOrAdd()
Constructs a new key-value pair if key didn't exist
No need to rehash after calling. The hash table must be properly hashed before calling.
- Returns
- The address to the value, not the pair
◆ FindPairIndex()
Finds the associated key, value from hash of Key, rather than linearly searching
◆ FindValue()
Finds the associated value from hash of Key, rather than linearly searching
◆ GetData() [1/2]
◆ GetData() [2/2]
◆ GetMaxIndex()
- Returns
- The max valid index of the elements in the sparse storage.
◆ GetScriptLayout()
◆ IsEmpty()
◆ IsValidIndex()
◆ Max()
- Returns
- The number of elements the map can hold before reallocation.
◆ MoveAssign()
◆ Num()
◆ NumUnchecked()
◆ operator=()
◆ operator==()
◆ Rehash()
◆ RemoveAt()
◆ RemoveAtUninitialized()
◆ bHasIntrusiveUnsetOptionalState
The documentation for this class was generated from the following file:
- Engine/Source/Runtime/Core/Public/Containers/Map.h