Navigation
API > API/Plugins > API/Plugins/AnimNext > API/Plugins/AnimNext/TraitCore
References
| Module | AnimNext |
| Header | /Engine/Plugins/Experimental/AnimNext/Source/AnimNext/Public/TraitCore/TraitPtr.h |
| Include | #include "TraitCore/TraitPtr.h" |
Syntax
struct FWeakTraitPtr
Remarks
Weak Trait Pointer Same as a FTraitPtr but is strongly typed to be weak.
Weak trait pointers should be used carefully!
Constructors
| Type | Name | Description | |
|---|---|---|---|
| constexpr | Constructs an invalid weak pointer handle. | ||
FWeakTraitPtr
(
const FTraitPtr& TraitPtr |
Constructs a weak pointer handle from a shared pointer handle. | ||
FWeakTraitPtr
(
FNodeInstance* InNodeInstance, |
Constructs a weak pointer handle to the provided instance. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FNodeInstance * | Returns a pointer to the node instance. | ||
| uint32 | Returns the trait index this pointer handle references. | ||
| bool | IsValid () |
Returns true when the pointer is valid, false otherwise. | |
| void | Reset () |
Clears the handle and renders it invalid. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FWeakTraitPtr& RHS |
||
| bool | operator!=
(
const FTraitPtr& RHS |
||
| bool | operator==
(
const FWeakTraitPtr& RHS |
Equality and inequality tests. | |
| bool | operator==
(
const FTraitPtr& RHS |