engine
 
载入中...
搜索中...
未找到
Protected 成员函数 | 所有成员列表
FDeferredSubObjInitializationTracker结构体 参考

Specialized FDeferredInitializationTracker for tracking deferred Blueprint sub-objects specifically. 更多...

#include <BlueprintSupport.h>

+ 类 FDeferredSubObjInitializationTracker 继承关系图:

Protected 成员函数

virtual bool ResolveDeferredInitialization (UObject *ResolvingObject, UObject *ArchetypeInstance) override
 Runs the deferred initializer for the specified archetype object if its not dependent on other archetypes (like a sub-object that first requires the super's CDO to be constructed, and then for its archetype to be serialized). 更多...
 
- Protected 成员函数 继承自 FDeferredInitializationTrackerBase
bool IsResolving (UObject *ArchetypeInstance) const
 Used to keep DeferPreload() from re-adding objects while we're in the midst of resolving.
 
void PreloadDeferredDependents (UObject *ArchetypeInstance)
 Runs through all objects that had their Preload() skipped due to an initializer being deferred. 更多...
 
virtual bool ResolveDeferredInitialization (UObject *ResolvingObject, UObject *ArchetypeInstance)
 Runs the deferred initializer for the specified archetype object if its not dependent on other archetypes (like a sub-object that first requires the super's CDO to be constructed, and then for its archetype to be serialized). 更多...
 
- Protected 成员函数 继承自 TThreadSingleton< FDeferredSubObjInitializationTracker >
 TThreadSingleton ()
 Default constructor.
 

额外继承的成员函数

- Public 成员函数 继承自 FDeferredInitializationTrackerBase
FObjectInitializer * Add (const UObject *InitDependecy, const FObjectInitializer &DeferringInitializer)
 Makes a copy of the specified initializer and stores it (mapped under its dependency), so that it can instead be executed later via ResolveArchetypeInstances(). 更多...
 
virtual bool DeferPreload (UObject *Object)
 Determines if the specified object needs to have its Preload() call deferred (this is meant to be called from Preload() itself). 更多...
 
bool IsInitializationDeferred (const UObject *Object) const
 Checks to see if the specified object has had its initialization deferred (meaning a super/archetype hasn't had FObjectInitializer::PostConstructInit() ran on it yet).
 
void ResolveArchetypeInstances (UObject *ArchetypeKey)
 Runs all deferred initializers that were dependent on the specified archetype (unless they're dependent on another), and runs Preload() on any objects that had their Preload() skipped as a result. 更多...
 
- Public 成员函数 继承自 FTlsAutoCleanup
void Register ()
 Register this instance to be auto-cleanup.
 
virtual ~FTlsAutoCleanup ()
 Virtual destructor.
 
- 静态 Public 成员函数 继承自 TThreadSingleton< FDeferredSubObjInitializationTracker >
static FORCEINLINE FDeferredSubObjInitializationTracker & Get ()
 
static FORCEINLINE FDeferredSubObjInitializationTracker & Get (TFunctionRef< FTlsAutoCleanup *()> CreateInstance)
 
static FORCEINLINE FDeferredSubObjInitializationTracker * TryGet ()
 
- 静态 Protected 成员函数 继承自 TThreadSingleton< FDeferredSubObjInitializationTracker >
static FTlsAutoCleanup * CreateInstance ()
 
- Protected 属性 继承自 FDeferredInitializationTrackerBase
TMultiMap< const UObject *, UObject * > ArchetypeInstanceMap
 Tracks objects that have had their initialization deferred as a result of their archetype not being fully serialized (maps archetype => list-o-instances)
 
TMap< UObject *, FObjectInitializer > DeferredInitializers
 A map that lets us look up FObjectInitializers by their UObject
 
TMultiMap< UObject *, UObject * > DeferredPreloads
 Track default objects that had their Preload() skipped, because a archetype dependency should initialize first
 
TArray< UObject * > ResolvingObjects
 Used to keep ResolveArchetypeInstances() from re-adding sub-objects via DeferPreload()
 
- Protected 属性 继承自 TThreadSingleton< FDeferredSubObjInitializationTracker >
const uint32 ThreadId
 Thread ID of this thread singleton.
 

详细描述

Specialized FDeferredInitializationTracker for tracking deferred Blueprint sub-objects specifically.

(every object in DeferredInitializers should be a default sub-object or component template).

成员函数说明

◆ ResolveDeferredInitialization()

virtual bool FDeferredSubObjInitializationTracker::ResolveDeferredInitialization ( UObject *  ResolvingObject,
UObject *  ArchetypeInstance 
)
overrideprotectedvirtual

Runs the deferred initializer for the specified archetype object if its not dependent on other archetypes (like a sub-object that first requires the super's CDO to be constructed, and then for its archetype to be serialized).

If the initializer needs to be further deferred, this should re-register under its new dependency.

参数
ResolvingObjectThe dependency that has been fully loaded/serialized, that the object's initializer was logged under.
ArchetypeInstanceThe object which has had its initializer deferred.
返回
True if the initializer was ran, other wise false.

重载 FDeferredInitializationTrackerBase .


该结构体的文档由以下文件生成: