Navigation
API > API/Plugins > API/Plugins/PCG
Class meant to be used everytime we need to get an array from attributes/accessors. When requesting a type that is the exact same type as the attribute/accessor underlying type, only the view will be set. If the type need to be converted, the other array will be set, and the view will point on this array. When this object gets deleted, the memory will be freed normally.
| Name | TPCGArrayAccessorWrapper |
| Type | class |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Metadata/PCGMetadataContainerTypes.h |
| Include Path | #include "Metadata/PCGMetadataContainerTypes.h" |
Syntax
template<typename T>
class TPCGArrayAccessorWrapper
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Metadata/PCGMetadataContainerTypes.h | |||
TPCGArrayAccessorWrapper
(
const TPCGArrayAccessorWrapper& Other |
Metadata/PCGMetadataContainerTypes.h | ||
TPCGArrayAccessorWrapper
(
TPCGArrayAccessorWrapper&& Other |
Metadata/PCGMetadataContainerTypes.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ElementType | T | Metadata/PCGMetadataContainerTypes.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| OwnMemory | FPCGAccessorBuffer | Metadata/PCGMetadataContainerTypes.h | ||
| View | TConstArrayView< T > | Metadata/PCGMetadataContainerTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TArrayView< T > AllocateOwnMemory
(
int32 Num |
Metadata/PCGMetadataContainerTypes.h | ||
TConstArrayView< T > GetView() |
Access the view on the array. Point to somewhere in memory or to our own memory. | Metadata/PCGMetadataContainerTypes.h | |
bool IsOwningMemory() |
Metadata/PCGMetadataContainerTypes.h | ||
void SetupView
(
TConstArrayView< T > InView |
Setup the view. If memory was owned, it'll be freed. | Metadata/PCGMetadataContainerTypes.h | |
TArray< T > StealMemory() |
Steal the memory owned by this wrapper. Will also reset the view. | Metadata/PCGMetadataContainerTypes.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TPCGArrayAccessorWrapper & operator=
(
const TPCGArrayAccessorWrapper& Other |
Metadata/PCGMetadataContainerTypes.h | ||
TPCGArrayAccessorWrapper & operator=
(
TPCGArrayAccessorWrapper&& Other |
Metadata/PCGMetadataContainerTypes.h |