Navigation
API > API/Runtime > API/Runtime/Core
A TMapBase specialization that allows multiple values to be associated with each key.
| Name | TMultiMap |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Map.h |
| Include Path | #include "Containers/Map.h" |
Syntax
template<typename KeyType, typename ValueType, typename SetAllocator, typename KeyFuncs>
class TMultiMap : public TSortableMapBase< KeyType, ValueType, SetAllocator, KeyFuncs >
Inheritance Hierarchy
- TMapBase → TSortableMapBase → TMultiMap
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TMultiMap
(
std::initializer_list< TPairInitializer< const KeyType&, const ValueType& > > InitList |
Constructor which gets its elements from a native initializer list | Containers/Map.h | |
TMultiMap () |
Containers/Map.h | ||
| Containers/Map.h | |||
| Containers/Map.h | |||
| Constructor for moving elements from a TMap with a different SetAllocator | Containers/Map.h | ||
| Constructor for copying elements from a TMap with a different SetAllocator | Containers/Map.h | ||
| Containers/Map.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| IntrusiveUnsetOptionalStateType | TMultiMap | Containers/Map.h | |
| KeyConstPointerType | Super::KeyConstPointerType | Containers/Map.h | |
| KeyInitType | Super::KeyInitType | Containers/Map.h | |
| Super | TSortableMapBase< KeyType, ValueType, SetAllocator, KeyFuncs > | Containers/Map.h | |
| ValueInitType | Super::ValueInitType | Containers/Map.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| bHasIntrusiveUnsetOptionalState | bool | Start - intrusive TOptional |
Containers/Map.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ValueType & AddUnique
(
const KeyType& InKey, |
Add a key-value association to the map. | Containers/Map.h | |
ValueType & AddUnique
(
const KeyType& InKey, |
Containers/Map.h | ||
ValueType & AddUnique
(
KeyType&& InKey, |
Containers/Map.h | ||
ValueType & AddUnique
(
KeyType&& InKey, |
Containers/Map.h | ||
| Move all items from another map into our map (if any keys are in both, the value from the other map wins) and empty the other map. | Containers/Map.h | ||
| Add all items from another map to our map (if any keys are in both, the value from the other map wins). | Containers/Map.h | ||
ValueType & EmplaceUnique
(
InitKeyType&& InKey, |
Add a key-value association to the map. | Containers/Map.h | |
const ValueType * FindPair
(
KeyInitType Key, |
Find an association between a specified key and value. (const) | Containers/Map.h | |
ValueType * FindPair
(
KeyInitType Key, |
Find an association between a specified key and value. | Containers/Map.h | |
void MultiFind
(
KeyInitType Key, |
Finds all values associated with the specified key. | Containers/Map.h | |
void MultiFindPointer
(
KeyInitType Key, |
Containers/Map.h | ||
void MultiFindPointer
(
KeyInitType Key, |
Finds all values associated with the specified key. | Containers/Map.h | |
int32 Num
(
KeyInitType Key |
Returns the number of values within this map associated with the specified key | Containers/Map.h | |
int32 Num () |
Since we implement an overloaded Num() function in TMultiMap, we need to reimplement TMapBase::Num to make it visible. | Containers/Map.h | |
int32 Remove
(
KeyConstPointerType InKey |
Remove all value associations for a key. | Containers/Map.h | |
int32 Remove
(
KeyInitType InKey, |
Remove associations between the specified key and value from the map. | Containers/Map.h | |
int32 RemoveSingle
(
KeyInitType InKey, |
Remove the first association between the specified key and value from the map. | Containers/Map.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Containers/Map.h | |||
| Containers/Map.h | |||
| End - intrusive TOptional |
Containers/Map.h | ||
| Assignment operator for copying elements from a TMap with a different SetAllocator | Containers/Map.h | ||
TMultiMap & operator=
(
std::initializer_list< TPairInitializer< const KeyType&, const ValueType& > > InitList |
Assignment operator which gets its elements from a native initializer list | Containers/Map.h | |
bool operator==
(
FIntrusiveUnsetOptionalState Tag |
Containers/Map.h |