MCPcopy Create free account
hub / github.com/digint/tinyfsm / react

Method react

examples/api/simple_switch.cpp:43–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41{
42 void entry() override { std::cout << "* Switch is OFF" << std::endl; };
43 void react(Toggle const &) override { transit<On>(); };
44};
45
46FSM_INITIAL_STATE(Switch, Off)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected