Navigation
API > API/Plugins > API/Plugins/RigVM > API/Plugins/RigVM/RigVMCore
Inheritance Hierarchy
- FInstancedPropertyBag
- FRigVMMemoryStorageStruct
References
| Module | RigVM |
| Header | /Engine/Plugins/Runtime/RigVM/Source/RigVM/Public/RigVMCore/RigVMMemoryStorageStruct.h |
| Include | #include "RigVMCore/RigVMMemoryStorageStruct.h" |
Syntax
USTRUCT ()
struct FRigVMMemoryStorageStruct : public FInstancedPropertyBag
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | CachedMemoryHash | ||
| TArray< const FProperty * > | LinkedProperties | A cached list of all linked properties (created by RefreshLinkedProperties) | |
| ERigVMMemoryType | MemoryType | ||
| TArray< FRigVMPropertyPathDescription > | PropertyPathDescriptions | ||
| TArray< FRigVMPropertyPath > | PropertyPaths | A cached list of all property paths (created by RefreshPropertyPaths) |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FRigVMMemoryStorageStruct
(
ERigVMMemoryType InMemoryType |
|||
FRigVMMemoryStorageStruct
(
ERigVMMemoryType InMemoryType, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddProperties
(
const TArray< FRigVMPropertyDescription >& InPropertyDescriptions, |
Adds properties to the storage. | |
| void | AddStructReferencedObjects
(
FReferenceCollector& Collector |
||
| bool | CopyProperty
(
const FProperty* InTargetProperty, |
Copies the content of a source property and memory into the memory of a target property | |
| bool | CopyProperty
(
FRigVMMemoryHandle& InTargetHandle, |
Copies the content of a source property and memory into the memory of a target property. | |
| bool | CopyProperty
(
const FProperty* InTargetProperty, |
Copies the content of a source property and memory into the memory of a target property. | |
| bool | CopyProperty
(
FRigVMMemoryStorageStruct* InTargetStorage, |
Copies the content of a source property and memory into the memory of a target property. | |
| FProperty * | FindPropertyByName
(
const FName& InName |
Returns a property given its name (or nullptr if the name wasn't found) | |
| FPropertyBagPropertyDesc | GeneratePropertyBagDescriptor
(
const FRigVMPropertyDescription& RigVMDescriptor |
||
| void * | Returns the raw memory storage pointer. | ||
| T * | Returns the memory for a property given its index. | ||
| T * | GetData
(
const FProperty* Property |
Returns the mutable memory for a given property (or nullptr if does not belong to this storage) | |
| T * | GetData
(
const FRigVMOperand& InOperand |
Returns the memory for a property (and optionally a property path) given an operand. | |
| T * | GetData
(
int32 InPropertyIndex, |
Returns the memory for a property given its index and a matching property path. | |
| FString | GetDataAsString
(
int32 InPropertyIndex, |
Returns the exported text for a given property index. | |
| FString | GetDataAsString
(
const FRigVMOperand& InOperand, |
Returns the exported text for a given operand. | |
| FString | GetDataAsStringByName
(
const FName& InName, |
Returns the exported text for given property name. | |
| FString | GetDataAsStringByNameSafe
(
const FName& InName, |
Returns the exported text for given property name. | |
| FString | GetDataAsStringSafe
(
const FRigVMOperand& InOperand, |
Returns the exported text for a given operand. | |
| FString | GetDataAsStringSafe
(
int32 InPropertyIndex, |
Returns the exported text for a given property index. | |
| T * | GetDataByName
(
const FName& InName, |
Returns the memory for a property given its name and a matching property path (or nullptr) | |
| T * | GetDataByName
(
const FName& InName |
Returns the memory for a property given its name (or nullptr) | |
| FRigVMMemoryHandle | GetHandle
(
int32 InPropertyIndex, |
Returns the handle for a given property by index (and optionally property path) | |
| FRigVMMemoryHandle | GetHandleByName
(
const FName& InName, |
Returns the handle for a given property by name (and optionally property path) | |
| uint32 | |||
| ERigVMMemoryType | |||
| FRigVMOperand | GetOperand
(
int32 InPropertyIndex, |
Creates and returns a new operand for a property (and optionally a property path) | |
| FRigVMOperand | GetOperandByName
(
const FName& InName, |
Creates and returns a new operand for a property (and optionally a property path) | |
| const TArray< const FProperty * > & | Returns the properties provided by this instance. | ||
| const FProperty * | GetProperty
(
int32 InPropertyIndex |
Returns a property given its index. | |
| int32 | GetPropertyIndex
(
const FProperty* InProperty |
Returns the index of a property given the property itself. | |
| int32 | GetPropertyIndexByName
(
const FName& InName |
Returns the index of a property given its name. | |
| const FRigVMPropertyPathDescription * | GetPropertyPathDescriptionByIndex
(
int32 Index |
||
| const TArray< FRigVMPropertyPath > & | Returns the property paths provided by this instance. | ||
| bool | GetPropertyTypeDataFromVMDescriptor
(
const FRigVMPropertyDescription& RigVMDescriptor, |
||
| T & | GetRef
(
int32 InPropertyIndex, |
Returns the ref of an element stored at a given property index and a property path. | |
| T & | GetRef
(
const FRigVMOperand& InOperand |
Returns the ref of an element stored for a given operand. | |
| T & | Returns the ref of an element stored at a given property index. | ||
| T & | GetRefByName
(
const FName& InName, |
Returns the ref of an element stored at a given property name and a property path (throws if name is invalid) | |
| T & | GetRefByName
(
const FName& InName |
Returns the ref of an element stored at a given property name (throws if name is invalid) | |
| const UStruct * | GetStruct () |
Returns the PropertyBag struct using a standard function signature, so it can be used at IStructureDataProvider | |
| bool | Returns true if the property at a given index is a TArray. | ||
| bool | IsClassOf
(
const FRigVMMemoryStorageStruct* InElement |
||
| bool | Returns true if the property at a given index is a TMap. | ||
| bool | IsValidIndex
(
int32 InIndex |
Returns true if a provided property index is valid. | |
| bool | IsValidPropertyPathDescriptionIndex
(
int32 Index |
||
| int32 | Num () |
Returns the number of properties stored in this instance. | |
| void | |||
| void | |||
| void | |||
| bool | Serialize
(
FArchive& Ar |
||
| bool | SetDataFromString
(
int32 InPropertyIndex, |
Sets the content of a property by index given an exported string. Returns true if succeeded. | |
| bool | SetDataFromStringByName
(
const FName& InName, |
Sets the content of a property by name given an exported string. Returns true if succeeded. | |
| void | SetDefaultValues
(
const TArray< FRigVMPropertyDescription >& InPropertyDescriptions |
||
| void | SetMemoryType
(
ERigVMMemoryType InMemoryType |
||
| void | SetPropertyPathDescriptions
(
const TArray< FRigVMPropertyPathDescription >& InPropertyPathDescriptions |
Constants
| Name | Description |
|---|---|
| EmptyProperties | |
| EmptyPropertyPaths |