Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Containers
Inheritance Hierarchy
- TMapBase
- TSortableMapBase
- TMap
- FConfigCommandStream
- FConfigFile
- FConfigFileHierarchy
- FContextCache
- FExample
- FGenericMemoryStats::FGenericMemoryStatsMap
- FOnlineKeyValuePairs
- FOnlineEventParms
- FStatPropertyArray
- FStatsColumnArray
- FPartialKeyHashes::FEntries
- FScopes
- FSecurityRequirement
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Containers/Map.h |
| Include | #include "Containers/Map.h" |
Syntax
template<typename InKeyType, typename InValueType, typename SetAllocator, typename KeyFuncs>
class TMap : public TSortableMapBase< InKeyType, InValueType, SetAllocator, KeyFuncs >
Remarks
A TMapBase specialization that only allows a single value associated with each key.
Constructors
| Type | Name | Description | |
|---|---|---|---|
TMap () |
|||
| Constructor for moving elements from a TMap with a different SetAllocator | |||
| Constructor for copying elements from a TMap with a different SetAllocator | |||
TMap
(
std::initializer_list< TPairInitializer< const KeyType&, const ValueType& > > InitList |
Constructor which gets its elements from a native initializer list | ||
TMap
(
FIntrusiveUnsetOptionalState Tag |
Functions
| Type | Name | Description | |
|---|---|---|---|
| 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 | Find a pair with the specified key, removes it from the map, and returns the value part of the pair. | ||
| bool | RemoveAndCopyValue
(
KeyInitType Key, |
Remove the pair with the specified key and copies the value that was removed to the ref parameter | |
| bool | RemoveAndCopyValueByHash
(
uint32 KeyHash, |
See RemoveAndCopyValue() and class documentation section on ByHash() functions |
Operators
| Type | Name | Description | |
|---|---|---|---|
| ValueType & | operator[]
(
KeyConstPointerType Key |
||
| const ValueType & | operator[]
(
KeyConstPointerType Key |
||
| TMap & | operator=
(
std::initializer_list< TPairInitializer< const KeyType&, const ValueType& > > InitList |
Assignment operator which gets its elements from a native initializer list | |
| TMap & | Assignment operator for copying elements from a TMap with a different SetAllocator | ||
| TMap & | End - intrusive TOptional |
||
| TMap & | |||
| TMap & | |||
| bool |
Typedefs
| Name | Description |
|---|---|
| IntrusiveUnsetOptionalStateType | |
| KeyConstPointerType | |
| KeyFuncsType | |
| KeyInitType | |
| KeyType | |
| SetAllocatorType | |
| Super | |
| ValueType |
Constants
| Name | Description |
|---|---|
| bHasIntrusiveUnsetOptionalState | Start - intrusive TOptional |