Navigation
API > API/Runtime > API/Runtime/CoreUObject
Specific implementation of FGCObject that prevents an array of UObject-based pointers from being GC'd while this guard is in scope.
| Name | TGCObjectsScopeGuard |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/GCObjectScopeGuard.h |
| Include Path | #include "UObject/GCObjectScopeGuard.h" |
Syntax
template<typename ObjectType>
class TGCObjectsScopeGuard : public FGCObject
Inheritance Hierarchy
- FGCObject → TGCObjectsScopeGuard
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TGCObjectsScopeGuard
(
const TArray< ObjectType* >& InObjects |
UObject/GCObjectScopeGuard.h | ||
TGCObjectsScopeGuard
(
const TGCObjectsScopeGuard& |
Non-copyable | UObject/GCObjectScopeGuard.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~TGCObjectsScopeGuard() |
UObject/GCObjectScopeGuard.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Objects | TArray< TObjectPtr< ObjectType > > | UObject/GCObjectScopeGuard.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const TArray< ObjectType * > & Get() |
UObject/GCObjectScopeGuard.h |
Overridden from FGCObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddReferencedObjects
(
FReferenceCollector& Collector |
Pure virtual that must be overloaded by the inheriting class. | UObject/GCObjectScopeGuard.h | |
virtual FString GetReferencerName() |
Overload this method to report a name for your referencer | UObject/GCObjectScopeGuard.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TGCObjectsScopeGuard & operator=
(
const TGCObjectsScopeGuard& |
UObject/GCObjectScopeGuard.h |