Navigation
API > API/Plugins > API/Plugins/PCG
| 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 | ||
FPCGMetadataAttribute
(
FPCGMetadataDomain* InMetadata, |
TODO: All deprecated versions taking a UPCGMetadata will be added at the end of this declaration. | Metadata/PCGMetadataAttributeTpl.h | |
FPCGMetadataAttribute
(
UPCGMetadata* InMetadata, |
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 | ||
TArray< PCGMetadataValueKey > AddValues
(
const TArrayView< const T >& InValues |
Metadata/PCGMetadataAttributeTpl.h | ||
FPCGMetadataAttributeBase * CopyInternal
(
FName NewName, |
Metadata/PCGMetadataAttributeTpl.h | ||
PCGMetadataValueKey FindValue
(
const T& InValue |
Metadata/PCGMetadataAttributeTpl.h | ||
PCGMetadataValueKey FindValue
(
const T& InValue |
Metadata/PCGMetadataAttributeTpl.h | ||
bool FindValues
(
const TArrayView< const T >& InValues, |
Metadata/PCGMetadataAttributeTpl.h | ||
bool FindValues
(
const TArrayView< const T >& InValues, |
Metadata/PCGMetadataAttributeTpl.h | ||
void FindValuesInternal
(
const TArrayView< const T >& InValues, |
Metadata/PCGMetadataAttributeTpl.h | ||
const FPCGMetadataAttribute * GetParent() |
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
(
const TArrayView< const PCGMetadataEntryKey > EntryKeys, |
Write into pre-allocated OutValues the values associated with the given entry keys. | Metadata/PCGMetadataAttributeTpl.h | |
int32 PreallocateValues
(
TArrayView< PCGMetadataEntryKey* > EntryKeys, |
Metadata/PCGMetadataAttributeTpl.h | ||
void Prepare
(
int32 Count |
Metadata/PCGMetadataAttributeTpl.h | ||
void SetDefaultValue
(
const T& Value |
Metadata/PCGMetadataAttributeTpl.h | ||
void SetValue
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
void SetValue
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
void SetValues
(
const TArrayView< const PCGMetadataEntryKey*const >& ItemKeys, |
Metadata/PCGMetadataAttributeTpl.h | ||
void SetValues
(
const TArrayView< const PCGMetadataEntryKey >& ItemKeys, |
Metadata/PCGMetadataAttributeTpl.h | ||
void SetValues_TryLockless
(
TArrayView< PCGMetadataEntryKey* > EntryKeys, |
Metadata/PCGMetadataAttributeTpl.h | ||
FPCGMetadataAttribute * TypedCopy
(
FName NewName, |
Metadata/PCGMetadataAttributeTpl.h | ||
FPCGMetadataAttribute * TypedCopy
(
FName NewName, |
Metadata/PCGMetadataAttributeTpl.h |
Overridden from FPCGMetadataAttributeBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AccumulateValue
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
virtual bool AreValuesEqual
(
PCGMetadataValueKey ValueKey1, |
Metadata/PCGMetadataAttributeTpl.h | ||
virtual bool AreValuesEqualForEntryKeys
(
PCGMetadataEntryKey EntryKey1, |
Metadata/PCGMetadataAttributeTpl.h | ||
virtual FPCGMetadataAttribute * Copy
(
FName NewName, |
Metadata/PCGMetadataAttributeTpl.h | ||
virtual FPCGMetadataAttributeBase * Copy
(
FName NewName, |
Metadata/PCGMetadataAttributeTpl.h | ||
virtual FPCGMetadataAttributeBase * CopyToAnotherType
(
int16 TargetType |
Metadata/PCGMetadataAttributeTpl.h | ||
virtual void Flatten() |
Unparents current attribute by flattening the values, entries, etc. | Metadata/PCGMetadataAttributeTpl.h | |
virtual void FlattenAndCompress
(
const TArrayView< const PCGMetadataEntryKey >& InEntryKeysToKeep |
Unparents current attribute by flattening the values, entries, etc while only keeping the entries referenced in InEntryKeysToKeep. | Metadata/PCGMetadataAttributeTpl.h | |
virtual PCGMetadataValueKey GetValueKeyOffsetForChild() |
Metadata/PCGMetadataAttributeTpl.h | ||
virtual bool IsEqualToDefaultValue
(
PCGMetadataValueKey ValueKey |
Metadata/PCGMetadataAttributeTpl.h | ||
virtual void Reset() |
Remove all entries, values and parenting. | Metadata/PCGMetadataAttributeTpl.h | |
virtual void Serialize
(
FPCGMetadataDomain* InMetadata, |
Metadata/PCGMetadataAttributeTpl.h | ||
virtual void SetDefaultValueToFirstEntry () |
In the case of multi entry attribute and after some operations, we might have a single entry attribute with a default value that is different than the first entry. | 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 | ||
virtual bool UsesValueKeys() |
Code related to finding values / compressing data | Metadata/PCGMetadataAttributeTpl.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Accumulate
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
void Accumulate
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
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 | |
void GetValues_Internal
(
const TArrayView< const PCGMetadataValueKey > ValueKeys, |
Metadata/PCGMetadataAttributeTpl.h | ||
bool SetAdd
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
bool SetAdd
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
bool SetDiv
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
bool SetDiv
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
bool SetMax
(
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 SetMin
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
bool SetMul
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
bool SetMul
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
bool SetSub
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
bool SetSub
(
PCGMetadataEntryKey ItemKey, |
Metadata/PCGMetadataAttributeTpl.h | ||
void ZeroValue
(
PCGMetadataEntryKey ItemKey |
Weighted/interpolated values related code | Metadata/PCGMetadataAttributeTpl.h | |
void ZeroValue
(
PCGMetadataEntryKey ItemKey |
Metadata/PCGMetadataAttributeTpl.h |