|
fsm
|
Event handler return type. More...
#include <transitions.h>
Public Types | |
| using | list = mpl::type_list< S... > |
Public Member Functions | |
| constexpr | transitions (transitions<> const &rhs) noexcept |
| Construct new object from empty-listed transactions object. More... | |
| template<class T > | |
| transitions (detail::transition< T >) noexcept | |
| Construct a new transitions object directly from detail::transition<> More... | |
| template<class T > | |
| transitions (transitions< T >) noexcept | |
| transitions (detail::handled) noexcept | |
| Construct a new transitions object indicating handled event. | |
| transitions (detail::not_handled) noexcept | |
| Construct a new transitions object indicating not handled event. | |
| bool | is_transition () const |
| Check if this object is a transition type. More... | |
| bool | is_handled () const |
| Check if the event was handled. More... | |
Public Attributes | |
| std::size_t const | idx |
| result const | outcome |
Event handler return type.
It indicates possible outcomes from an event handler. It is also used to carry on information about event handler outcome. As its created from state->handle(ev) result.
|
inlinenoexcept |
Construct new object from empty-listed transactions object.
This is a case when handler declares a return type: transitions<A, B, C> handle(Foo); but calls handled() or not_handled() which returns exactly transitions<> type which needs to be converted here to transitions<A, B, C>.
|
inlinenoexcept |
Construct a new transitions object directly from detail::transition<>
| T | state |
|
inline |
Check if the event was handled.
|
inline |
Check if this object is a transition type.
1.8.13