libjmmcg
release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
|
#include <msm.hpp>
Classes | |
class | machine |
Instantiate this object to use the created state-machine. More... | |
struct | row_types |
A convenience class to make the rows a bit smaller when declaring the meta-state machine table. More... | |
class | state_transition_table |
Derive from this object to implement your meta-state machine. More... | |
gcc & clang can get somewhat confused when the event has a complex body and can create either if-else chains or switch-statements respectively. So force the compiler to always implement a jump-table instead.
Consider: and taking the address of labels...