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

Method react

examples/api/moore_machine.cpp:34–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32{
33 void entry() override { std::cout << "* Opening ciruit (light goes OFF)" << std::endl; };
34 void react(Toggle const &) override { transit<On>(); };
35};
36
37FSM_INITIAL_STATE(Switch, Off)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected