Navigation
API > API/Plugins > API/Plugins/PCG
Class meant to wrap around a FScriptSetHelper, to manipulate it like a TSet and have type checking. It is not meant to be initialized by the user, but by the generic attributes (hence why only the default ctor is exposed). Since it contains a FScriptSetHelper, which contains a FScriptSet pointer, lifetime is not guaranteed. Can convert to a TSet, but this operation will do a full copy, so it might be expensive. Note that it is also read-only, so support only const operations.
| Name | TScriptSetWrapper |
| Type | class |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Metadata/PCGMetadataContainerTypes.h |
| Include Path | #include "Metadata/PCGMetadataContainerTypes.h" |
Syntax
template<typename T>
class TScriptSetWrapper
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TScriptSetWrapper() |
Metadata/PCGMetadataContainerTypes.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Dummy | FSetProperty | HACK: We need to use a dummy property so the helper can be default constructed. | Metadata/PCGMetadataContainerTypes.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FPCGMetadataAttributeBase | friend | Metadata/PCGMetadataContainerTypes.h | ||
| Helper | FScriptSetHelper | Metadata/PCGMetadataContainerTypes.h | ||
| IPCGAttributeAccessor | friend | Metadata/PCGMetadataContainerTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Contains
(
const T& Value |
Metadata/PCGMetadataContainerTypes.h | ||
void ForEach
(
FuncType&& Func |
Metadata/PCGMetadataContainerTypes.h | ||
const FScriptSetHelper * GetHelper() |
Metadata/PCGMetadataContainerTypes.h | ||
TSet< T > Intersection
(
const TSet< T >& Other |
Metadata/PCGMetadataContainerTypes.h | ||
bool IsValid() |
Metadata/PCGMetadataContainerTypes.h | ||
int32 Num() |
Metadata/PCGMetadataContainerTypes.h | ||
TSet< T > Union
(
const TSet< T >& Other |
Metadata/PCGMetadataContainerTypes.h |