Zth (libzth)
zth::PolledMemberWaiting< C > Class Template Reference

#include <waiter.h>

Inheritance diagram for zth::PolledMemberWaiting< C >:
zth::PolledWaiting< PolledMemberWaitingHelper< C > > zth::TimedWaitable zth::Waitable zth::Listable< TimedWaitable >

Public Types

typedef PolledWaiting< PolledMemberWaitingHelper< C > > base
 
- Public Types inherited from zth::Listable< TimedWaitable >
typedef TimedWaitable type
 

Public Member Functions

constexpr PolledMemberWaiting (C &that, bool(C::*f)(), TimeInterval const &interval=TimeInterval()) noexcept
 
virtual ~PolledMemberWaiting () override=default
 
- Public Member Functions inherited from zth::PolledWaiting< PolledMemberWaitingHelper< C > >
 PolledWaiting (PolledMemberWaitingHelper< C > const &f, TimeInterval const &interval=TimeInterval())
 
virtual ~PolledWaiting () override=default
 
virtual bool poll (Timestamp const &now=Timestamp::now()) noexcept override
 
TimeInterval const & interval () const noexcept
 
void setInterval (TimeInterval const &interval, Timestamp const &now=Timestamp::now()) noexcept
 
- Public Member Functions inherited from zth::TimedWaitable
 TimedWaitable (Timestamp const &timeout=Timestamp()) noexcept
 
virtual ~TimedWaitable () override=default
 
Timestamp const & timeout () const noexcept
 
bool operator< (TimedWaitable const &rhs) const noexcept
 
virtual string str () const override
 
- Public Member Functions inherited from zth::Waitable
 Waitable () noexcept
 
virtual ~Waitable ()=default
 
Fiberfiber () const noexcept
 
void setFiber (Fiber &fiber) noexcept
 
void resetFiber () noexcept
 
bool hasFiber () const noexcept
 
- Public Member Functions inherited from zth::Listable< TimedWaitable >
constexpr Listable () noexcept
 
constexpr Listable (Listable const &e) noexcept
 
 Listable (Listable &&l) noexcept
 
Listableoperator= (Listable const &rhs) noexcept
 
Listableoperator= (Listable &&l) noexcept
 
typelistNext () const noexcept
 
typelistPrev () const noexcept
 

Additional Inherited Members

- Public Attributes inherited from zth::Listable< TimedWaitable >
Listableprev
 
Listableleft
 
Listablenext
 
Listableright
 
- Protected Member Functions inherited from zth::TimedWaitable
void setTimeout (Timestamp const &t) noexcept
 

Detailed Description

template<typename C>
class zth::PolledMemberWaiting< C >

Definition at line 179 of file waiter.h.

Member Typedef Documentation

◆ base

template<typename C >
typedef PolledWaiting<PolledMemberWaitingHelper<C> > zth::PolledMemberWaiting< C >::base

Definition at line 182 of file waiter.h.

Constructor & Destructor Documentation

◆ PolledMemberWaiting()

template<typename C >
constexpr zth::PolledMemberWaiting< C >::PolledMemberWaiting ( C &  that,
bool(C::*)()  f,
TimeInterval const &  interval = TimeInterval() 
)
inlineconstexprnoexcept

Definition at line 184 of file waiter.h.

◆ ~PolledMemberWaiting()

template<typename C >
virtual zth::PolledMemberWaiting< C >::~PolledMemberWaiting ( )
overridevirtualdefault

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