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

Method react

examples/api/resetting_switch.cpp:53–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51{
52 void entry() override { counter++; std::cout << "* Switch is OFF, counter=" << counter << std::endl; };
53 void react(Toggle const &) override { transit<On>(); };
54 int counter;
55
56public:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected