Navigation
API > API/Plugins > API/Plugins/PCG
Not supposed to be used directly. Only supports legacy types, such as int32 or float. It does not support arrays or complex structs.
| Name | FPCGMetadataAttribute |
| Type | class |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Metadata/PCGMetadataAttributeTpl.h |
| Include Path | #include "Metadata/PCGMetadataAttributeTpl.h" |
Syntax
template<typename T>
class FPCGMetadataAttribute : public FPCGMetadataAttributeBase
Inheritance Hierarchy
- FPCGMetadataAttributeBase → FPCGMetadataAttribute
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| This constructor is used only during serialization. | Metadata/PCGMetadataAttributeTpl.h | ||
| This constructor is used only during serialization | Metadata/PCGMetadataAttributeTpl.h | ||
FPCGMetadataAttribute
(
FPCGMetadataDomain* InMetadata, |
Metadata/PCGMetadataAttributeTpl.h | ||
FPCGMetadataAttribute
(
FProtectedToken, |
Metadata/PCGMetadataAttributeTpl.h |
Structs
| Name | Remarks |
|---|---|
| FProtectedToken | Constructors were public before 5.8, but are now protected. Use this sentinel token to guard the new protected constructors. |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FPCGMetadataDomain | friend | Metadata/PCGMetadataAttributeTpl.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
PCGMetadataValueKey AddValue
(
const T& InValue |
Adds the value, returns the value key for the given value | Metadata/PCGMetadataAttributeTpl.h | |
TArray< PCGMetadataValueKey > AddValues
(
const TArrayView< const T >& InValues |
Metadata/PCGMetadataAttributeTpl.h | ||
PCGMetadataValueKey FindValue
(
const T& InValue |
Metadata/PCGMetadataAttributeTpl.h | ||
bool FindValues
(
const TArrayView< const T >& InValues, |
Metadata/PCGMetadataAttributeTpl.h | ||
T GetValue
(
PCGMetadataValueKey ValueKey |
Metadata/PCGMetadataAttributeTpl.h | ||
T GetValueFromItemKey
(
PCGMetadataEntryKey ItemKey |
Metadata/PCGMetadataAttributeTpl.h | ||
void GetValues
(
const TArrayView< const PCGMetadataValueKey > ValueKeys, |
Write into pre-allocated OutValues the values associated with the given value keys. | Metadata/PCGMetadataAttributeTpl.h | |
void GetValuesFromItemKeys
(
TArrayView< PCGMetadataEntryKey > EntryKeys, |
Write into pre-allocated OutValues the values associated with the given entry keys. | Metadata/PCGMetadataAttributeTpl.h | |
void GetValuesFromItemKeys
(
TConstPCGValueRange< PCGMetadataEntryKey > EntryKeys, |
Metadata/PCGMetadataAttributeTpl.h | ||
void GetValuesFromItemKeys
(
TConstArrayView< PCGMetadataEntryKey > EntryKeys, |
Write into pre-allocated OutValues the values associated with the given entry keys. | Metadata/PCGMetadataAttributeTpl.h | |
void SetValue
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
void SetValue
(
PCGMetadataEntryKey ItemKey, |
Special version for enum classes, as enums are not directly constructible. | Metadata/PCGMetadataAttributeTpl.h | |
void SetValue
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
void SetValues
(
const TArrayView< const PCGMetadataEntryKey >& ItemKeys, |
Metadata/PCGMetadataAttributeTpl.h | ||
void SetValues
(
const TArrayView< const PCGMetadataEntryKey*const >& ItemKeys, |
Metadata/PCGMetadataAttributeTpl.h | ||
void SetValues
(
TPCGValueRange< PCGMetadataEntryKey > ItemKeys, |
Metadata/PCGMetadataAttributeTpl.h | ||
void SetValues
(
TConstPCGValueRange< PCGMetadataEntryKey > ItemKeys, |
Metadata/PCGMetadataAttributeTpl.h | ||
void SetValues_TryLockless
(
TArrayView< PCGMetadataEntryKey* > EntryKeys, |
Metadata/PCGMetadataAttributeTpl.h | ||
FPCGMetadataAttribute * TypedCopy
(
FName NewName, |
Metadata/PCGMetadataAttributeTpl.h |
Public Virtual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AccumulateValue
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
virtual FPCGMetadataAttributeBase * Copy
(
FName NewName, |
Metadata/PCGMetadataAttributeTpl.h | ||
virtual FPCGMetadataAttributeBase * CopyToAnotherType
(
int16 TargetType |
Metadata/PCGMetadataAttributeTpl.h | ||
virtual void Serialize
(
FPCGMetadataDomain* InMetadata, |
Metadata/PCGMetadataAttributeTpl.h | ||
virtual void SetValue
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
virtual void SetValue
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
virtual void SetWeightedValue
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
virtual void SetZeroValue
(
PCGMetadataEntryKey ItemKey |
Metadata/PCGMetadataAttributeTpl.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Accumulate
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
void Accumulate
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
FPCGMetadataAttributeBase * CopyInternal
(
FName NewName, |
TODO: add enable if only on compatible types, but this has some repercussion on using metadata on types that aren't normally supported. | Metadata/PCGMetadataAttributeTpl.h | |
bool SetAdd
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
bool SetDiv
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
bool SetMax
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
bool SetMin
(
PCGMetadataEntryKey ItemKey, |
Code related to computing compared values (min, max, sub, add) | Metadata/PCGMetadataAttributeTpl.h | |
bool SetMul
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
bool SetSub
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
void ZeroValue
(
PCGMetadataEntryKey ItemKey |
Weighted/interpolated values related code | Metadata/PCGMetadataAttributeTpl.h |