Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/StrongObjectPtr.h |
| Include | #include "UObject/StrongObjectPtr.h" |
Syntax
template<typename ObjectType, typename ReferencerNameProvider>
class TStrongObjectPtr
Remarks
Specific implementation of FGCObject that prevents a single UObject-based pointer from being GC'd while this guard is in scope.
This is the "full-fat" version of FGCObjectScopeGuard which uses a heap-allocated FGCObject so can safely be used with containers that treat types as trivially relocatable.
Constructors
| Type | Name | Description | |
|---|---|---|---|
TStrongObjectPtr
(
TStrongObjectPtr&& InOther |
|||
| FORCEINLINE_DEBUGGABLE | |||
| FORCEINLINE_DEBUGGABLE | TStrongObjectPtr
(
ObjectType* InObject |
||
| FORCEINLINE_DEBUGGABLE | TStrongObjectPtr
(
const TStrongObjectPtr& InOther |
||
| FORCEINLINE_DEBUGGABLE | TStrongObjectPtr
(
const TStrongObjectPtr< OtherObjectType, OtherReferencerNameProvider >& InOther |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FORCEINLINE_DEBUGGABLE ObjectType * | Get () |
||
| FORCEINLINE_DEBUGGABLE bool | IsValid () |
||
| FORCEINLINE_DEBUGGABLE void | Reset
(
ObjectType* InNewObject |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FORCEINLINE_DEBUGGABLE | |||
| FORCEINLINE_DEBUGGABLE ObjectType & | operator* () |
||
| TStrongObjectPtr & | operator=
(
TStrongObjectPtr&& InOther |
||
| FORCEINLINE_DEBUGGABLETStrongObjectPtr & | operator=
(
const TStrongObjectPtr& InOther |
||
| FORCEINLINE_DEBUGGABLETStrongObjectPtr & | operator=
(
const TStrongObjectPtr< OtherObjectType, OtherReferencerNameProvider >& InOther |
||
| FORCEINLINE_DEBUGGABLE ObjectType * | operator-> () |
Typedefs
| Name | Description |
|---|---|
| ElementType |