FACT++  1.0
int StateMachineImp::Wrapper ( const std::function< int(const EventImp &)> &  f,
const EventImp imp 
)
inlineprivate

Definition at line 82 of file StateMachineImp.h.

References AddEvent(), AddStateName(), GetCurrentState(), HandleEvent(), kSM_KeepState, SetCurrentState(), SetDefaultStateNames(), StateMachineImp(), states, and ~StateMachineImp().

Referenced by Wrap().

83  {
84  const int rc = f(imp);
85  return rc==kSM_KeepState ? GetCurrentState() : rc;
86  }
int GetCurrentState() const
return the current state of the machine

+ Here is the call graph for this function:

+ Here is the caller graph for this function: