#include <timer_queue.hpp>
Classes | |
class | timer |
class | timer_base |
Public Types | |
typedef Time_Traits::duration_type | duration_type |
typedef Time_Traits::time_type | time_type |
Public Member Functions | |
std::size_t | cancel_timer (void *timer_token) |
virtual void | complete_timers () |
virtual void | destroy_timers () |
virtual void | dispatch_cancellations () |
virtual void | dispatch_timers () |
virtual bool | empty () const |
template<typename Handler > | |
bool | enqueue_timer (const time_type &time, Handler handler, void *token) |
timer_queue () | |
virtual boost::posix_time::time_duration | wait_duration () const |
Private Member Functions | |
void | destroy_timer_list (timer_base *&t) |
void | down_heap (size_t index) |
void | remove_timer (timer_base *t) |
void | swap_heap (size_t index1, size_t index2) |
void | up_heap (size_t index) |
Private Attributes | |
timer_base * | cancelled_timers_ |
timer_base * | complete_timers_ |
std::vector< timer_base * > | heap_ |
hash_map< void *, timer_base * > | timers_ |
Definition at line 39 of file timer_queue.hpp.
typedef Time_Traits::duration_type asio::detail::timer_queue< Time_Traits >::duration_type |
Definition at line 47 of file timer_queue.hpp.
typedef Time_Traits::time_type asio::detail::timer_queue< Time_Traits >::time_type |
Definition at line 44 of file timer_queue.hpp.
asio::detail::timer_queue< Time_Traits >::timer_queue | ( | ) | [inline] |
Definition at line 50 of file timer_queue.hpp.
std::size_t asio::detail::timer_queue< Time_Traits >::cancel_timer | ( | void * | timer_token | ) | [inline] |
Definition at line 130 of file timer_queue.hpp.
virtual void asio::detail::timer_queue< Time_Traits >::complete_timers | ( | ) | [inline, virtual] |
Implements asio::detail::timer_queue_base.
Definition at line 166 of file timer_queue.hpp.
void asio::detail::timer_queue< Time_Traits >::destroy_timer_list | ( | timer_base *& | t | ) | [inline, private] |
Definition at line 407 of file timer_queue.hpp.
virtual void asio::detail::timer_queue< Time_Traits >::destroy_timers | ( | ) | [inline, virtual] |
Implements asio::detail::timer_queue_base.
Definition at line 178 of file timer_queue.hpp.
virtual void asio::detail::timer_queue< Time_Traits >::dispatch_cancellations | ( | ) | [inline, virtual] |
Implements asio::detail::timer_queue_base.
Definition at line 153 of file timer_queue.hpp.
virtual void asio::detail::timer_queue< Time_Traits >::dispatch_timers | ( | ) | [inline, virtual] |
Implements asio::detail::timer_queue_base.
Definition at line 112 of file timer_queue.hpp.
void asio::detail::timer_queue< Time_Traits >::down_heap | ( | size_t | index | ) | [inline, private] |
Definition at line 339 of file timer_queue.hpp.
virtual bool asio::detail::timer_queue< Time_Traits >::empty | ( | ) | const [inline, virtual] |
Implements asio::detail::timer_queue_base.
Definition at line 97 of file timer_queue.hpp.
bool asio::detail::timer_queue< Time_Traits >::enqueue_timer | ( | const time_type & | time, |
Handler | handler, | ||
void * | token | ||
) | [inline] |
Definition at line 62 of file timer_queue.hpp.
void asio::detail::timer_queue< Time_Traits >::remove_timer | ( | timer_base * | t | ) | [inline, private] |
Definition at line 367 of file timer_queue.hpp.
void asio::detail::timer_queue< Time_Traits >::swap_heap | ( | size_t | index1, |
size_t | index2 | ||
) | [inline, private] |
Definition at line 357 of file timer_queue.hpp.
void asio::detail::timer_queue< Time_Traits >::up_heap | ( | size_t | index | ) | [inline, private] |
Definition at line 326 of file timer_queue.hpp.
virtual boost::posix_time::time_duration asio::detail::timer_queue< Time_Traits >::wait_duration | ( | ) | const [inline, virtual] |
Implements asio::detail::timer_queue_base.
Definition at line 103 of file timer_queue.hpp.
timer_base* asio::detail::timer_queue< Time_Traits >::cancelled_timers_ [private] |
Definition at line 425 of file timer_queue.hpp.
timer_base* asio::detail::timer_queue< Time_Traits >::complete_timers_ [private] |
Definition at line 428 of file timer_queue.hpp.
std::vector<timer_base*> asio::detail::timer_queue< Time_Traits >::heap_ [private] |
Definition at line 422 of file timer_queue.hpp.
hash_map<void*, timer_base*> asio::detail::timer_queue< Time_Traits >::timers_ [private] |
Definition at line 419 of file timer_queue.hpp.