Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/IPCGAttributeAccessor
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool GetRange
(
TArrayView< T > OutValues, |
Get a range of values from the accessor for a given type. | Metadata/Accessors/IPCGAttributeAccessor.h | |
bool GetRange
(
PCG::Private::FOutValues OutValues, |
Type erased version of GetRange. | Metadata/Accessors/IPCGAttributeAccessor.h |
GetRange(TArrayView< T >, int32, const IPCGAttributeAccessorKeys &, EPCGAttributeAccessorFlags)
Description
Get a range of values from the accessor for a given type. Not threadsafe for all accessors. If the number of elements asked is greater that the number of keys, it will wrap around.
| Name | GetRange |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Metadata/Accessors/IPCGAttributeAccessor.h |
| Include Path | #include "Metadata/Accessors/IPCGAttributeAccessor.h" |
template<typename T>
bool GetRange
(
TArrayView < T > OutValues,
int32 Index,
const IPCGAttributeAccessorKeys & Keys,
EPCGAttributeAccessorFlags Flags
) const
true if the get succeeded, false otherwise
Parameters
| Name | Remarks |
|---|---|
| OutValues | View on memory where to write values to. Its "Num" will determine how many elements we will read. |
| Index | The index to start looking for in the keys |
| Keys | Identification to know how to retrieve the value |
| Flags | Optional flag to allow for specific operations. Cf EPCGAttributeAccessorFlags. |
GetRange(PCG::Private::FOutValues, const FPCGMetadataAttributeDesc &, int32, int32, const IPCGAttributeAccessorKeys &, EPCGAttributeAccessorFlags)
Description
Type erased version of GetRange. To be used with caution, it is the caller responsibility to allocate the right buffer. If conversion is possible but the buffers are not allocated in OutValues, it will error out.
| Name | GetRange |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Metadata/Accessors/IPCGAttributeAccessor.h |
| Include Path | #include "Metadata/Accessors/IPCGAttributeAccessor.h" |
| Source | /Engine/Plugins/PCG/Source/PCG/Private/Metadata/Accessors/IPCGAttributeAccessor.cpp |
bool GetRange
(
PCG::Private::FOutValues OutValues,
const FPCGMetadataAttributeDesc & WriteDesc,
int32 Count,
int32 Index,
const IPCGAttributeAccessorKeys & Keys,
EPCGAttributeAccessorFlags Flags
) const
true if the get succeeded, false otherwise
Parameters
| Name | Remarks |
|---|---|
| OutValues | Type erased variant to write the values to. |
| WriteDesc | Type of the underlying descriptor to write to. Must match the OutValues data. |
| Count | Number of values to copy |
| Index | The index to look for in the keys |
| Keys | Identification to know how to retrieve the value |
| Flags | Optional flag to allow for specific operations. Cf EPCGAttributeAccessorFlags. |