Navigation
API > API/Runtime > API/Runtime/TypedElementFramework
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.
| Name | TTypedElementOwnerStore |
| Type | struct |
| Header File | /Engine/Source/Runtime/TypedElementFramework/Public/Elements/Framework/TypedElementOwnerStore.h |
| Include Path | #include "Elements/Framework/TypedElementOwnerStore.h" |
Syntax
template<typename ElementDataType, typename KeyDataType>
struct TTypedElementOwnerStore
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TTypedElementOwnerStore() |
Elements/Framework/TypedElementOwnerStore.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TTypedElementOwnerStore() |
Elements/Framework/TypedElementOwnerStore.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ElementOwnerMap | TMap< KeyDataType, TTypedElementOwner< ElementDataType > > | Elements/Framework/TypedElementOwnerStore.h | ||
| ElementOwnerMapCS | FTransactionallySafeCriticalSection | Elements/Framework/TypedElementOwnerStore.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool ContainsElementOwner
(
const KeyDataType& InKey |
Test to see whether the store has an entry for the given element owner. | Elements/Framework/TypedElementOwnerStore.h | |
TTypedElementOwnerScopedAccess< ElementDataType > FindElementOwner
(
const KeyDataType& InKey |
Provide const access to the given element owner. | Elements/Framework/TypedElementOwnerStore.h | |
TTypedElementOwnerScopedMutableAccess< ElementDataType > FindMutableElementOwner
(
const KeyDataType& InKey |
Provide mutable access to the given element owner. | Elements/Framework/TypedElementOwnerStore.h | |
TTypedElementOwnerScopedAccess< ElementDataType > FindOrRegisterElementOwner
(
const KeyDataType& InKey, |
Find the given element owner, or call the register callback to attempt to create one if none is found. | Elements/Framework/TypedElementOwnerStore.h | |
TTypedElementOwnerScopedAccess< ElementDataType > RegisterElementOwner
(
const KeyDataType& InKey, |
Register the given element owner, transferring ownership of the owner instance to this store. | Elements/Framework/TypedElementOwnerStore.h | |
TTypedElementOwner< ElementDataType > UnregisterElementOwner
(
const KeyDataType& InKey |
Unregister the given element owner, transferring ownership of the owner instance back to the caller. | Elements/Framework/TypedElementOwnerStore.h | |
void UnregisterElementOwners
(
TFunctionRef< bool(const TTypedElementOwner< ElementDataType >&)> InShouldUnregisterElement, |
Unregister any given element owners that match the given predicate, transferring ownership of the owner instance to the given callback. | Elements/Framework/TypedElementOwnerStore.h |