FGCCollector

Specialized [FReferenceCollector](API\Runtime\CoreUObject\UObject\FReferenceCollector) that uses FGCReferenceProcessor to mark objects as reachable.

Windows
MacOS
Linux

Inheritance Hierarchy

FReferenceCollector

FGCCollector

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/GarbageCollection.h

Include

#include "UObject/GarbageCollection.h"

Syntax

template<bool bParallel, bool bWithClusters>
class FGCCollector : public FReferenceCollector

Remarks

Specialized FReferenceCollector that uses FGCReferenceProcessor to mark objects as reachable.

Constructors

Name Description

Public function

FGCCollector

(
    FGCReferenceProcessor< bParallel, b...,
    FGCArrayStruct& InObjectArrayStruc...
)

Overridden from FReferenceCollector

Name Description

Public function Virtual

void

 

AllowEliminatingReferences

(
    bool bAllow
)

Allows reference elimination by this collector.

Public function Virtual

void

 

HandleObjectReference

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

Handle object reference. Called by AddReferencedObject.

Public function Virtual

void

 

HandleObjectReferences

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

Handle multiple object references.

Public function Virtual Const

bool

 

IsIgnoringArchetypeRef()

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

Public function Virtual Const

bool

 

IsIgnoringTransient()

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

Public function Virtual

bool

 

MarkWeakObjectReferenceForClearing

(
    UObject** WeakReference
)

Marks a specific object reference as a weak reference.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss