Navigation
Unreal Engine C++ API Reference > Runtime > CoreUObject > UObject
Inheritance Hierarchy
- FReferenceCollector
- FPropertyReferenceCollector
- FPurgingReferenceCollector
- FReferenceFinder
- FSlateObjectReferenceCollector
- TDefaultCollector
References
Module | CoreUObject |
Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h |
Include | #include "UObject/UObjectGlobals.h" |
Syntax
class FReferenceCollector
Remarks
Used by garbage collector to collect references via virtual AddReferencedObjects calls
Destructors
Type | Name | Description | |
---|---|---|---|
Functions
Type | Name | Description | |
---|---|---|---|
void | AddPropertyReferences
(
const UStruct* Struct, |
Adds all strong property references from a struct instance, but not the struct itself. | |
void | AddPropertyReferencesLimitedToObjectProperties
(
const UStruct* Struct, |
Internal use only. | |
void | AddPropertyReferencesWithStructARO
(
const UClass* Class, |
Same as AddPropertyReferences but also calls AddStructReferencedObjects on all nested structs | |
void | AddPropertyReferencesWithStructARO
(
const UScriptStruct* Struct, |
Same as AddPropertyReferences but also calls AddStructReferencedObjects on Struct and all nested structs | |
void | AddReferencedObject
(
TObjectPtr< const UObjectType >& Object, |
Adds const object reference, this reference can still be nulled out if forcefully collected. | |
void | AddReferencedObject
(
TObjectPtr< UObjectType >& Object, |
Adds object reference. | |
void | AddReferencedObject
(
const UObjectType*& Object, |
Adds const object reference, this reference can still be nulled out if forcefully collected. | |
void | AddReferencedObject
(
UObjectType*& Object, |
Adds object reference. | |
void | AddReferencedObject
(
TWeakObjectPtr< T >& P, |
||
void | AddReferencedObject
(
FWeakObjectPtr& P, |
||
void | AddReferencedObjects
(
TSet< TObjectPtr< UObjectType > >& ObjectSet, |
Adds references to a set of objects. | |
void | AddReferencedObjects
(
TMapBase< KeyType*, ValueType*, Allocator, KeyFuncs >& Map, |
||
void | AddReferencedObjects
(
TMapBase< KeyType, ValueType*, Allocator, KeyFuncs >& Map, |
||
void | AddReferencedObjects
(
TMapBase< KeyType*, ValueType, Allocator, KeyFuncs >& Map, |
Adds references to a map of objects. | |
void | AddReferencedObjects
(
TArray< const UObjectType* >& ObjectArray, |
Adds references to an array of const objects, these objects can still be nulled out if forcefully collected. | |
void | AddReferencedObjects
(
TMapBase< TObjectPtr< KeyType >, ValueType, Allocator, KeyFuncs >& Map, |
Adds references to a map of objects. | |
void | AddReferencedObjects
(
TMapBase< KeyType, TObjectPtr< ValueType >, Allocator, KeyFuncs >& Map, |
||
void | AddReferencedObjects
(
TMapBase< TObjectPtr< KeyType >, TObjectPtr< ValueType >, Allocator, KeyFuncs >& Map, |
||
void | AddReferencedObjects
(
const UScriptStruct*& ScriptStruct, |
Adds all strong property references from a UScriptStruct instance including the struct itself | |
void | AddReferencedObjects
(
TObjectPtr< const UScriptStruct >& ScriptStruct, |
||
void | AddReferencedObjects
(
TWeakObjectPtr< const UScriptStruct >& ScriptStruct, |
||
void | AddReferencedObjects
(
TArray< TObjectPtr< const UObjectType > >& ObjectArray, |
Adds references to an array of const objects, these objects can still be nulled out if forcefully collected. | |
void | AddReferencedObjects
(
TArray< TObjectPtr< UObjectType > >& ObjectArray, |
Adds references to an array of objects. | |
void | AddReferencedObjects
(
TSet< UObjectType* >& ObjectSet, |
Adds references to a set of objects. | |
void | AddReferencedObjects
(
TArray< UObjectType* >& ObjectArray, |
Adds references to an array of objects. | |
void | AddStableReference
(
TObjectPtr< UObjectType >* Object |
||
void | AddStableReference
(
UObject** Object |
Preferred way to add a reference that allows batching. | |
void | AddStableReference
(
TObjectPtr< UObject >* Object |
Preferred way to add a reference that allows batching. | |
void | AddStableReference
(
UObjectType** Object |
||
void | AddStableReferenceArray
(
TArray< UObject* >* Objects |
Preferred way to add a reference array that allows batching. | |
void | AddStableReferenceArray
(
TArray< TObjectPtr< UObject > >* Objects |
Preferred way to add a reference array that allows batching. | |
void | AddStableReferenceArray
(
TArray< TObjectPtr< UObjectType > >* Objects |
||
void | AddStableReferenceArray
(
TArray< UObjectType* >* Objects |
||
FORCEINLINE_DEBUGGABLE void | AddStableReferenceMap
(
TMapBase< KeyType, ValueType, Allocator, KeyFuncs >& Map |
||
void | AddStableReferenceSet
(
TSet< TObjectPtr< UObject > >* Objects |
Preferred way to add a reference set that allows batching. Can't be used for temporary/stack set. | |
void | AddStableReferenceSet
(
TSet< UObject* >* Objects |
Preferred way to add a reference set that allows batching. Can't be used for temporary/stack set. | |
void | AddStableReferenceSet
(
TSet< UObjectType* >* Objects |
||
void | AddStableReferenceSet
(
TSet< TObjectPtr< UObjectType > >* Objects |
||
void | AllowEliminatingReferences
(
bool bAllow |
Allows reference elimination by this collector. | |
FProperty * | Gets the property that is currently being serialized | ||
FReferenceCollectorArchive & | Get archive to collect references via SerializeBin / Serialize. | ||
void | HandleObjectReference
(
UObject*& InObject, |
Handle object reference. Called by AddReferencedObject. | |
void | HandleObjectReferences
(
FObjectPtr* InObjects, |
Handle multiple object references. | |
void | HandleObjectReferences
(
UObject** InObjects, |
Handle multiple object references. | |
bool | If true archetype references should not be added to this collector. | ||
bool | If true transient objects should not be added to this collector. | ||
bool | If true, this collector is currently processing native references (true by default). | ||
bool | MarkWeakObjectReferenceForClearing
(
UObject** WeakReference, |
Marks a specific object reference as a weak reference. | |
bool | Used by parallel reachability analysis to pre-collect and then exclude some initial FGCObject references | ||
bool | Make Add[OnlyObject]PropertyReference/AddReferencedObjects(UScriptStruct) use AddReferencedObjects(UObject*&) callbacks with ReferencingObject and ReferencingProperty context supplied and check for null references before making a callback. | ||
void | SetIsProcessingNativeReferences
(
bool bIsNative |
Sets whether this collector is currently processing native references or not. | |
void | SetSerializedProperty
(
FProperty* Inproperty |
Sets the property that is currently being serialized |
Classes
Type | Name | Description | |
---|---|---|---|
AROPrivate |