|
fsm 0.4.1
Header-only C++20 hierarchical table-driven FSM
|
Parent link — a mandatory column: fsm::root or fsm::child_of(P). More...
#include <fsm.hpp>
Public Member Functions | |
| constexpr | parent_spec ()=default |
| constexpr | parent_spec (root_t) |
| constexpr | parent_spec (parent_kind kk, State st) |
Public Attributes | |
| parent_kind | k = parent_kind::unspecified |
| State | s {} |
Parent link — a mandatory column: fsm::root or fsm::child_of(P).
Default-constructs to a poison unspecified value so an omitted .parent designated initializer is a compile error rather than a silently flattened hierarchy (a state accidentally outside its composite changes bubbling and fsm::any reach with no other diagnostic — forests are legal, so no validator could otherwise object).
|
constexprdefault |
|
inlineconstexpr |
|
inlineconstexpr |
| parent_kind fsm::parent_spec< State >::k = parent_kind::unspecified |
| State fsm::parent_spec< State >::s {} |