fsm 0.4.1
Header-only C++20 hierarchical table-driven FSM
Loading...
Searching...
No Matches
fsm::event_tag< E > Struct Template Reference

Tag carrying an event as a compile-time value. More...

#include <fsm.hpp>

Public Member Functions

constexpr event_tag ()=default
 

Detailed Description

template<auto E>
struct fsm::event_tag< E >

Tag carrying an event as a compile-time value.

Selects the Traits::make_payload overload for the typed dispatch()/post() wrappers: declaring static constexpr Payload make_payload(fsm::event_tag<Ev::Call>, FloorCall) makes machine.dispatch<Ev::Call>(FloorCall{...}, now) well-formed and any other argument type a compile error — event/payload agreement enforced at the call site while rows and guards keep the machine-wide Payload.

Constructor & Destructor Documentation

◆ event_tag()

template<auto E>
constexpr fsm::event_tag< E >::event_tag ( )
explicitconstexprdefault

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