libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
jmmcg::LIBJMMCG_VER_NAMESPACE::msm::jump_table Struct Reference

#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...
 

Detailed Description

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...

Definition at line 143 of file msm.hpp.


The documentation for this struct was generated from the following file: