Zth (libzth)
zth::fsm::Transitions< Size > Class Template Referencefinal

#include <fsm14.h>

Inheritance diagram for zth::fsm::Transitions< Size >:
zth::fsm::TransitionsBase

Classes

struct  CompiledTransition
 

Public Member Functions

virtual size_t size () const noexcept final
 
virtual bool isInput (index_type i) const noexcept final
 
virtual bool hasGuard (index_type i) const noexcept final
 
virtual Guard const & guard (index_type i) const noexcept final
 
virtual Symbol input (index_type i) const noexcept final
 
virtual GuardPollInterval enabled (index_type i, BasicFsm &fsm) const final
 
virtual Action const & action (index_type i) const noexcept final
 
virtual index_type to (index_type i) const noexcept final
 
virtual State const & state (index_type i) const noexcept final
 
- Public Member Functions inherited from zth::fsm::TransitionsBase
virtual bool hasInput (index_type i) const noexcept
 
Fsm spawn () const
 
template<typename F , std::enable_if_t< std::is_base_of< BasicFsm, F >::value, int > = 0>
F & init (F &fsm) const noexcept
 
void dump (FILE *f=stdout) const
 
void uml (FILE *f=stdout) const
 

Static Public Member Functions

static constexpr Transitions compile (std::initializer_list< Transition > l)
 

Protected Types

enum class  Flag : uint8_t { input = 0x01 }
 
using Index = typename smallest_uint< Size >::type
 

Protected Member Functions

constexpr Transitions ()=default
 

Additional Inherited Members

- Public Types inherited from zth::fsm::TransitionsBase
using index_type = size_t
 

Detailed Description

template<size_t Size>
class zth::fsm::Transitions< Size >

Definition at line 1115 of file fsm14.h.

Member Typedef Documentation

◆ Index

template<size_t Size>
using zth::fsm::Transitions< Size >::Index = typename smallest_uint<Size>::type
protected

Definition at line 1118 of file fsm14.h.

Member Enumeration Documentation

◆ Flag

template<size_t Size>
enum zth::fsm::Transitions::Flag : uint8_t
strongprotected
Enumerator
input 

Definition at line 1120 of file fsm14.h.

Constructor & Destructor Documentation

◆ Transitions()

template<size_t Size>
constexpr zth::fsm::Transitions< Size >::Transitions ( )
constexprprotecteddefault

Member Function Documentation

◆ action()

template<size_t Size>
virtual Action const& zth::fsm::Transitions< Size >::action ( index_type  i) const
inlinefinalvirtualnoexcept

Implements zth::fsm::TransitionsBase.

Definition at line 1220 of file fsm14.h.

◆ compile()

template<size_t Size>
static constexpr Transitions zth::fsm::Transitions< Size >::compile ( std::initializer_list< Transition l)
inlinestaticconstexpr

Definition at line 1147 of file fsm14.h.

◆ enabled()

template<size_t Size>
GuardPollInterval zth::fsm::Transitions< Size >::enabled ( Transitions< Size >::index_type  i,
BasicFsm fsm 
) const
finalvirtual

Implements zth::fsm::TransitionsBase.

Definition at line 2094 of file fsm14.h.

◆ guard()

template<size_t Size>
virtual Guard const& zth::fsm::Transitions< Size >::guard ( index_type  i) const
inlinefinalvirtualnoexcept

Implements zth::fsm::TransitionsBase.

Definition at line 1204 of file fsm14.h.

◆ hasGuard()

template<size_t Size>
virtual bool zth::fsm::Transitions< Size >::hasGuard ( index_type  i) const
inlinefinalvirtualnoexcept

Implements zth::fsm::TransitionsBase.

Definition at line 1199 of file fsm14.h.

◆ input()

template<size_t Size>
virtual Symbol zth::fsm::Transitions< Size >::input ( index_type  i) const
inlinefinalvirtualnoexcept

Implements zth::fsm::TransitionsBase.

Definition at line 1211 of file fsm14.h.

◆ isInput()

template<size_t Size>
virtual bool zth::fsm::Transitions< Size >::isInput ( index_type  i) const
inlinefinalvirtualnoexcept

Definition at line 1194 of file fsm14.h.

◆ size()

template<size_t Size>
virtual size_t zth::fsm::Transitions< Size >::size ( ) const
inlinefinalvirtualnoexcept

Implements zth::fsm::TransitionsBase.

Definition at line 1189 of file fsm14.h.

◆ state()

template<size_t Size>
virtual State const& zth::fsm::Transitions< Size >::state ( index_type  i) const
inlinefinalvirtualnoexcept

Implements zth::fsm::TransitionsBase.

Definition at line 1232 of file fsm14.h.

◆ to()

template<size_t Size>
virtual index_type zth::fsm::Transitions< Size >::to ( index_type  i) const
inlinefinalvirtualnoexcept

Implements zth::fsm::TransitionsBase.

Definition at line 1226 of file fsm14.h.


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