engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 属性 | 所有成员列表
FReferenceFinder类 参考

FReferenceFinder. 更多...

#include <UObjectGlobals.h>

+ 类 FReferenceFinder 继承关系图:

Public 成员函数

virtual void FindReferences (UObject *Object, UObject *ReferencingObject=nullptr, FProperty *ReferencingProperty=nullptr)
 Finds all objects referenced by Object. 更多...
 
 FReferenceFinder (TArray< UObject * > &InObjectArray, UObject *InOuter=nullptr, bool bInRequireDirectOuter=true, bool bInShouldIgnoreArchetype=false, bool bInSerializeRecursively=false, bool bInShouldIgnoreTransient=false)
 Constructor 更多...
 
virtual class FProperty * GetSerializedProperty () const override
 Gets the property that is currently being serialized
 
virtual void HandleObjectReference (UObject *&Object, const UObject *ReferencingObject, const FProperty *InReferencingProperty) override
 Handle object reference. 更多...
 
virtual bool IsIgnoringArchetypeRef () const override
 If true archetype references should not be added to this collector.
 
virtual bool IsIgnoringTransient () const override
 If true transient objects should not be added to this collector.
 
virtual void SetSerializedProperty (class FProperty *Inproperty) override
 Sets the property that is currently being serialized
 
- Public 成员函数 继承自 FReferenceCollector
template<class UObjectType >
void AddReferencedObject (const UObjectType *&Object, const UObject *ReferencingObject=nullptr, const FProperty *ReferencingProperty=nullptr)
 Adds const object reference, this reference can still be nulled out if forcefully collected. 更多...
 
template<class UObjectType >
void AddReferencedObject (UObjectType *&Object, const UObject *ReferencingObject=nullptr, const FProperty *ReferencingProperty=nullptr)
 Adds object reference. 更多...
 
template<class UObjectType >
void AddReferencedObjects (TArray< const UObjectType * > &ObjectArray, const UObject *ReferencingObject=nullptr, const FProperty *ReferencingProperty=nullptr)
 Adds references to an array of const objects, these objects can still be nulled out if forcefully collected. 更多...
 
template<class UObjectType >
void AddReferencedObjects (TArray< UObjectType * > &ObjectArray, const UObject *ReferencingObject=nullptr, const FProperty *ReferencingProperty=nullptr)
 Adds references to an array of objects. 更多...
 
template<typename KeyType , typename ValueType , typename Allocator , typename KeyFuncs >
void AddReferencedObjects (TMapBase< KeyType *, ValueType, Allocator, KeyFuncs > &Map, const UObject *ReferencingObject=nullptr, const FProperty *ReferencingProperty=nullptr)
 Adds references to a map of objects. 更多...
 
template<class UObjectType >
void AddReferencedObjects (TSet< UObjectType * > &ObjectSet, const UObject *ReferencingObject=nullptr, const FProperty *ReferencingProperty=nullptr)
 Adds references to a set of objects. 更多...
 
virtual void AllowEliminatingReferences (bool bAllow)
 Allows reference elimination by this collector.
 
FReferenceCollectorArchive & GetInternalPersistentFrameReferenceCollectorArchive ()
 INTERNAL USE ONLY: returns the persistent frame collector archive associated with this collector. 更多...
 
virtual class FProperty * GetSerializedProperty () const
 Gets the property that is currently being serialized
 
FReferenceCollectorArchive & GetVerySlowReferenceCollectorArchive ()
 Returns the collector archive associated with this collector. 更多...
 
virtual bool IsIgnoringArchetypeRef () const =0
 If true archetype references should not be added to this collector.
 
virtual bool IsIgnoringTransient () const =0
 If true transient objects should not be added to this collector.
 
virtual bool MarkWeakObjectReferenceForClearing (UObject **WeakReference)
 Marks a specific object reference as a weak reference. 更多...
 
virtual void SetSerializedProperty (class FProperty *Inproperty)
 Sets the property that is currently being serialized
 

Protected 属性

bool bRequireDirectOuter
 Determines whether nested objects contained within LimitOuter are considered.
 
bool bSerializeRecursively
 Determines whether we should recursively look for references of the referenced objects.
 
bool bShouldIgnoreArchetype
 Determines whether archetype references are considered.
 
bool bShouldIgnoreTransient
 Determines whether transient references are considered.
 
UObject * LimitOuter
 Only objects within this outer will be considered, nullptr value indicates that outers are disregarded.
 
TArray< UObject * > & ObjectArray
 Stored reference to array of objects we add object references to.
 
TSet< const UObject * > SerializedObjects
 List of objects that have been recursively serialized.
 
class FProperty * SerializedProperty
 Property that is referencing the current object
 

额外继承的成员函数

- Protected 成员函数 继承自 FReferenceCollector
virtual void HandleObjectReference (UObject *&InObject, const UObject *InReferencingObject, const FProperty *InReferencingProperty)=0
 Handle object reference. 更多...
 
virtual void HandleObjectReferences (UObject **InObjects, const int32 ObjectNum, const UObject *InReferencingObject, const FProperty *InReferencingProperty)
 Handle multiple object references. 更多...
 

详细描述

FReferenceFinder.

Helper class used to collect object references.

构造及析构函数说明

◆ FReferenceFinder()

FReferenceFinder::FReferenceFinder ( TArray< UObject * > &  InObjectArray,
UObject *  InOuter = nullptr,
bool  bInRequireDirectOuter = true,
bool  bInShouldIgnoreArchetype = false,
bool  bInSerializeRecursively = false,
bool  bInShouldIgnoreTransient = false 
)

Constructor

参数
InObjectArrayArray to add object references to
InOutervalue for LimitOuter
bInRequireDirectOutervalue for bRequireDirectOuter
bShouldIgnoreArchetypewhether to disable serialization of ObjectArchetype references
bInSerializeRecursivelyonly applicable when LimitOuter != nullptr && bRequireDirectOuter==true; serializes each object encountered looking for subobjects of referenced objects that have LimitOuter for their Outer (i.e. nested subobjects/components)
bShouldIgnoreTransienttrue to skip serialization of transient properties

成员函数说明

◆ FindReferences()

virtual void FReferenceFinder::FindReferences ( UObject *  Object,
UObject *  ReferencingObject = nullptr,
FProperty *  ReferencingProperty = nullptr 
)
virtual

Finds all objects referenced by Object.

参数
ObjectObject which references are to be found.
ReferencingObjectobject that's referencing the current object.
ReferencingPropertyproperty the current object is being referenced through.

◆ HandleObjectReference()

virtual void FReferenceFinder::HandleObjectReference ( UObject *&  InObject,
const UObject *  InReferencingObject,
const FProperty *  InReferencingProperty 
)
overridevirtual

Handle object reference.

Called by AddReferencedObject.

参数
ObjectReferenced object.
ReferencingObjectReferencing object (if available).
ReferencingPropertyReferencing property (if available).

实现了 FReferenceCollector.


该类的文档由以下文件生成: