Navigation
API > API/Runtime > API/Runtime/InterchangeCore
Helper class to manage a TSet where the value type can be any type support by the FAttributeStorage This class can also load storage made for the TArrayAttributeHelper but will ignore duplicate values
| Name | TSetAttributeHelper |
| Type | class |
| Header File | /Engine/Source/Runtime/Interchange/Core/Public/Nodes/InterchangeBaseNodeUtilities.h |
| Include Path | #include "Nodes/InterchangeBaseNodeUtilities.h" |
Syntax
template<typename ValueType>
class TSetAttributeHelper
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSetAttributeHelper
(
const TSetAttributeHelper& |
Nodes/InterchangeBaseNodeUtilities.h | ||
| Nodes/InterchangeBaseNodeUtilities.h | |||
| Nodes/InterchangeBaseNodeUtilities.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TSetAttributeHelper() |
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 | ||
| CachedValues | TMap< ValueType, FAttributeKey > | Nodes/InterchangeBaseNodeUtilities.h | ||
| KeyCount | FAttributeKey | Nodes/InterchangeBaseNodeUtilities.h | ||
| KeyCountHandle | TAttributeHandle< int32 > | Nodes/InterchangeBaseNodeUtilities.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool AddItem
(
const ValueType& InValue |
Adds an item. | Nodes/InterchangeBaseNodeUtilities.h | |
void Empty
(
int32 NumOfExpectedElements |
Nodes/InterchangeBaseNodeUtilities.h | ||
int32 GetCount() |
Nodes/InterchangeBaseNodeUtilities.h | ||
bool HasItem
(
const ValueType& InValue |
Nodes/InterchangeBaseNodeUtilities.h | ||
void Initialize
(
const TSharedPtr< FAttributeStorage, ESPMode::ThreadSafe >& InAttributes, |
Nodes/InterchangeBaseNodeUtilities.h | ||
void RebuildCache() |
Nodes/InterchangeBaseNodeUtilities.h | ||
bool RemoveItem
(
const ValueType& InValue |
Remove an item if it exists. Will realign attributes by indices in the storage if needed (0(N)). | Nodes/InterchangeBaseNodeUtilities.h | |
void Reserve
(
int32 Number |
Nodes/InterchangeBaseNodeUtilities.h | ||
TSet< ValueType > ToSet() |
Nodes/InterchangeBaseNodeUtilities.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSetAttributeHelper & operator=
(
const TSet< ValueType >& InSet |
Nodes/InterchangeBaseNodeUtilities.h | ||
| Nodes/InterchangeBaseNodeUtilities.h | |||
TSetAttributeHelper & operator=
(
const TSetAttributeHelper& |
Nodes/InterchangeBaseNodeUtilities.h |