Navigation
API > API/Plugins > API/Plugins/MetasoundFrontend
TAccessPtr is used to determine whether an object has been destructed or not. It is useful when an object cannot be wrapped in a TSharedPtr. A TAccessPtr is functionally similar to a TWeakPtr, but it cannot pin the object. In order to determine whether an object as accessible, the TAccessPtr executes a TFunctions<> which returns object. If a nullptr is returned, then the object is not accessible.
Object pointers held within a TAccessPtr must only be accessed on the thread where the objects gets destructed to avoid having the object destructed while in use.
If the TAccessPtr's underlying object is accessed when the pointer is invalid, a fallback object will be returned.
| Name | TAccessPtr |
| Type | class |
| Header File | /Engine/Plugins/Runtime/Metasound/Source/MetasoundFrontend/Public/MetasoundAccessPtr.h |
| Include Path | #include "MetasoundAccessPtr.h" |
Syntax
template<typename Type>
class TAccessPtr
Derived Classes
TAccessPtr derived class hierarchy
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TAccessPtr () |
MetasoundAccessPtr.h | ||
TAccessPtr
(
const TAccessPtr< Type >& InOther |
MetasoundAccessPtr.h | ||
TAccessPtr
(
TAccessPtr< Type >&& InOther |
MetasoundAccessPtr.h | ||
TAccessPtr
(
TFunction< Type*()> InGetObject |
MetasoundAccessPtr.h | ||
TAccessPtr
(
TWeakPtr< FTokenType > AccessToken, |
Creates a access pointer using an access token. | MetasoundAccessPtr.h | |
TAccessPtr
(
const TAccessPtr< OtherType >& InOther, |
Creates an access pointer from another using a const casts. | MetasoundAccessPtr.h | |
TAccessPtr
(
const TAccessPtr< OtherType >& InOther, |
Creates an access pointer from another using a static cast. | MetasoundAccessPtr.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FTokenType | FAccessToken | MetasoundAccessPtr.h | |
| ObjectType | Type | MetasoundAccessPtr.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FallbackObject | Type | MetasoundAccessPtr.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
Type * Get() |
Returns a pointer to the accessible object. If the object is inaccessible, a nullptr is returned. | MetasoundAccessPtr.h | |
AccessPtrType GetMemberAccessPtr
(
FunctionType InGetMember |
Returns an access pointer to a member of the wrapped object. | MetasoundAccessPtr.h |
Protected
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TAccessPtr< Type > & operator=
(
const TAccessPtr< Type >& InOther |
MetasoundAccessPtr.h | ||
TAccessPtr & operator=
(
TAccessPtr< Type >&& InOther |
MetasoundAccessPtr.h |