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

Method Switch

examples/api/debugging_switch.cpp:25–28  ·  view source on GitHub ↗

NOTE: on reset: "tinyfsm::StateList ::reset()", copy constructor is used by default, so "this" points to neither "Off" nor "On" (see operator=() below).

Source from the content-addressed store, hash-verified

23 // constructor is used by default, so "this" points to neither
24 // "Off" nor "On" (see operator=() below).
25 Switch() : counter(0) {
26 std::cout << "* Switch()" << std::endl
27 << " this = " << this << std::endl;
28 }
29
30 ~Switch() {
31 std::cout << "* ~Switch()" << std::endl

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected