|
fsm 0.4.1
Header-only C++20 hierarchical table-driven FSM
|
Dispatch verdict: what happened, where, and why. More...
#include <fsm.hpp>
Public Attributes | |
| fsm::status | status |
| Verdict category. | |
| State | from |
| Leaf state before dispatch. | |
| State | to |
| Leaf state after dispatch (== from unless transitioned). | |
| Event | event |
| The dispatched event. | |
| uint16_t | row |
| Deciding (or first-matching) row index; fsm::no_row if none. | |
| Reason | reason |
| Refusal reason for refused_by_row; Reason{} otherwise. | |
Dispatch verdict: what happened, where, and why.
A C-shaped POD so extern-"C" facades can mirror it field for field.
| State | the machine's state enum |
| Event | the machine's event enum |
| Reason | user refusal-reason type (meaningful for refused_by_row) |
| Event fsm::result< State, Event, Reason >::event |
The dispatched event.
| State fsm::result< State, Event, Reason >::from |
Leaf state before dispatch.
| Reason fsm::result< State, Event, Reason >::reason |
Refusal reason for refused_by_row; Reason{} otherwise.
| uint16_t fsm::result< State, Event, Reason >::row |
Deciding (or first-matching) row index; fsm::no_row if none.
| fsm::status fsm::result< State, Event, Reason >::status |
Verdict category.
| State fsm::result< State, Event, Reason >::to |
Leaf state after dispatch (== from unless transitioned).