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

#include <fsm14.h>

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

Public Member Functions

constexpr GuardedAction (Guard const &guard, Action const &action) noexcept
 
constexpr GuardedAction (Symbol &&input, Action const &action) noexcept
 
constexpr GuardedAction (Guard const &guard) noexcept
 
constexpr GuardedAction (Symbol &&input) noexcept
 
constexpr GuardedAction (Action const &action) noexcept
 
constexpr GuardedAction () noexcept
 
constexpr bool isInput () const noexcept
 
constexpr bool hasGuard () const noexcept
 
constexpr Symbol const & input () const noexcept
 
virtual GuardPollInterval enabled (BasicFsm &fsm) const final
 
constexpr auto const & guard () const noexcept
 
constexpr auto const & action () const noexcept
 
virtual void run (BasicFsm &fsm) const final
 
virtual cow_string name () const final
 
- Public Member Functions inherited from zth::fsm::GuardedActionBase
virtual GuardPollInterval tryRun (BasicFsm &fsm) const
 
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
 
void operator() (BasicFsm &fsm) const
 

Detailed Description

Definition at line 685 of file fsm14.h.

Constructor & Destructor Documentation

◆ GuardedAction() [1/6]

constexpr zth::fsm::GuardedAction::GuardedAction ( Guard const &  guard,
Action const &  action 
)
inlineconstexprnoexcept

Definition at line 688 of file fsm14.h.

◆ GuardedAction() [2/6]

constexpr zth::fsm::GuardedAction::GuardedAction ( Symbol &&  input,
Action const &  action 
)
inlineconstexprnoexcept

Definition at line 693 of file fsm14.h.

◆ GuardedAction() [3/6]

constexpr zth::fsm::GuardedAction::GuardedAction ( Guard const &  guard)
inlineconstexprnoexcept

Definition at line 699 of file fsm14.h.

◆ GuardedAction() [4/6]

constexpr zth::fsm::GuardedAction::GuardedAction ( Symbol &&  input)
inlineconstexprnoexcept

Definition at line 703 of file fsm14.h.

◆ GuardedAction() [5/6]

constexpr zth::fsm::GuardedAction::GuardedAction ( Action const &  action)
inlineconstexprnoexcept

Definition at line 707 of file fsm14.h.

◆ GuardedAction() [6/6]

constexpr zth::fsm::GuardedAction::GuardedAction ( )
inlineconstexprnoexcept

Definition at line 711 of file fsm14.h.

Member Function Documentation

◆ action()

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

Definition at line 738 of file fsm14.h.

◆ enabled()

GuardPollInterval zth::fsm::GuardedAction::enabled ( BasicFsm fsm) const
inlinefinalvirtual

Implements zth::fsm::Guard.

Definition at line 2085 of file fsm14.h.

◆ guard()

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

Definition at line 732 of file fsm14.h.

◆ hasGuard()

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

Definition at line 720 of file fsm14.h.

◆ input()

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

Definition at line 725 of file fsm14.h.

◆ isInput()

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

Definition at line 715 of file fsm14.h.

◆ name()

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

Implements zth::fsm::Guard.

Definition at line 748 of file fsm14.h.

◆ run()

virtual void zth::fsm::GuardedAction::run ( BasicFsm fsm) const
inlinefinalvirtual

Reimplemented from zth::fsm::Action.

Definition at line 743 of file fsm14.h.


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