All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes
asio::detail::timer_queue< Time_Traits > Class Template Reference

#include <timer_queue.hpp>

Inheritance diagram for asio::detail::timer_queue< Time_Traits >:
Inheritance graph
[legend]

List of all members.

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_basecancelled_timers_
timer_basecomplete_timers_
std::vector< timer_base * > heap_
hash_map< void *, timer_base * > timers_

Detailed Description

template<typename Time_Traits>
class asio::detail::timer_queue< Time_Traits >

Definition at line 39 of file timer_queue.hpp.


Member Typedef Documentation

template<typename Time_Traits>
typedef Time_Traits::duration_type asio::detail::timer_queue< Time_Traits >::duration_type

Definition at line 47 of file timer_queue.hpp.

template<typename Time_Traits>
typedef Time_Traits::time_type asio::detail::timer_queue< Time_Traits >::time_type

Definition at line 44 of file timer_queue.hpp.


Constructor & Destructor Documentation

template<typename Time_Traits>
asio::detail::timer_queue< Time_Traits >::timer_queue ( ) [inline]

Definition at line 50 of file timer_queue.hpp.


Member Function Documentation

template<typename Time_Traits>
std::size_t asio::detail::timer_queue< Time_Traits >::cancel_timer ( void *  timer_token) [inline]

Definition at line 130 of file timer_queue.hpp.

template<typename Time_Traits>
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.

template<typename Time_Traits>
void asio::detail::timer_queue< Time_Traits >::destroy_timer_list ( timer_base *&  t) [inline, private]

Definition at line 407 of file timer_queue.hpp.

template<typename Time_Traits>
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.

template<typename Time_Traits>
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.

template<typename Time_Traits>
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.

template<typename Time_Traits>
void asio::detail::timer_queue< Time_Traits >::down_heap ( size_t  index) [inline, private]

Definition at line 339 of file timer_queue.hpp.

template<typename Time_Traits>
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.

template<typename Time_Traits>
template<typename Handler >
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.

template<typename Time_Traits>
void asio::detail::timer_queue< Time_Traits >::remove_timer ( timer_base t) [inline, private]

Definition at line 367 of file timer_queue.hpp.

template<typename Time_Traits>
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.

template<typename Time_Traits>
void asio::detail::timer_queue< Time_Traits >::up_heap ( size_t  index) [inline, private]

Definition at line 326 of file timer_queue.hpp.

template<typename Time_Traits>
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.


Member Data Documentation

template<typename Time_Traits>
timer_base* asio::detail::timer_queue< Time_Traits >::cancelled_timers_ [private]

Definition at line 425 of file timer_queue.hpp.

template<typename Time_Traits>
timer_base* asio::detail::timer_queue< Time_Traits >::complete_timers_ [private]

Definition at line 428 of file timer_queue.hpp.

template<typename Time_Traits>
std::vector<timer_base*> asio::detail::timer_queue< Time_Traits >::heap_ [private]

Definition at line 422 of file timer_queue.hpp.

template<typename Time_Traits>
hash_map<void*, timer_base*> asio::detail::timer_queue< Time_Traits >::timers_ [private]

Definition at line 419 of file timer_queue.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Castor
Author(s): Carpe Noctem
autogenerated on Fri Nov 8 2013 11:05:41