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

Method react

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

Source from the content-addressed store, hash-verified

40{
41 void entry() override { counter++; std::cout << "* Switch is ON, counter=" << counter << std::endl; };
42 void react(Toggle const &) override { transit<Off>(); };
43 int counter;
44
45public:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected