Template Class state_guard_condition0

Inheritance Relationships

Base Type

Class Documentation

template<class SM, bool (SM::* Func)(void)>
class state_guard_condition0 : public rcppsw::patterns::fsm::state_guard
Template Parameters:
  • SM – A state machine class.

  • Func – A state machine member function pointer that takes ZERO arguments.

Public Functions

~state_guard_condition0(void) override = default
inline virtual bool invoke_guard_condition(base_fsm *sm, const event_data*) const override

Called by the state machine engine to execute a guard condition action. If guard condition evaluates to TRUE the state action is executed. If FALSE, no state transition is performed.

Parameters:

sm – A state machine instance.

Returns:

Returns TRUE if no guard condition or the guard condition evaluates to TRUE.