![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <QuartzCommandQueue.h>
Inheritance diagram for Audio::Quartz::PrivateDefs::TQuartzCommandQueue< Ts >:Public Types | |
| using | IConsumerBase = typename TVisitorPatternBase< Ts... >::IListenerBase |
| template<typename... ConsumerInterfaces> | |
| using | TConsumerBase = typename TVisitorPatternBase< Ts... >::template TElementBase< ConsumerInterfaces... > |
Public Member Functions | |
| TQuartzCommandQueue ()=default | |
| ~TQuartzCommandQueue ()=default | |
| template<class TargetInterface > | |
| void | PushLambda (TFunction< void(TargetInterface &)> InLambda) |
| void | PumpCommandQueue (IConsumerBase &InListener) |
| using Audio::Quartz::PrivateDefs::TQuartzCommandQueue< Ts >::IConsumerBase = typename TVisitorPatternBase<Ts...>::IListenerBase |
| using Audio::Quartz::PrivateDefs::TQuartzCommandQueue< Ts >::TConsumerBase = typename TVisitorPatternBase<Ts...>::template TElementBase<ConsumerInterfaces...> |
|
default |
|
default |
|
inline |
void PumpCommandQueue(TArray<IConsumerBase*>& InListeners) { Queue.ConsumeAllFifo([&InListeners](TUniquePtr<ICommandBase> InCommand) { for(TUniquePtr<ICommandBase> Listener : InListeners) { if (ensure(InCommand)) { Listener->Accept(*InCommand); } } }); }
|
inline |
PushLambda(): push a function that takes a TargetInterface& as an argument. Listeners will execute this code with (static_cast<TargetInterface>(this)) as the input()