|
| virtual | ~ICommonQueryContext ()=default |
| |
| virtual uint32 | GetRowCount () const =0 |
| |
| virtual TConstArrayView< RowHandle > | GetRowHandles () const =0 |
| |
| virtual const void * | GetColumn (const UScriptStruct *ColumnType) const =0 |
| |
| template<TDataColumnType Column> |
| const Column * | GetColumn () const |
| |
| template<TDynamicColumnTemplate TemplateType> |
| const TemplateType * | GetColumn (const FName &Identifier) const |
| |
| virtual void * | GetMutableColumn (const UScriptStruct *ColumnType)=0 |
| |
| template<typename Column > |
| Column * | GetMutableColumn () |
| |
| template<TDynamicColumnTemplate TemplateType> |
| TemplateType * | GetMutableColumn (const FName &Identifier) |
| |
| virtual void | GetColumns (TArrayView< char * > RetrievedAddresses, TConstArrayView< TWeakObjectPtr< const UScriptStruct > > ColumnTypes, TConstArrayView< EQueryAccessType > AccessTypes)=0 |
| |
| virtual void | GetColumnsUnguarded (int32 TypeCount, char **RetrievedAddresses, const TWeakObjectPtr< const UScriptStruct > *ColumnTypes, const EQueryAccessType *AccessTypes)=0 |
| |
| virtual bool | HasColumn (const UScriptStruct *ColumnType) const =0 |
| |
| template<typename Column > |
| bool | HasColumn () const |
| |
| virtual bool | HasColumn (RowHandle Row, const UScriptStruct *ColumnType) const =0 |
| |
| template<typename Column > |
| bool | HasColumn (RowHandle Row) const |
| |
| template<TDynamicColumnTemplate DynamicColumnTemplate> |
| bool | HasColumn (RowHandle Row, const FName &Identifier) const |
| |
| virtual const UScriptStruct * | FindDynamicColumnType (const FDynamicColumnDescription &Description) const =0 |
| |
| template<TDynamicColumnTemplate TemplateType> |
| const UScriptStruct * | FindDynamicColumnType (const FName &Identifier) const |
| |
| virtual void | SetParentRow (RowHandle Target, RowHandle Parent)=0 |
| |
| virtual void | SetUnresolvedParent (RowHandle Target, FMapKey ParentId, FName MappingDomain)=0 |
| |
| virtual RowHandle | GetParentRow (RowHandle Target) const =0 |
| |
| virtual float | GetDeltaTimeSeconds () const =0 |
| |
| template<typename T > |
| void | PushCommand (T CommandContext) |
| |
| virtual void | PushCommand (void(*CommandFunction)(void *), void *InCommandData)=0 |
| |
Base interface for any contexts provided to query callbacks.
| void UE::Editor::DataStorage::ICommonQueryContext::PushCommand |
( |
T |
CommandContext | ) |
|
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<AActor> MyActor; };
Context.PushCommand(FMyCommand{ .MyActor = Actor });