Navigation
API > API/Runtime > API/Runtime/TypedElementFramework > API/Runtime/TypedElementFramework/ICommonQueryContext
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void PushCommand
(
T CommandContext |
Creates a command that will run at the termination of an execution context. | Elements/Interfaces/TypedElementQueryStorageInterfaces.h | |
void PushCommand
(
void(*)(void*) CommandFunction, |
Elements/Interfaces/TypedElementQueryStorageInterfaces.h |
PushCommand(T)
Description
Creates a command that will run at the termination of an execution context. Intended to be used for cases where the query callback requires doing some work that needs to be serialized with respect to other callback invocations. Note that commands will be executed in order with respect to the thread that pushed them and will be executed on the query exection thread serially.
Usage: Define a command struct with a mutable operator() overload struct FMyCommand { void operator()() { DoSomethingWithSideEffects(MyActor) }; TWeakObjectPtr
Context.PushCommand(FMyCommand{ .MyActor = Actor });
| Name | PushCommand |
| Type | function |
| Header File | /Engine/Source/Runtime/TypedElementFramework/Public/Elements/Interfaces/TypedElementQueryStorageInterfaces.h |
| Include Path | #include "Elements/Interfaces/TypedElementQueryStorageInterfaces.h" |
template<typename T>
void PushCommand
(
T CommandContext
)
PushCommand(void()(void ), void *)
| Name | PushCommand |
| Type | function |
| Header File | /Engine/Source/Runtime/TypedElementFramework/Public/Elements/Interfaces/TypedElementQueryStorageInterfaces.h |
| Include Path | #include "Elements/Interfaces/TypedElementQueryStorageInterfaces.h" |
void PushCommand
(
void(*)(void *) CommandFunction,
void * InCommandData
)