Template Class state_action1

Inheritance Relationships

Base Type

Class Documentation

template<class SM, class Event, int (SM::* Func)(Event*)>
class state_action1 : public rcppsw::patterns::fsm::state
Template Parameters:
  • SM – A state machine class.

  • Event – A state function event data type (derived from event_data).

  • Func – A state machine member function pointer, which takes ONE argument.

Public Functions

state_action1(const state_action1&) = default
state_action1(void) = default
~state_action1(void) override = default
inline virtual int invoke_state_action(base_fsm *sm, event_data *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.