Navigation
API > API/Runtime > API/Runtime/InterchangeCore
Helper class to manage a TMap where the key and value type can be any type support by the FAttributeStorage
| Name | TMapAttributeHelper |
| Type | class |
| Header File | /Engine/Source/Runtime/Interchange/Core/Public/Nodes/InterchangeBaseNodeUtilities.h |
| Include Path | #include "Nodes/InterchangeBaseNodeUtilities.h" |
Syntax
template<typename KeyType, typename ValueType>
class TMapAttributeHelper
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TMapAttributeHelper
(
const TMapAttributeHelper& |
Nodes/InterchangeBaseNodeUtilities.h | ||
| Nodes/InterchangeBaseNodeUtilities.h | |||
| Nodes/InterchangeBaseNodeUtilities.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TMapAttributeHelper() |
Nodes/InterchangeBaseNodeUtilities.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| TAttributeHandle | FAttributeStorage::TAttributeHandle< T > | Nodes/InterchangeBaseNodeUtilities.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Attributes | TWeakPtr< FAttributeStorage, ESPMode::ThreadSafe > | Nodes/InterchangeBaseNodeUtilities.h | ||
| CachedKeysAndValues | TMap< KeyType, TPair< TAttributeHandle< KeyType >, TAttributeHandle< ValueType > > > | Nodes/InterchangeBaseNodeUtilities.h | ||
| KeyCountHandle | TAttributeHandle< int32 > | Nodes/InterchangeBaseNodeUtilities.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Empty
(
int32 NumOfExpectedElements |
Nodes/InterchangeBaseNodeUtilities.h | ||
int32 GetCount() |
Nodes/InterchangeBaseNodeUtilities.h | ||
bool GetValue
(
const KeyType& InKey, |
Nodes/InterchangeBaseNodeUtilities.h | ||
bool GetValueByHash
(
uint32 Hash, |
Nodes/InterchangeBaseNodeUtilities.h | ||
void Initialize
(
const TSharedRef< FAttributeStorage, ESPMode::ThreadSafe >& InAttributes, |
Nodes/InterchangeBaseNodeUtilities.h | ||
void RebuildCache() |
Nodes/InterchangeBaseNodeUtilities.h | ||
bool RemoveKey
(
const KeyType& InKey |
Nodes/InterchangeBaseNodeUtilities.h | ||
bool RemoveKeyAndGetValue
(
const KeyType& InKey, |
Nodes/InterchangeBaseNodeUtilities.h | ||
bool RemoveKeyAndGetValueByHash
(
uint32 Hash, |
Nodes/InterchangeBaseNodeUtilities.h | ||
bool RemoveKeyByHash
(
uint32 Hash, |
Nodes/InterchangeBaseNodeUtilities.h | ||
void Reserve
(
int32 Number |
Nodes/InterchangeBaseNodeUtilities.h | ||
bool SetKeyValue
(
const KeyType& InKey, |
Nodes/InterchangeBaseNodeUtilities.h | ||
bool SetKeyValueByHash
(
uint32 Hash, |
Nodes/InterchangeBaseNodeUtilities.h | ||
TMap< KeyType, ValueType > ToMap() |
Nodes/InterchangeBaseNodeUtilities.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TMapAttributeHelper & operator=
(
const TMap< KeyType, ValueType >& InMap |
Nodes/InterchangeBaseNodeUtilities.h | ||
| Nodes/InterchangeBaseNodeUtilities.h | |||
TMapAttributeHelper & operator=
(
const TMapAttributeHelper& |
Nodes/InterchangeBaseNodeUtilities.h |