Navigation
API > API/Plugins > API/Plugins/MetasoundGraphCore > API/Plugins/MetasoundGraphCore/FAnyDataReference
TGetAs allows for template specialization of data retrieval and conversion rules for the various flavors of data referencing. The default implementation assumes we are attempting to retrieve the value stored in the data reference.
| Name | TGetAs |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/Metasound/Source/MetasoundGraphCore/Public/MetasoundDataReference.h |
| Include Path | #include "MetasoundDataReference.h" |
Syntax
template<typename ResultType>
struct TGetAs
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| DataType | typename std::decay_t< std::remove_pointer_t< ResultType > > | MetasoundDataReference.h |
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static ResultType DerefPointerIfNonPointerResultType
(
const DataType* InData |
Only deref a pointer if the returned type is specifically requested to be a non-pointer. | MetasoundDataReference.h | |
static ResultType Get
(
EDataReferenceAccessType InAccessType, |
Return a the underlying data by value or by const pointer depending upon the template parameter ResultType | MetasoundDataReference.h |