Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
toolbox::io::TimerQueue Class Reference

#include <toolbox/io/Timer.hpp>

Public Member Functions

 TimerQueue (TimerPool &pool)
 
 ~TimerQueue () noexcept=default
 
 TimerQueue (const TimerQueue &)=delete
 
TimerQueueoperator= (const TimerQueue &)=delete
 
 TimerQueue (TimerQueue &&)=delete
 
TimerQueueoperator= (TimerQueue &&)=delete
 
std::size_t size () const noexcept
 
bool empty () const noexcept
 
const Timerfront () const
 
Timer insert (MonoTime expiry, Duration interval, TimerSlot slot)
 Throws std::bad_alloc only.
 
Timer insert (MonoTime expiry, TimerSlot slot)
 Throws std::bad_alloc only.
 
int dispatch (CyclTime now)
 

Friends

class Timer
 
void intrusive_ptr_add_ref (Timer::Impl *) noexcept
 
void intrusive_ptr_release (Timer::Impl *) noexcept
 

Detailed Description

Definition at line 132 of file Timer.hpp.

Constructor & Destructor Documentation

◆ TimerQueue() [1/3]

toolbox::io::TimerQueue::TimerQueue ( TimerPool pool)
inline

Implicit conversion from pool is allowed, so that TimerQueue arrays can be aggregate initialised.

Definition at line 142 of file Timer.hpp.

◆ ~TimerQueue()

toolbox::io::TimerQueue::~TimerQueue ( )
defaultnoexcept

◆ TimerQueue() [2/3]

toolbox::io::TimerQueue::TimerQueue ( const TimerQueue )
delete

◆ TimerQueue() [3/3]

toolbox::io::TimerQueue::TimerQueue ( TimerQueue &&  )
delete

Member Function Documentation

◆ operator=() [1/2]

TimerQueue & toolbox::io::TimerQueue::operator= ( const TimerQueue )
delete

◆ operator=() [2/2]

TimerQueue & toolbox::io::TimerQueue::operator= ( TimerQueue &&  )
delete

◆ size()

std::size_t toolbox::io::TimerQueue::size ( ) const
inlinenoexcept

Definition at line 156 of file Timer.hpp.

◆ empty()

bool toolbox::io::TimerQueue::empty ( ) const
inlinenoexcept

Definition at line 157 of file Timer.hpp.

◆ front()

const Timer & toolbox::io::TimerQueue::front ( ) const
inline

Definition at line 158 of file Timer.hpp.

◆ insert() [1/2]

Timer toolbox::io::TimerQueue::insert ( MonoTime  expiry,
Duration  interval,
TimerSlot  slot 
)

Throws std::bad_alloc only.

Definition at line 65 of file Timer.cpp.

◆ insert() [2/2]

Timer toolbox::io::TimerQueue::insert ( MonoTime  expiry,
TimerSlot  slot 
)
inline

Throws std::bad_alloc only.

Definition at line 164 of file Timer.hpp.

◆ dispatch()

int toolbox::io::TimerQueue::dispatch ( CyclTime  now)

Definition at line 79 of file Timer.cpp.

Friends And Related Symbol Documentation

◆ Timer

friend class Timer
friend

Definition at line 133 of file Timer.hpp.

◆ intrusive_ptr_add_ref

void intrusive_ptr_add_ref ( Timer::Impl impl)
friend

Definition at line 186 of file Timer.hpp.

◆ intrusive_ptr_release

void intrusive_ptr_release ( Timer::Impl )
friend

Definition at line 181 of file Timer.cpp.


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