---------------------------------------------------------------------------- 3. State Declarations
| 32 | // 3. State Declarations |
| 33 | // |
| 34 | struct On : Switch |
| 35 | { |
| 36 | void entry() override { std::cout << "* Switch is ON" << std::endl; }; |
| 37 | void react(Toggle const &) override { transit<Off>(); }; |
| 38 | }; |
| 39 | |
| 40 | struct Off : Switch |
| 41 | { |
nothing calls this directly
no outgoing calls
no test coverage detected