A list of pairs of states and corresponding methods to process. This struct is used only once, namely with the field StateMachine::Program. The constructor of class App fills this list with all commands defined in the enumeration States. While the insertion methods AddBefore and AddAfter are provided for convenience, more complex manipulation of the list is allowed using the interface inherited from std::vector.
Public Method Index: | |
| void | AddAfter (Enum anchor, const Command &cmd) |
| void | AddBefore (Enum anchor, const Command &cmd) |
|
inline |
Adds a custom execution command (and state) after the given cmd.
| anchor | The associated state to search in this vector and use as the insertion place. If nullptr is passed, cmd will be inserted at the beginning of the list. |
| cmd | The command to be added. |
|
inline |
Adds a custom execution command (and state) before the given cmd.
| anchor | The associated state to search in this vector and use as the insertion place. If nullptr is passed, cmd will be inserted at the end of the list. |
| cmd | The command to be added. |