The Gaudi Framework
v32r2 (46d42edc)
IQueueingEventProcessor.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
GaudiKernel/EventContext.h
>
4
#include <
GaudiKernel/IEventProcessor.h
>
5
#include <
GaudiKernel/StatusCode.h
>
6
#include <optional>
7
#include <tuple>
8
9
namespace
Gaudi::Interfaces
{
11
struct
IQueueingEventProcessor
:
virtual
IEventProcessor
{
12
DeclareInterfaceID
(
IQueueingEventProcessor
, 1, 0 );
13
15
using
ResultType
=
std::tuple<StatusCode, EventContext>
;
16
19
virtual
void
push
(
EventContext
&&
ctx
) = 0;
20
23
virtual
bool
empty
()
const
= 0;
24
27
virtual
std::optional<ResultType>
pop
() = 0;
28
};
29
}
// namespace Gaudi::Interfaces
IEventProcessor.h
Gaudi::Interfaces::IQueueingEventProcessor
Extend IEventProcessor for asynchronous scheduling of events via queue-like interface.
Definition:
IQueueingEventProcessor.h:11
GaudiPython.Pythonizations.ctx
ctx
Definition:
Pythonizations.py:556
EventContext.h
EventContext
This class represents an entry point to all the event specific data.
Definition:
EventContext.h:24
Gaudi::Interfaces
Definition:
IQueueingEventProcessor.h:9
Gaudi::Interfaces::IQueueingEventProcessor::empty
virtual bool empty() const =0
Tell if the processor has events in the queues.
Gaudi::Interfaces::IQueueingEventProcessor::DeclareInterfaceID
DeclareInterfaceID(IQueueingEventProcessor, 1, 0)
Gaudi::Interfaces::IQueueingEventProcessor::pop
virtual std::optional< ResultType > pop()=0
Get the next available result.
std::tuple
Gaudi::Interfaces::IQueueingEventProcessor::push
virtual void push(EventContext &&ctx)=0
Schedule the processing of an event.
IEventProcessor
The IEventProcessor is the interface to process events.
Definition:
IEventProcessor.h:14
StatusCode.h
GaudiKernel
Gaudi
Interfaces
IQueueingEventProcessor.h
Generated on Sat Sep 28 2019 18:06:49 for The Gaudi Framework by
1.8.15