Go to the documentation of this file.
11 #ifndef GAUDIHIVE_ALGSEXECUTIONSTATES_H
12 #define GAUDIHIVE_ALGSEXECUTIONSTATES_H
20 #include <initializer_list>
25 #include <boost/container/flat_set.hpp>
106 case State::CONTROLREADY:
109 case State::DATAREADY:
112 case State::RESOURCELESS:
115 case State::SCHEDULED:
118 case State::EVTACCEPTED:
121 case State::EVTREJECTED:
133 #endif // GAUDIHIVE_ALGSEXECUTIONSTATES_H
std::vector< boost::container::flat_set< int > > m_algsInState
SmartIF< IMessageSvc > m_MS
State
Allowed states for classes implementing the state machine (ApplicationMgr, Algorithm,...
std::vector< State > m_states
std::ostream & operator<<(std::ostream &s, AlgsExecutionStates::State x)
Streaming of State values.
AlgsExecutionStates(unsigned int algsNumber, SmartIF< IMessageSvc > MS)
bool contains(State state) const
check if the collection contains at least one state of requested type
bool containsAny(std::initializer_list< State > l) const
check if the collection contains at least one state of any listed types
StatusCode set(unsigned int iAlgo, State newState)
State
Execution states of the algorithms Must have contiguous integer values 0, 1...
size_t sizeOfSubset(State state) const
const boost::container::flat_set< int > algsInState(State state) const
constexpr struct Gaudi::Functional::details::insert_t insert
const State & operator[](unsigned int i) const