Navigation
API > API/Plugins > API/Plugins/PCG
| Name | FPCGMetadataDomain |
| Type | class |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Metadata/PCGMetadataDomain.h |
| Include Path | #include "Metadata/PCGMetadataDomain.h" |
Syntax
class FPCGMetadataDomain
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPCGMetadataDomain
(
UPCGMetadata* InTopMetadata, |
Metadata/PCGMetadataDomain.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FPCGMetadataDomain() |
Metadata/PCGMetadataDomain.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| UPCGMetadata | friend | Metadata/PCGMetadataDomain.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AccumulateWeightedAttributes
(
PCGMetadataEntryKey InKey, |
Metadata/PCGMetadataDomain.h | ||
bool AddAttribute
(
const FPCGMetadataDomain* InOther, |
Creates missing attribute from another metadata if it is not currently present - note that this does not copy values | Metadata/PCGMetadataDomain.h | |
bool AddAttributes
(
const FPCGMetadataDomainInitializeParams& InParams |
Creates missing attributes from another metadata if they are not currently present - note that this does not copy values. | Metadata/PCGMetadataDomain.h | |
bool AddAttributes
(
const FPCGMetadataDomain* InOther |
Creates missing attributes from another metadata if they are not currently present - note that this does not copy values | Metadata/PCGMetadataDomain.h | |
void AddDelayedEntries
(
const TArray< TTuple< int64, int64 > >& AllEntries |
Advanced method. | Metadata/PCGMetadataDomain.h | |
TArray< int64 > AddEntries
(
TArrayView< const int64 > ParentEntryKeys |
Adds a unique entry key to the metadata for all the parent entry keys. | Metadata/PCGMetadataDomain.h | |
void AddEntriesInPlace
(
TArrayView< int64* > ParentEntryKeys |
Adds a unique entry key to the metadata for all the parent entry keys, in place. | Metadata/PCGMetadataDomain.h | |
int64 AddEntry
(
int64 ParentEntryKey |
Adds a unique entry key to the metadata | Metadata/PCGMetadataDomain.h | |
int64 AddEntryPlaceholder () |
Advanced method. | Metadata/PCGMetadataDomain.h | |
void AddToCrc
(
FArchiveCrc32& Ar, |
Computes Crc from all attributes & keys from outer's data. | Metadata/PCGMetadataDomain.h | |
bool ChangeAttributeType
(
FName AttributeName, |
Change type of an attribute | Metadata/PCGMetadataDomain.h | |
void ClearAttribute
(
FName AttributeToClear |
Clear/Reinit attribute | Metadata/PCGMetadataDomain.h | |
void ComputeWeightedAttribute
(
PCGMetadataEntryKey& OutKey, |
Metadata/PCGMetadataDomain.h | ||
FPCGMetadataAttributeBase * CopyAttribute
(
const FPCGMetadataAttributeBase* OriginalAttribute, |
Copies another attribute, with options to keep its parent and copy entries/values | Metadata/PCGMetadataDomain.h | |
void CopyAttribute
(
const FPCGMetadataDomain* InOther, |
Copies an attribute from another metadata, including entries & values. | Metadata/PCGMetadataDomain.h | |
void CopyAttributes
(
const FPCGMetadataDomain* InOther |
Copies attributes from another metadata, including entries & values. | Metadata/PCGMetadataDomain.h | |
| Copy attribute | Metadata/PCGMetadataDomain.h | ||
FPCGMetadataAttribute< T > * CreateAttribute
(
FName AttributeName, |
Create a new attribute. | Metadata/PCGMetadataDomain.h | |
| Creates an attribute given a property. | Metadata/PCGMetadataDomain.h | ||
| Creates an attribute given a property. | Metadata/PCGMetadataDomain.h | ||
void DeleteAttribute
(
FName AttributeName |
Due to stream inheriting, we might want to consider "hiding" parent stream and deleting local streams only. | Metadata/PCGMetadataDomain.h | |
FPCGMetadataAttribute< T > * FindOrCreateAttribute
(
FName AttributeName, |
Find or create an attribute. | Metadata/PCGMetadataDomain.h | |
bool FlattenAndCompress
(
const TArrayView< const PCGMetadataEntryKey >& InEntryKeysToKeep |
Unparents current metadata, flatten attribute and only keep the entries specified. | Metadata/PCGMetadataDomain.h | |
void FlattenImpl() |
Unparents current metadata by flattening the attributes (values, entries, etc.) | Metadata/PCGMetadataDomain.h | |
int32 GetAttributeCount() |
Return the number of attributes in this metadata. | Metadata/PCGMetadataDomain.h | |
void GetAttributes
(
TArray< FName >& AttributeNames, |
Metadata/PCGMetadataDomain.h | ||
const FPCGMetadataAttributeBase * GetConstAttribute
(
FName AttributeName |
Metadata/PCGMetadataDomain.h | ||
const FPCGMetadataAttributeBase * GetConstAttributeById
(
int32 AttributeId |
Metadata/PCGMetadataDomain.h | ||
const FPCGMetadataAttribute< T > * GetConstTypedAttribute
(
FName AttributeName |
Metadata/PCGMetadataDomain.h | ||
FPCGMetadataDomainID GetDomainID() |
Metadata/PCGMetadataDomain.h | ||
int64 GetItemCountForChild() |
Return the number of entries in metadata including the parent entries. | Metadata/PCGMetadataDomain.h | |
int64 GetItemKeyCountForParent() |
Metadata/PCGMetadataDomain.h | ||
FName GetLatestAttributeNameOrNone() |
Returns name of the most recently created attribute, or none if no attributes are present. | Metadata/PCGMetadataDomain.h | |
int64 GetLocalItemCount() |
Metadata/PCGMetadataDomain.h | ||
FPCGMetadataAttributeBase * GetMutableAttribute
(
FName AttributeName |
Get attributes | Metadata/PCGMetadataDomain.h | |
FPCGMetadataAttribute< T > * GetMutableTypedAttribute
(
FName AttributeName |
Metadata/PCGMetadataDomain.h | ||
FPCGMetadataAttribute< T > * GetMutableTypedAttribute_Unsafe
(
FName AttributeName |
Metadata/PCGMetadataDomain.h | ||
const FPCGMetadataDomain * GetParent() |
Returns this metadata's parent | Metadata/PCGMetadataDomain.h | |
PCGMetadataEntryKey GetParentKey
(
PCGMetadataEntryKey LocalItemKey |
Metadata chaining mechanism | Metadata/PCGMetadataDomain.h | |
void GetParentKeys
(
TArrayView< PCGMetadataEntryKey > LocalItemKeys, |
Metadata chaining mechanism for bulk version. | Metadata/PCGMetadataDomain.h | |
void GetParentKeysWithRange
(
TPCGValueRange< PCGMetadataEntryKey > LocalItemKeys, |
Metadata chaining mechanism for bulk version. | Metadata/PCGMetadataDomain.h | |
const FPCGMetadataDomain * GetRoot() |
Metadata/PCGMetadataDomain.h | ||
const UPCGMetadata * GetTopMetadata() |
Metadata/PCGMetadataDomain.h | ||
bool HasAttribute
(
FName AttributeName |
Metadata/PCGMetadataDomain.h | ||
bool HasCommonAttributes
(
const FPCGMetadataDomain* InMetadata |
Metadata/PCGMetadataDomain.h | ||
bool HasParent
(
const FPCGMetadataDomain* InTentativeParent |
Metadata/PCGMetadataDomain.h | ||
void Initialize
(
const FPCGMetadataDomainInitializeParams& InParams |
Initializes the sub metadata from a parent sub metadata. Copies attributes and values. | Metadata/PCGMetadataDomain.h | |
void Initialize
(
const FPCGMetadataDomain* InParent |
Initializes the sub metadata from a parent sub metadata, if any (can be null). | Metadata/PCGMetadataDomain.h | |
void InitializeAsCopy
(
const FPCGMetadataDomainInitializeParams& InParams |
Initializes the metadata from a parent metadata by copy filtered attributes only to it | Metadata/PCGMetadataDomain.h | |
void InitializeAsCopy
(
const FPCGMetadataDomain* InMetadataToCopy |
Initializes the sub metadata from a parent sub metadata by copying all attributes to it. | Metadata/PCGMetadataDomain.h | |
bool InitializeOnSet
(
PCGMetadataEntryKey& InOutKey, |
Initializes the metadata entry key. Returns true if key set from either parent | Metadata/PCGMetadataDomain.h | |
void MergeAttributes
(
PCGMetadataEntryKey InKeyA, |
Attributes operations | Metadata/PCGMetadataDomain.h | |
void MergeAttributesSubset
(
PCGMetadataEntryKey InKeyA, |
Metadata/PCGMetadataDomain.h | ||
| Rename attribute | Metadata/PCGMetadataDomain.h | ||
void ResetWeightedAttributes
(
PCGMetadataEntryKey& OutKey |
Metadata/PCGMetadataDomain.h | ||
virtual void Serialize
(
FArchive& InArchive |
FPCGMetadataDomain. | Metadata/PCGMetadataDomain.h | |
| Set an attribute given a property and its value. | Metadata/PCGMetadataDomain.h | ||
| Set an attribute given a property and its value. | Metadata/PCGMetadataDomain.h | ||
void SetAttributes
(
PCGMetadataEntryKey InKey, |
Metadata/PCGMetadataDomain.h | ||
void SetAttributes
(
const TArrayView< const PCGMetadataEntryKey >& InOriginalKeys, |
Metadata/PCGMetadataDomain.h | ||
void SetAttributes
(
const TArrayView< const PCGMetadataEntryKey >& InKeys, |
Metadata/PCGMetadataDomain.h | ||
bool SupportsMultiEntries() |
Metadata/PCGMetadataDomain.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddAttributeInternal
(
FName AttributeName, |
Metadata/PCGMetadataDomain.h | ||
FPCGMetadataAttributeBase * CopyAttribute
(
FName AttributeToCopy, |
Metadata/PCGMetadataDomain.h | ||
bool ParentHasAttribute
(
FName AttributeName |
Metadata/PCGMetadataDomain.h | ||
void RemoveAttributeInternal
(
FName AttributeName |
Metadata/PCGMetadataDomain.h | ||
void SetLastCachedSelectorOnOwner
(
FName AttributeName |
Metadata/PCGMetadataDomain.h |