Navigation
API > API/Runtime > API/Runtime/TypedElementFramework
Template to composite a query context using context capabilities. Any query callback that requires interacting with the editor data storage requires a context to get access. Each context capability provides access to a different kind of functionality. Some of the capabilities are mutually exclusive and not all places that accept a query callback support the same capabilities. It's therefore recommended to only include the capabilities that are needed by the query callback to improve re-usability or use a predefined query context if the query callback doesn't need to be reused.
| Name | TQueryContext |
| Type | struct |
| Header File | /Engine/Source/Runtime/TypedElementFramework/Public/Elements/Framework/TypedElementQueryContext.h |
| Include Path | #include "Elements/Framework/TypedElementQueryContext.h" |
Syntax
template<ContextCapability... CapabilityTypes>
struct TQueryContext : public UE::Editor::DataStorage::Queries::Private::TForwarder< CapabilityTypes... >
Inheritance Hierarchy
- TForwarder → TQueryContext
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Elements/Framework/TypedElementQueryContext.h | |||
TQueryContext
(
IContextContract& Contract |
Implementations. | Elements/Framework/TypedElementQueryContext.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Capabilities | TCapabilityStore< CapabilityTypes... > | Elements/Framework/TypedElementQueryContext.h |