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