Zth (libzth)
zth::fsm::Transition Class Referencefinal

#include <fsm14.h>

Inheritance diagram for zth::fsm::Transition:
zth::fsm::GuardedActionBase zth::fsm::Guard zth::fsm::Action

Public Member Functions

template<typename F >
constexpr Transition (F &&from) noexcept
 
template<typename F , typename T >
constexpr Transition (F &&from, T &&to) noexcept
 
virtual GuardPollInterval enabled (BasicFsm &fsm) const final
 
virtual GuardPollInterval tryRun (BasicFsm &fsm) const final
 
constexpr auto const & from () const noexcept
 
constexpr bool isInput () const noexcept
 
constexpr bool hasGuard () const noexcept
 
constexpr Symbol const & input () const noexcept
 
constexpr auto const & guard () const noexcept
 
constexpr auto const & action () const noexcept
 
constexpr auto const & to () const noexcept
 
virtual cow_string name () const final
 
- Public Member Functions inherited from zth::fsm::GuardedActionBase
GuardPollInterval operator() (BasicFsm &fsm) const
 
- Public Member Functions inherited from zth::fsm::Guard
 Guard (Guard const &)=delete
 
void operator= (Guard const &)=delete
 
auto operator() (BasicFsm &fsm) const
 

Additional Inherited Members

- Protected Member Functions inherited from zth::fsm::GuardedActionBase
constexpr GuardedActionBase ()=default
 
- Protected Member Functions inherited from zth::fsm::Guard
constexpr Guard ()=default
 
 ~Guard ()=default
 
 Guard (Guard &&) noexcept=default
 
Guardoperator= (Guard &&) noexcept=default
 
- Protected Member Functions inherited from zth::fsm::Action
constexpr Action ()=default
 
 ~Action ()=default
 
 Action (Action &&) noexcept=default
 
Actionoperator= (Action &&) noexcept=default
 
 Action (Action const &)=delete
 
void operator= (Action const &)=delete
 
virtual void run (BasicFsm &fsm) const
 
void operator() (BasicFsm &fsm) const
 

Detailed Description

Definition at line 926 of file fsm14.h.

Constructor & Destructor Documentation

◆ Transition() [1/2]

template<typename F >
constexpr zth::fsm::Transition::Transition ( F &&  from)
inlineconstexprnoexcept

Definition at line 930 of file fsm14.h.

◆ Transition() [2/2]

template<typename F , typename T >
constexpr zth::fsm::Transition::Transition ( F &&  from,
T &&  to 
)
inlineconstexprnoexcept

Definition at line 936 of file fsm14.h.

Member Function Documentation

◆ action()

constexpr auto const& zth::fsm::Transition::action ( ) const
inlineconstexprnoexcept

Definition at line 976 of file fsm14.h.

◆ enabled()

virtual GuardPollInterval zth::fsm::Transition::enabled ( BasicFsm fsm) const
inlinefinalvirtual

Implements zth::fsm::Guard.

Definition at line 941 of file fsm14.h.

◆ from()

constexpr auto const& zth::fsm::Transition::from ( ) const
inlineconstexprnoexcept

Definition at line 951 of file fsm14.h.

◆ guard()

constexpr auto const& zth::fsm::Transition::guard ( ) const
inlineconstexprnoexcept

Definition at line 971 of file fsm14.h.

◆ hasGuard()

constexpr bool zth::fsm::Transition::hasGuard ( ) const
inlineconstexprnoexcept

Definition at line 961 of file fsm14.h.

◆ input()

constexpr Symbol const& zth::fsm::Transition::input ( ) const
inlineconstexprnoexcept

Definition at line 966 of file fsm14.h.

◆ isInput()

constexpr bool zth::fsm::Transition::isInput ( ) const
inlineconstexprnoexcept

Definition at line 956 of file fsm14.h.

◆ name()

virtual cow_string zth::fsm::Transition::name ( ) const
inlinefinalvirtual

Implements zth::fsm::Guard.

Definition at line 986 of file fsm14.h.

◆ to()

constexpr auto const& zth::fsm::Transition::to ( ) const
inlineconstexprnoexcept

Definition at line 981 of file fsm14.h.

◆ tryRun()

virtual GuardPollInterval zth::fsm::Transition::tryRun ( BasicFsm fsm) const
inlinefinalvirtual

Reimplemented from zth::fsm::GuardedActionBase.

Definition at line 946 of file fsm14.h.


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