Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Metadata
Inheritance Hierarchy
- FPCGMetadataAttributeBase
- FPCGMetadataAttribute
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Metadata/PCGMetadataAttributeTpl.h |
| Include | #include "Metadata/PCGMetadataAttributeTpl.h" |
Syntax
template<typename T>
class FPCGMetadataAttribute : public FPCGMetadataAttributeBase
Variables
| Type | Name | Description | |
|---|---|---|---|
| T | DefaultValue | ||
| PCGMetadataValueKey | ValueKeyOffset | ||
| FRWLock | ValueLock | ||
| TArray< T > | Values |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| This constructor is used only during serialization. | |||
FPCGMetadataAttribute
(
UPCGMetadata* InMetadata, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Accumulate
(
PCGMetadataEntryKey ItemKey, |
||
| void | Accumulate
(
PCGMetadataEntryKey ItemKey, |
||
| void | Accumulate
(
PCGMetadataEntryKey ItemKey, |
||
| void | Accumulate
(
PCGMetadataEntryKey ItemKey, |
||
| PCGMetadataValueKey | AddValue
(
const T& InValue |
Adds the value, returns the value key for the given value | |
| TArray< PCGMetadataValueKey > | AddValues
(
const TArrayView< const T >& InValues |
||
| TArray< PCGMetadataValueKey > | AddValues
(
const TArrayView< const T >& InValues |
||
| 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. | |
| PCGMetadataValueKey | FindValue
(
const T& InValue |
||
| PCGMetadataValueKey | FindValue
(
const T& InValue |
||
| bool | FindValues
(
const TArrayView< const T >& InValues, |
||
| bool | FindValues
(
const TArrayView< const T >& InValues, |
||
| void | FindValuesInternal
(
const TArrayView< const T >& InValues, |
||
| const FPCGMetadataAttribute * | GetParent () |
||
| T | GetValue
(
PCGMetadataValueKey ValueKey |
||
| T | GetValueFromItemKey
(
PCGMetadataEntryKey ItemKey |
||
| bool | SetAdd
(
PCGMetadataEntryKey ItemKey, |
||
| bool | SetAdd
(
PCGMetadataEntryKey ItemKey, |
||
| void | SetDefaultValue
(
const T& Value |
||
| bool | SetDiv
(
PCGMetadataEntryKey ItemKey, |
||
| bool | SetDiv
(
PCGMetadataEntryKey ItemKey, |
||
| bool | SetMax
(
PCGMetadataEntryKey ItemKey, |
||
| bool | SetMax
(
PCGMetadataEntryKey ItemKey, |
||
| bool | SetMin
(
PCGMetadataEntryKey ItemKey, |
Code related to computing compared values (min, max, sub, add) | |
| bool | SetMin
(
PCGMetadataEntryKey ItemKey, |
||
| bool | SetMul
(
PCGMetadataEntryKey ItemKey, |
||
| bool | SetMul
(
PCGMetadataEntryKey ItemKey, |
||
| bool | SetSub
(
PCGMetadataEntryKey ItemKey, |
||
| bool | SetSub
(
PCGMetadataEntryKey ItemKey, |
||
| void | SetValue
(
PCGMetadataEntryKey ItemKey, |
||
| void | SetValue
(
PCGMetadataEntryKey ItemKey, |
||
| void | SetValues
(
const TArrayView< const PCGMetadataEntryKey >& ItemKeys, |
||
| void | SetValues
(
const TArrayView< const PCGMetadataEntryKey*const >& ItemKeys, |
||
| FPCGMetadataAttribute * | TypedCopy
(
FName NewName, |
||
| void | ZeroValue
(
PCGMetadataEntryKey ItemKey |
Weighted/interpolated values related code | |
| void | ZeroValue
(
PCGMetadataEntryKey ItemKey |
Overridden from FPCGMetadataAttributeBase
| Type | Name | Description | |
|---|---|---|---|
| void | AccumulateValue
(
PCGMetadataEntryKey ItemKey, |
||
| bool | AreValuesEqual
(
PCGMetadataValueKey ValueKey1, |
||
| bool | AreValuesEqualForEntryKeys
(
PCGMetadataEntryKey EntryKey1, |
||
| FPCGMetadataAttributeBase * | Copy
(
FName NewName, |
||
| FPCGMetadataAttributeBase * | CopyToAnotherType
(
int16 TargetType |
||
| void | Flatten () |
Unparents current attribute by flattening the values, entries, etc. | |
| void | FlattenAndCompress
(
const TArray< PCGMetadataEntryKey >& InEntryKeysToKeep |
Unparents current attribute by flattening the values, entries, etc while only keeping the entries referenced in InEntryKeysToKeep. | |
| PCGMetadataValueKey | |||
| bool | IsEqualToDefaultValue
(
PCGMetadataValueKey ValueKey |
||
| void | Reset () |
Remove all entries, values and parenting. | |
| void | Serialize
(
UPCGMetadata* InMetadata, |
||
| void | 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. | ||
| void | SetValue
(
PCGMetadataEntryKey ItemKey, |
||
| void | SetValue
(
PCGMetadataEntryKey ItemKey, |
||
| void | SetWeightedValue
(
PCGMetadataEntryKey ItemKey, |
||
| void | SetZeroValue
(
PCGMetadataEntryKey ItemKey |
||
| bool | Code related to finding values / compressing data |