TTypedElementOwnerStore

A store of element owners tied to their corresponding owner instance.

Choose your operating system:

Windows

macOS

Linux

References

Module

TypedElementFramework

Header

/Engine/Source/Runtime/TypedElementFramework/Public/Elements/Framework/TypedElementOwnerStore.h

Include

#include "Elements/Framework/TypedElementOwnerStore.h"

Syntax

template<typename ElementDataType, typename KeyDataType>
struct TTypedElementOwnerStore

Remarks

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.

Constructors

Name Description

Public function

TTypedElementOwnerStore()

Destructors

Name Description

Public function

~TTypedElementOwnerStore()

Functions

Name Description

Public function Const

bool

 

ContainsElementOwner

(
    const KeyDataType& InKey
)

Test to see whether the store has an entry for the given element owner.

Public function Const

TTypedElemen...

 

FindElementOwner

(
    const KeyDataType& InKey
)

Provide const access to the given element owner.

Public function

TTypedElemen...

 

FindMutableElementOwner

(
    const KeyDataType& InKey
)

Provide mutable access to the given element owner.

Public function

TTypedElemen...

 

FindOrRegisterElementOwner

(
    const KeyDataType& InKey,
    TFunctionRef< TTypedElementOwner< E...
)

Find the given element owner, or call the register callback to attempt to create one if none is found.

Public function

TTypedElemen...

 

RegisterElementOwner

(
    const KeyDataType& InKey,
    TTypedElementOwner< ElementDataType...
)

Register the given element owner, transferring ownership of the owner instance to this store.

Public function

TTypedElemen...

 

UnregisterElementOwner

(
    const KeyDataType& InKey
)

Unregister the given element owner, transferring ownership of the owner instance back to the caller.

Public function

void

 

UnregisterElementOwners

(
    TFunctionRef< bool...,
    TFunctionRef< void...
)

Unregister any given element owners that match the given predicate, transferring ownership of the owner instance to the given callback.