Template Class state_action0
Defined in File state_action.hpp
Inheritance Relationships
Base Type
public rcppsw::patterns::fsm::state
(Class state)
Class Documentation
-
template<class SM, int (SM::* Func)(void)>
class state_action0 : public rcppsw::patterns::fsm::state - Template Parameters:
SM – A state machine class.
Func – A state machine member function pointer, which takes ZERO arguments.
Public Functions
-
state_action0(const state_action0&) = default
-
state_action0(void) = default
-
~state_action0(void) override = default
-
inline virtual int invoke_state_action(base_fsm *sm, 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.