FReferenceCollector

Inheritance Hierarchy

Syntax

class FReferenceCollector

Remarks

FReferenceCollector . Helper class used by the garbage collector to collect object references.

Functions

Name Description

Public function

void

 

AddReferencedObject

(
    UObjectType*& Object,
    const UObject * ReferencingObje...,
    const UProperty * ReferencingPr...
)

Adds object reference.

Public function

void

 

AddReferencedObjects

(
    TArray < UObjectType* >& Objec...,
    const UObject * ReferencingObje...,
    const UProperty * ReferencingPr...
)

Adds references to an array of objects.

Public function

void

 

AddReferencedObjects

(
    TSet < UObjectType >& ObjectSet,
    const UObject * ReferencingObje...,
    const UProperty * ReferencingPr...
)

Adds references to a set of objects.

Public function

void

 

AddReferencedObjects

(
    TMapBase < TKeyType, TValueType, TAl...,
    const UObject * ReferencingObje...,
    const UProperty * ReferencingPr...
)

Adds references to a map of objects.

Public function Virtual

void

 

AllowEliminatingReferences

(
    bool bAllow
)

Allows reference elimination by this collector.

Public function Virtual

UProperty &#...

 

GetSerializedProperty()

Gets the property that is currently being serialized

Protected function

void

 

HandleObjectReference

(
    UObject *& InObject,
    const UObject * InReferencingOb...,
    const UProperty * InReferencing...
)

Handle object reference. Called by AddReferencedObject.

Protected function Virtual

void

 

HandleObjectReferences

(
    UObject ** InObjects,
    const int32 ObjectNum,
    const UObject * InReferencingOb...,
    const UProperty * InReferencing...
)

Handle multiple object references.

Public function

bool

 

IsIgnoringArchetypeRef()

If true archetype references should not be added to this collector.

Public function

bool

 

IsIgnoringTransient()

If true transient objects should not be added to this collector.

Public function Virtual

void

 

SetSerializedProperty

(
    UProperty * Inproperty
)

Sets the property that is currently being serialized

Public function Virtual

void

 

SetShouldHandleAsWeakRef

(
    bool bWeakRef
)

References

Module

CoreUObject

Header

Runtime/CoreUObject/Public/UObject/UObjectGlobals.h