Navigation
API > API/Plugins > API/Plugins/MetasoundGraphCore
Container for any data reference.
This container maintains the underlying containers access type (Read or Write) and data type. This allows for convenient storage by implementing a virtual copy constructor and assignment operator.
| Name | FAnyDataReference |
| Type | class |
| Header File | /Engine/Plugins/Runtime/Metasound/Source/MetasoundGraphCore/Public/MetasoundDataReference.h |
| Include Path | #include "MetasoundDataReference.h" |
Syntax
class FAnyDataReference : public Metasound::IDataReference
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAnyDataReference
(
const TDataValueReference< DataType >& InDataRef |
Construct with a TDataValueReference. | MetasoundDataReference.h | |
FAnyDataReference
(
const TDataWriteReference< DataType >& InDataRef |
Construct with a TDataWriteReference. | MetasoundDataReference.h | |
FAnyDataReference
(
const TDataReadReference< DataType >& InDataRef |
Construct with a TDataReadReference. | MetasoundDataReference.h | |
FAnyDataReference
(
const FAnyDataReference& InOther |
Copy construct with a FAnyDataReference. | MetasoundDataReference.h | |
FAnyDataReference
(
EDataReferenceAccessType InAccessType, |
Private constructor. | MetasoundDataReference.h |
Structs
| Name | Remarks |
|---|---|
| TGetAs | TGetAs allows for template specialization of data retrieval and conversion rules for the various flavors of data referencing. |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AccessType | EDataReferenceAccessType | MetasoundDataReference.h | ||
| DataRefPtr | TUniquePtr< IDataReference > | MetasoundDataReference.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
EDataReferenceAccessType GetAccessType() |
Returns the access type of the underlying data reference. | MetasoundDataReference.h | |
ReturnType GetAs () |
Return the data in the specified format. | MetasoundDataReference.h | |
TDataReadReference< DataType > GetDataReadReference () |
Get access to a TDataReadReference. | MetasoundDataReference.h | |
TDataValueReference< DataType > GetDataValueReference () |
Get access to a TDataValueReference. | MetasoundDataReference.h | |
TDataWriteReference< DataType > GetDataWriteReference () |
Get access to a TDataWriteReference. | MetasoundDataReference.h | |
const DataType * GetValue () |
Returns the current value of a reference. | MetasoundDataReference.h | |
DataType * GetWritableValue () |
Return a non-const pointer to the data. | MetasoundDataReference.h |
Overridden from IDataReference
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TUniquePtr< IDataReference > Clone() |
Returns a clone of the underlying data reference. | MetasoundDataReference.h | |
virtual const void *const GetDataTypeId() |
Returns the data type ID of the underlying data reference. | MetasoundDataReference.h | |
virtual const FName & GetDataTypeName() |
Returns the data type name of the underlying data reference. | MetasoundDataReference.h | |
virtual void * GetRaw() |
Return a raw pointer to the data. | MetasoundDataReference.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAnyDataReference & operator=
(
const FAnyDataReference& InOther |
Assignment. | MetasoundDataReference.h |