Module |
|
Header |
/Engine/Source/Runtime/CoreUObject/Public/UObject/GCObject.h |
Include |
#include "UObject/GCObject.h" |
class FGCObject
This class provides common registration for garbage collection for non-UObject classes. It is an abstract base class requiring you to implement the AddReferencedObjects() method.
Name | Description | |
---|---|---|
|
~FGCObject() |
Name | Description | ||
---|---|---|---|
|
void |
AddReferencedObjects ( |
Pure virtual that must be overloaded by the inheriting class. |
|
GetReferencerName() |
Overload this method to report a name for your referencer |
|
|
bool |
GetReferencerPropertyName |
Overload this method to report how the specified object is referenced, if necessary |
|
void |
RegisterGCObject() |
Register with GC, only needed if constructed with EFlags::RegisterLater or after unregistering |
|
void |
StaticInit() |
Initializes the global object referencer and adds it to the root set. |
|
void |
UnregisterGCObject() |
Unregister ahead of destruction. Safe to call multiple times. |
Name |
Description |
|
---|---|---|
|
EFlags |
Name |
Description |
---|---|
GGCObjectReferencer |
The static object referencer object that is shared across all garbage collectible non-UObject objects. |
UnknownGCObjectName |