Zth (libzth)
zth::fsm::TypedGuard< T > Class Template Referencefinal

#include <fsm14.h>

Inheritance diagram for zth::fsm::TypedGuard< T >:
zth::fsm::Guard zth::fsm::Callback< T, GuardPollInterval >

Public Types

using Callback_type = Callback< T, GuardPollInterval >
 

Public Member Functions

template<typename T_ >
constexpr TypedGuard (T_ &&g, char const *name=nullptr)
 
virtual GuardPollInterval enabled (BasicFsm &fsm) const final
 
virtual cow_string name () const final
 
- 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::Guard
constexpr Guard ()=default
 
 ~Guard ()=default
 
 Guard (Guard &&) noexcept=default
 
Guardoperator= (Guard &&) noexcept=default
 

Detailed Description

template<typename T>
class zth::fsm::TypedGuard< T >

Definition at line 459 of file fsm14.h.

Member Typedef Documentation

◆ Callback_type

template<typename T >
using zth::fsm::TypedGuard< T >::Callback_type = Callback<T, GuardPollInterval>

Definition at line 464 of file fsm14.h.

Constructor & Destructor Documentation

◆ TypedGuard()

template<typename T >
template<typename T_ >
constexpr zth::fsm::TypedGuard< T >::TypedGuard ( T_ &&  g,
char const *  name = nullptr 
)
inlineexplicitconstexpr

Definition at line 467 of file fsm14.h.

Member Function Documentation

◆ enabled()

template<typename T >
virtual GuardPollInterval zth::fsm::TypedGuard< T >::enabled ( BasicFsm fsm) const
inlinefinalvirtual

Implements zth::fsm::Guard.

Definition at line 471 of file fsm14.h.

◆ name()

template<typename T >
virtual cow_string zth::fsm::TypedGuard< T >::name ( ) const
inlinefinalvirtual

Implements zth::fsm::Guard.

Definition at line 476 of file fsm14.h.


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