![]() |
The Gaudi Framework
v36r1 (3e2fb5a8)
|
#include <GaudiKernel/AlgsExecutionStates.h>
Classes | |
class | Iterator |
Public Types | |
enum | State : uint8_t { INITIAL = 0, CONTROLREADY = 1, DATAREADY = 2, RESOURCELESS = 3, SCHEDULED = 4, EVTACCEPTED = 5, EVTREJECTED = 6, ERROR = 7, MAXVALUE = 8 } |
Execution states of the algorithms Must have contiguous integer values 0, 1... More... | |
Public Member Functions | |
AlgsExecutionStates (unsigned int algsNumber, SmartIF< IMessageSvc > MS) | |
StatusCode | set (unsigned int iAlgo, State newState) |
void | reset () |
bool | contains (State state) const |
check if the collection contains at least one state of requested type More... | |
bool | containsAny (std::initializer_list< State > l) const |
check if the collection contains at least one state of any listed types More... | |
bool | containsOnly (std::initializer_list< State > l) const |
check if the collection contains only states of listed types More... | |
const State & | operator[] (unsigned int i) const |
size_t | size () const |
size_t | sizeOfSubset (State state) const |
Iterator | begin (State kind) |
Iterator | end (State kind) |
Private Member Functions | |
MsgStream | log () |
Private Attributes | |
std::vector< State > | m_states |
SmartIF< IMessageSvc > | m_MS |
The AlgsExecutionStates encodes the state machine for the execution of algorithms within a single event. It is used by the concurrent schedulers
Definition at line 36 of file AlgsExecutionStates.h.
enum AlgsExecutionStates::State : uint8_t |
Execution states of the algorithms Must have contiguous integer values 0, 1...
N
Enumerator | |
---|---|
INITIAL | |
CONTROLREADY | |
DATAREADY | |
RESOURCELESS | |
SCHEDULED | |
EVTACCEPTED | |
EVTREJECTED | |
ERROR | |
MAXVALUE |
Definition at line 40 of file AlgsExecutionStates.h.
|
inline |
Definition at line 116 of file AlgsExecutionStates.h.
|
inline |
|
inline |
|
inline |
check if the collection contains only states of listed types
Definition at line 68 of file AlgsExecutionStates.h.
Definition at line 117 of file AlgsExecutionStates.h.
|
inlineprivate |
Definition at line 85 of file AlgsExecutionStates.h.
|
inline |
Definition at line 73 of file AlgsExecutionStates.h.
|
inline |
StatusCode AlgsExecutionStates::set | ( | unsigned int | iAlgo, |
State | newState | ||
) |
Definition at line 23 of file AlgsExecutionStates.cpp.
|
inline |
Definition at line 75 of file AlgsExecutionStates.h.
|
inline |
Definition at line 77 of file AlgsExecutionStates.h.
|
private |
Definition at line 83 of file AlgsExecutionStates.h.
|
private |
Definition at line 82 of file AlgsExecutionStates.h.