Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/IPCGAttributeAccessor
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool SetRange
(
TArrayView< const T > InValues, |
Set a range of values to the accessor for a given type. | Metadata/Accessors/IPCGAttributeAccessor.h | |
bool SetRange
(
PCG::Private::FInValues InValues, |
Type erased version of SetRange. | Metadata/Accessors/IPCGAttributeAccessor.h |
SetRange(TArrayView< const T >, int32, IPCGAttributeAccessorKeys &, EPCGAttributeAccessorFlags)
Description
Set a range of values to 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 fail. It is to avoid writing at the same memory place multiple times.
| Name | SetRange |
| 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 SetRange
(
TArrayView < const T > InValues,
int32 Index,
IPCGAttributeAccessorKeys & Keys,
EPCGAttributeAccessorFlags Flags
)
true if the set succeeded, false otherwise
Parameters
| Name | Remarks |
|---|---|
| InValues | View on memory where to read values from. Its "Num" will determine how many elements we will write. |
| 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. |
SetRange(PCG::Private::FInValues, const FPCGMetadataAttributeDesc &, int32, int32, IPCGAttributeAccessorKeys &, EPCGAttributeAccessorFlags)
Description
Type erased version of SetRange. To be used with caution, it is the caller responsibility to allocate the right buffer.
| Name | SetRange |
| 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 SetRange
(
PCG::Private::FInValues InValues,
const FPCGMetadataAttributeDesc & ReadDesc,
int32 Count,
int32 Index,
IPCGAttributeAccessorKeys & Keys,
EPCGAttributeAccessorFlags Flags
)
true if the set succeeded, false otherwise
Parameters
| Name | Remarks |
|---|---|
| InValues | Type erased variant to read the values from. |
| ReadDesc | Type of the underlying descriptor to read from. Must match the InValues 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. |