![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <TypedElementOwnerStore.h>
Public Member Functions | |
| TTypedElementOwnerStore ()=default | |
| ~TTypedElementOwnerStore () | |
| TTypedElementOwnerScopedAccess< ElementDataType > | RegisterElementOwner (const KeyDataType &InKey, TTypedElementOwner< ElementDataType > &&InElementOwner) |
| TTypedElementOwner< ElementDataType > | UnregisterElementOwner (const KeyDataType &InKey) |
| void | UnregisterElementOwners (TFunctionRef< bool(const TTypedElementOwner< ElementDataType > &)> InShouldUnregisterElement, TFunctionRef< void(TTypedElementOwner< ElementDataType > &&)> InOnUnregisterElement) |
| TTypedElementOwnerScopedAccess< ElementDataType > | FindOrRegisterElementOwner (const KeyDataType &InKey, TFunctionRef< TTypedElementOwner< ElementDataType >()> InCreateElement) |
| TTypedElementOwnerScopedAccess< ElementDataType > | FindElementOwner (const KeyDataType &InKey) const |
| TTypedElementOwnerScopedMutableAccess< ElementDataType > | FindMutableElementOwner (const KeyDataType &InKey) |
| bool | ContainsElementOwner (const KeyDataType &InKey) const |
A store of element owners tied to their corresponding owner instance. This can be used to track element owners for an instance without having to add new data to the type itself.
|
default |
|
inline |
|
inline |
Test to see whether the store has an entry for the given element owner.
|
inline |
Provide const access to the given element owner.
|
inline |
Provide mutable access to the given element owner.
|
inline |
Find the given element owner, or call the register callback to attempt to create one if none is found.
|
inline |
Register the given element owner, transferring ownership of the owner instance to this store.
|
inline |
Unregister the given element owner, transferring ownership of the owner instance back to the caller.
|
inline |
Unregister any given element owners that match the given predicate, transferring ownership of the owner instance to the given callback.