Navigation
API > API/Plugins > API/Plugins/PCG
Class meant to wrap around a FScriptMapHelper, to manipulate it like a TMap 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 FScriptMapHelper, which contains a FScriptMap pointer, lifetime is not guaranteed. Can convert to a TMap, 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 | TScriptMapWrapper |
| Type | class |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Metadata/PCGMetadataContainerTypes.h |
| Include Path | #include "Metadata/PCGMetadataContainerTypes.h" |
Syntax
template<typename KeyType, typename ValueType>
class TScriptMapWrapper
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TScriptMapWrapper() |
Metadata/PCGMetadataContainerTypes.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Dummy | FBoolProperty | HACK: We need to use dummy properties 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 | FScriptMapHelper | Metadata/PCGMetadataContainerTypes.h | ||
| IPCGAttributeAccessor | friend | Metadata/PCGMetadataContainerTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Contains
(
const KeyType& Key |
Metadata/PCGMetadataContainerTypes.h | ||
const ValueType * Find
(
const KeyType& Key |
Metadata/PCGMetadataContainerTypes.h | ||
void ForEach
(
FuncType&& Func |
Metadata/PCGMetadataContainerTypes.h | ||
const FScriptSetHelper * GetHelper() |
Metadata/PCGMetadataContainerTypes.h | ||
bool IsValid() |
Metadata/PCGMetadataContainerTypes.h | ||
int32 Num() |
Metadata/PCGMetadataContainerTypes.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const ValueType & operator[]
(
const KeyType& Key |
Metadata/PCGMetadataContainerTypes.h |