Struct Initializing

Inheritance Relationships

Base Type

  • public boost::statechart::state< Initializing, Running >

Struct Documentation

struct mimir::Initializing : public boost::statechart::state<Initializing, Running>

The state machine is initializing the algorithm.

Public Types

typedef mpl::list<bsc::custom_reaction<EvReady>> reactions

Admissible reactions for the state.

Public Functions

Initializing(my_context ctx)

Constructor.

~Initializing()

Destructor.

bsc::result react(const EvReady&)

Needed to “retrieve void result of future”.

Private Members

std::future<void> m_future

Mechanism to get result of async call. Needs to exist until call is done.

std::atomic<bool> m_canceled

Canceled variable, which is read in the async call.