Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject
References
Module | CoreUObject |
Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/WeakInterfacePtr.h |
Include | #include "UObject/WeakInterfacePtr.h" |
Syntax
template<class T>
struct TWeakInterfacePtr
Remarks
An alternative to TWeakObjectPtr that makes it easier to work through an interface.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
|||
![]() |
TWeakInterfacePtr
(
const TWeakInterfacePtr& Other |
||
![]() |
TWeakInterfacePtr
(
TWeakInterfacePtr&& Other |
||
![]() |
TWeakInterfacePtr
(
U&& Object |
Construct from an object pointer | |
![]() |
TWeakInterfacePtr
(
T* Interface |
Construct from an interface pointer |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
T * | Get () |
Dereference the weak pointer into an interface pointer. |
![]() ![]() |
UObject * | GetObject () |
Dereference the weak pointer into a UObject pointer. |
![]() ![]() |
TWeakObjectPtr< UObject > | ||
![]() ![]() |
bool | IsStale
(
bool bEvenIfPendingKill, |
Test if this pointer is stale. |
![]() ![]() |
bool | IsValid () |
Test if this points to a live object. |
![]() ![]() |
bool | IsValid
(
bool bEvenIfPendingKill, |
Test if this points to a live object. |
![]() |
void | Reset () |
Reset the weak pointer back to the null state. |
![]() ![]() |
TScriptInterface< T > |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | operator!=
(
const TWeakInterfacePtr< T >& Other |
|
![]() ![]() |
T & | operator* () |
Dereference the weak pointer. |
![]() |
TWeakInterfacePtr< T > & | operator=
(
const TScriptInterface< T >& Other |
Assign from a script interface. |
![]() |
TWeakInterfacePtr & | operator=
(
const TWeakInterfacePtr& Other |
|
![]() |
TWeakInterfacePtr & | operator=
(
TWeakInterfacePtr&& Other |
|
![]() |
TWeakInterfacePtr< T > & | operator=
(
T* Other |
Assign from an interface pointer. |
![]() ![]() |
bool | operator==
(
const TWeakInterfacePtr< T >& Other |
|
![]() ![]() |
T * | operator-> () |
Dereference the weak pointer. |
Typedefs
Name | Description |
---|---|
ElementType |