Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Plugins/Runtime/Metasound/Source/MetasoundFrontend/Public/MetasoundAccessPtr.h |
Include |
#include "MetasoundAccessPtr.h" |
template<typename Type>
class TAccessPtr
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 | Description | |
---|---|---|
|
TAccessPtr() |
|
|
TAccessPtr ( |
|
|
TAccessPtr ( |
|
|
TAccessPtr ( |
|
|
TAccessPtr ( |
Creates a access pointer using an access token. |
|
TAccessPtr ( |
Creates an access pointer from another using a const casts. |
|
TAccessPtr ( |
Creates an access pointer from another using a static cast. |
Name | Description | ||
---|---|---|---|
|
Type * |
Get() |
Returns a pointer to the accessible object. If the object is inaccessible, a nullptr is returned. |
|
AccessPtrTyp... |
GetMemberAccessPtr ( |
Returns an access pointer to a member of the wrapped object. |
Name | Description | ||
---|---|---|---|
|
TAccessPtr< ... |
operator= ( |
|
|
operator= ( |
Name |
Description |
|
---|---|---|
|
EConstCast |
|
|
EDerivedCopy |
Name |
Description |
---|---|
FTokenType |
|
ObjectType |
Name |
Description |
---|---|
FallbackObject |