Internal functions used by TObjectPtr for managing live LObject references. More...
Functions | |
void | AddToLiveReferences (void *InObject) |
Add a LObject instance to the live references. | |
void | RemoveFromLiveReferences (void *InObject) |
Remove a LObject instance from the live references. | |
bool | IsLive (void *InObject) |
Check if a LObject instance is alive. | |
int | GetLiveReferences (std::unordered_set< void * > &InSet) |
Populate a set with all live references. | |
int | GetLiveObjects (std::vector< TObjectPtr< LObject > > &ObjectArray, const bool FilterByStaticClass=true) |
Populare a vector with live objects. | |
Variables | |
std::unordered_set< void * > | LiveReferences |
std::mutex | LiveReferenceMutex |
Internal functions used by TObjectPtr for managing live LObject references.
void LkEngine::TObjectPtr_Internal::AddToLiveReferences | ( | void * | InObject | ) |
Add a LObject instance to the live references.
Does nothing if the instance already has been added.
int LkEngine::TObjectPtr_Internal::GetLiveObjects | ( | std::vector< TObjectPtr< LObject > > & | ObjectArray, |
const bool | FilterByStaticClass = true ) |
Populare a vector with live objects.
int LkEngine::TObjectPtr_Internal::GetLiveReferences | ( | std::unordered_set< void * > & | InSet | ) |
Populate a set with all live references.
bool LkEngine::TObjectPtr_Internal::IsLive | ( | void * | InObject | ) |
void LkEngine::TObjectPtr_Internal::RemoveFromLiveReferences | ( | void * | InObject | ) |
Remove a LObject instance from the live references.
Does nothing if the instance does not exist in the live set.
std::mutex LkEngine::TObjectPtr_Internal::LiveReferenceMutex |
Mutex used on modifications of the live object's set.
std::unordered_set< void * > LkEngine::TObjectPtr_Internal::LiveReferences |
Set of live references.