The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
AlgExecStateSvc::AlgExecStateInternal Class Reference

internal state of an algorithm More...

Collaboration diagram for AlgExecStateSvc::AlgExecStateInternal:

Public Member Functions

bool filterPassed () const
void setFilterPassed (bool f=true)
AlgExecStateRef::State state () const
void setState (AlgExecStateRef::State s)
void setState (AlgExecStateRef::State s, const StatusCode &sc)
const StatusCode & execStatus () const
void setExecStatus (const StatusCode &sc=StatusCode::SUCCESS)
void reset ()

Private Attributes

bool m_filterPassed { true }
AlgExecStateRef::State m_state { AlgExecStateRef::State::None }
StatusCode m_execStatus { StatusCode::FAILURE }

Friends

std::ostream & operator<< (std::ostream &ost, const AlgExecStateInternal &s)

Detailed Description

internal state of an algorithm

Definition at line 32 of file AlgExecStateSvc.h.

Member Function Documentation

◆ execStatus()

const StatusCode & AlgExecStateSvc::AlgExecStateInternal::execStatus ( ) const
inline

Definition at line 42 of file AlgExecStateSvc.h.

◆ filterPassed()

bool AlgExecStateSvc::AlgExecStateInternal::filterPassed ( ) const
inline

Definition at line 34 of file AlgExecStateSvc.h.

◆ reset()

void AlgExecStateSvc::AlgExecStateInternal::reset ( )
inline

Definition at line 44 of file AlgExecStateSvc.h.

44{ *this = AlgExecStateInternal{}; }

◆ setExecStatus()

void AlgExecStateSvc::AlgExecStateInternal::setExecStatus ( const StatusCode & sc = StatusCode::SUCCESS)
inline

Definition at line 43 of file AlgExecStateSvc.h.

43{ m_execStatus = sc; }

◆ setFilterPassed()

void AlgExecStateSvc::AlgExecStateInternal::setFilterPassed ( bool f = true)
inline

Definition at line 35 of file AlgExecStateSvc.h.

35{ m_filterPassed = f; }

◆ setState() [1/2]

void AlgExecStateSvc::AlgExecStateInternal::setState ( AlgExecStateRef::State s)
inline

Definition at line 37 of file AlgExecStateSvc.h.

37{ m_state = s; }

◆ setState() [2/2]

void AlgExecStateSvc::AlgExecStateInternal::setState ( AlgExecStateRef::State s,
const StatusCode & sc )
inline

Definition at line 38 of file AlgExecStateSvc.h.

38 {
39 m_state = s;
40 m_execStatus = sc;
41 }

◆ state()

AlgExecStateRef::State AlgExecStateSvc::AlgExecStateInternal::state ( ) const
inline

Definition at line 36 of file AlgExecStateSvc.h.

36{ return m_state; }

◆ operator<<

std::ostream & operator<< ( std::ostream & ost,
const AlgExecStateInternal & s )
friend

Definition at line 46 of file AlgExecStateSvc.h.

46 {
47 ost << "e: ";
48 switch ( s.state() ) {
49 case AlgExecStateRef::State::None:
50 return ost << "n";
51 case AlgExecStateRef::State::Executing:
52 return ost << "e";
53 default:
54 return ost << "d f: " << s.filterPassed() << " sc: " << s.execStatus();
55 }
56 }

Member Data Documentation

◆ m_execStatus

StatusCode AlgExecStateSvc::AlgExecStateInternal::m_execStatus { StatusCode::FAILURE }
private

Definition at line 61 of file AlgExecStateSvc.h.

constexpr static const auto FAILURE
Definition StatusCode.h:100

◆ m_filterPassed

bool AlgExecStateSvc::AlgExecStateInternal::m_filterPassed { true }
private

Definition at line 59 of file AlgExecStateSvc.h.

59{ true };

◆ m_state

AlgExecStateRef::State AlgExecStateSvc::AlgExecStateInternal::m_state { AlgExecStateRef::State::None }
private

Definition at line 60 of file AlgExecStateSvc.h.

60{ AlgExecStateRef::State::None };

The documentation for this class was generated from the following file: