The Gaudi Framework
master (37c0b60a)
|
#include <GaudiKernel/AlgsExecutionStates.h>
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... | |
const boost::container::flat_set< int > | algsInState (State state) const |
const State & | operator[] (unsigned int i) const |
size_t | size () const |
size_t | sizeOfSubset (State state) const |
Private Member Functions | |
MsgStream | log () |
Private Attributes | |
std::vector< State > | m_states |
std::vector< boost::container::flat_set< int > > | m_algsInState |
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 38 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 42 of file AlgsExecutionStates.h.
|
inline |
Definition at line 54 of file AlgsExecutionStates.h.
|
inline |
Definition at line 83 of file AlgsExecutionStates.h.
|
inline |
check if the collection contains at least one state of requested type
Definition at line 72 of file AlgsExecutionStates.h.
|
inline |
check if the collection contains at least one state of any listed types
Definition at line 75 of file AlgsExecutionStates.h.
|
inlineprivate |
Definition at line 96 of file AlgsExecutionStates.h.
|
inline |
Definition at line 85 of file AlgsExecutionStates.h.
|
inline |
Definition at line 63 of file AlgsExecutionStates.h.
StatusCode AlgsExecutionStates::set | ( | unsigned int | iAlgo, |
State | newState | ||
) |
Definition at line 23 of file AlgsExecutionStates.cpp.
|
inline |
Definition at line 87 of file AlgsExecutionStates.h.
|
inline |
Definition at line 89 of file AlgsExecutionStates.h.
|
private |
Definition at line 93 of file AlgsExecutionStates.h.
|
private |
Definition at line 94 of file AlgsExecutionStates.h.
|
private |
Definition at line 92 of file AlgsExecutionStates.h.