Zth (libzth)
Loading...
Searching...
No Matches
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 689 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 692 of file fsm14.h.

◆ GuardedAction() [2/6]

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

Definition at line 697 of file fsm14.h.

◆ GuardedAction() [3/6]

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

Definition at line 704 of file fsm14.h.

◆ GuardedAction() [4/6]

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

Definition at line 709 of file fsm14.h.

◆ GuardedAction() [5/6]

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

Definition at line 714 of file fsm14.h.

◆ GuardedAction() [6/6]

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

Definition at line 718 of file fsm14.h.

Member Function Documentation

◆ action()

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

Definition at line 745 of file fsm14.h.

◆ enabled()

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

Implements zth::fsm::Guard.

Definition at line 2097 of file fsm14.h.

◆ guard()

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

Definition at line 739 of file fsm14.h.

◆ hasGuard()

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

Definition at line 727 of file fsm14.h.

◆ input()

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

Definition at line 732 of file fsm14.h.

◆ isInput()

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

Definition at line 722 of file fsm14.h.

◆ name()

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

Implements zth::fsm::Guard.

Definition at line 755 of file fsm14.h.

◆ run()

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

Reimplemented from zth::fsm::Action.

Definition at line 750 of file fsm14.h.


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