Zth (libzth)
zth::fsm::GuardPollInterval Class Reference

#include <fsm14.h>

Inheritance diagram for zth::fsm::GuardPollInterval:
zth::TimeInterval

Public Member Functions

constexpr GuardPollInterval (bool enabled=false)
 
constexpr GuardPollInterval (GuardPollInterval &&) noexcept=default
 
GuardPollIntervaloperator= (GuardPollInterval &&) noexcept=default
 
constexpr GuardPollInterval (GuardPollInterval const &) noexcept=default
 
GuardPollIntervaloperator= (GuardPollInterval const &) noexcept=default
 
template<typename... A>
constexpr GuardPollInterval (A &&... a) noexcept
 
constexpr operator bool () const noexcept
 
- Public Member Functions inherited from zth::TimeInterval
constexpr TimeInterval () noexcept
 
constexpr TimeInterval (time_t s, long ns=0, bool negative=false) noexcept
 
constexpr TimeInterval (struct timespec const &ts) noexcept
 
TimeIntervaloperator= (TimeInterval const &t) noexcept
 
constexpr TimeInterval (TimeInterval const &t) noexcept
 
 TimeInterval (float dt)
 
 TimeInterval (double dt)
 
 TimeInterval (long double dt)
 
template<typename T >
constexpr TimeInterval (T dt) noexcept
 
constexpr bool isNormal () const noexcept
 
constexpr bool isNegative () const noexcept
 
constexpr bool isPositive () const noexcept
 
constexpr bool isNull () const noexcept
 
constexpr bool isInfinite () const noexcept
 
constexpr bool hasPassed () const noexcept
 
constexpr struct timespec const & ts () const noexcept
 
constexpr double s () const noexcept
 
template<typename T >
constexpr T s () const noexcept
 
constexpr bool isAbsBiggerThan (TimeInterval const &t) const noexcept
 
constexpr bool isBiggerThan (TimeInterval const &t) const noexcept
 
constexpr bool operator== (TimeInterval const &rhs) const noexcept
 
constexpr bool operator> (TimeInterval const &rhs) const noexcept
 
constexpr bool operator>= (TimeInterval const &rhs) const noexcept
 
constexpr bool operator< (TimeInterval const &rhs) const noexcept
 
constexpr bool operator<= (TimeInterval const &rhs) const noexcept
 
constexpr void add (TimeInterval const &t) noexcept
 
constexpr void sub (TimeInterval const &t) noexcept
 
template<typename T >
constexpr void mul (T x) noexcept
 
constexpr TimeIntervaloperator+= (TimeInterval const &rhs) noexcept
 
constexpr TimeInterval operator+ (TimeInterval const &rhs) const noexcept
 
constexpr TimeIntervaloperator-= (TimeInterval const &rhs) noexcept
 
constexpr TimeInterval operator- (TimeInterval const &rhs) const noexcept
 
constexpr TimeInterval operator- () const noexcept
 
template<typename T >
constexpr TimeIntervaloperator*= (T x) noexcept
 
template<typename T >
constexpr TimeInterval operator* (T x) const noexcept
 
template<typename T >
constexpr TimeIntervaloperator/= (T x) noexcept
 
template<typename T >
constexpr TimeInterval operator/ (T x) const noexcept
 
string str () const
 

Additional Inherited Members

- Static Public Member Functions inherited from zth::TimeInterval
constexpr static TimeInterval infinity () noexcept
 
constexpr static TimeInterval null () noexcept
 
template<typename T >
static constexpr TimeInterval from_s (T s)
 
template<typename T >
static constexpr TimeInterval from_ms (T ms)
 
template<typename T >
static constexpr TimeInterval from_us (T us)
 
template<typename T >
static constexpr TimeInterval from_ns (T ns)
 
- Static Public Attributes inherited from zth::TimeInterval
static long const BILLION = 1000000000L
 

Detailed Description

Definition at line 414 of file fsm14.h.

Constructor & Destructor Documentation

◆ GuardPollInterval() [1/4]

constexpr zth::fsm::GuardPollInterval::GuardPollInterval ( bool  enabled = false)
inlineconstexpr

Definition at line 417 of file fsm14.h.

◆ GuardPollInterval() [2/4]

constexpr zth::fsm::GuardPollInterval::GuardPollInterval ( GuardPollInterval &&  )
constexprdefaultnoexcept

◆ GuardPollInterval() [3/4]

constexpr zth::fsm::GuardPollInterval::GuardPollInterval ( GuardPollInterval const &  )
constexprdefaultnoexcept

◆ GuardPollInterval() [4/4]

template<typename... A>
constexpr zth::fsm::GuardPollInterval::GuardPollInterval ( A &&...  a)
inlineconstexprnoexcept

Definition at line 427 of file fsm14.h.

Member Function Documentation

◆ operator bool()

constexpr zth::fsm::GuardPollInterval::operator bool ( ) const
inlineconstexprnoexcept

Definition at line 431 of file fsm14.h.

◆ operator=() [1/2]

GuardPollInterval& zth::fsm::GuardPollInterval::operator= ( GuardPollInterval &&  )
defaultnoexcept

◆ operator=() [2/2]

GuardPollInterval& zth::fsm::GuardPollInterval::operator= ( GuardPollInterval const &  )
defaultnoexcept

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