Template Class hfsm_state_action0
Defined in File hfsm_state.hpp
Inheritance Relationships
Base Type
public rcppsw::patterns::fsm::hfsm_state
(Class hfsm_state)
Class Documentation
-
template<class FSM, int (FSM::* Handler)(void)>
class hfsm_state_action0 : public rcppsw::patterns::fsm::hfsm_state - Template Parameters:
FSM – The current state machine class.
Handler – A state machine member function pointer that takes ZERO arguments.
Public Functions
-
inline explicit hfsm_state_action0(hfsm_state *parent)
-
~hfsm_state_action0(void) override = default
-
inline virtual int invoke_state_action(base_fsm *fsm, event_data*) const override
Called by the state machine engine to execute a state action. If a guard condition exists and it evaluates to false, the state action will not execute.
- Parameters:
sm – A state machine instance.
data – The event data.
- Returns:
integer indicating whether or not the event was handled.