boost::msm::backmp11::state_machine
Back‐end for a state machine.
Synopsis
Declared in <boost/msm/backmp11/state_machine.hpp>
template<
typename FrontEnd,
typename Config = default_state_machine_config,
typename Derived = no_derived>
class state_machine
: public detail::state_machine_base<Config, detail::get_nesting_role<Config, mp11::mp_if_c<std::is_same_v<Derived, no_derived>, state_machine<FrontEnd, Config, Derived>, Derived>>()>
, public FrontEnd
Base Classes
Name |
Description |
|
|
|
Types
Name |
Description |
Wrapper for a direct entry, which upper machines can use to connect to it. |
|
Wrapper for a direct entry, which upper machines can use to connect to it. |
|
Wrapper for an exit pseudostate, which upper machines can use to connect to it. |
Type Aliases
Name |
Description |
Type of the configuration (same as Config, see |
|
Type of the context (see |
|
Type of the derived machine (corresponds to Derived). |
|
Type of the front‐end (same as FrontEnd). |
|
Type of the context (see |
|
Type of the root machine (see |
|
Container with all contained states. |
Member Functions
Name |
Description |
|
Copy constructor |
|
Copy constructor |
|
Move constructor |
|
Constructs and forwards constructor arguments to the back‐end. |
Copy assignment operator |
|
Move assignment operator |
|
Puts the event into the event pool to process it in the next processing cycle. |
|
Puts the event into the event pool to process it in the same processing cycle. |
|
Returns the active state ids of the machine. |
|
Gets the context of the state machine. See |
|
Gets the context of the state machine. See |
|
Gets the current state of the state machine. See |
|
Get the observer of the state machine. See |
|
Gets the observer of the state machine. See |
|
Gets the root machine. See |
|
Gets the root machine. See |
|
Gets a state. |
|
Gets a state. |
|
Checks if the sm is contained in another sm. |
|
Checks if a flag is active, using the BinaryOp (default |
|
Checks whether a state is currently active. |
|
Processes the event. |
|
Processes up to |
|
Starts the state machine with a |
|
Starts the state machine with a custom event. |
|
Stops the state machine with a |
|
Stops the state machine with a custom event. |
|
Visits the states (only active states, recursive). |
|
Visits the states (only active states, recursive). |
|
Visits the states with a |
|
Visits the states with a |
Static Member Functions
Name |
Description |
Returns the id of a state. |
|
Returns the id of a state. |
Friends
Name |
Description |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Back‐end for a state machine. |