Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject
Inheritance Hierarchy
- FGCObject
- TGCObjectScopeGuard
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/GCObjectScopeGuard.h |
| Include | #include "UObject/GCObjectScopeGuard.h" |
Syntax
template<typename ObjectType>
class TGCObjectScopeGuard : public FGCObject
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 lean version of TStrongObjectPtr which uses an inline FGCObject so can't safely be used with containers that treat types as trivially relocatable.
Constructors
| Type | Name | Description | |
|---|---|---|---|
TGCObjectScopeGuard
(
ObjectType* InObject |
|||
TGCObjectScopeGuard
(
const TGCObjectScopeGuard& |
Non-copyable |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| ObjectType * | Get () |
Overridden from FGCObject
| Type | Name | Description | |
|---|---|---|---|
| void | AddReferencedObjects
(
FReferenceCollector& Collector |
Pure virtual that must be overloaded by the inheriting class. | |
| FString | Overload this method to report a name for your referencer |
Operators
| Type | Name | Description | |
|---|---|---|---|
| TGCObjectScopeGuard & | operator=
(
const TGCObjectScopeGuard& |