asio 0.3.7 Home | Reference | Tutorial | Examples | Design
Reference Class Hierarchy | Class Index | Member Index

asio::deadline_timer_service< Time_Type, Time_Traits > Class Template Reference

Inherits asio::io_service::service.

Inheritance diagram for asio::deadline_timer_service< Time_Type, Time_Traits >:

Inheritance graph
List of all members.

Detailed Description

template<typename Time_Type, typename Time_Traits = asio::time_traits<Time_Type>>
class asio::deadline_timer_service< Time_Type, Time_Traits >

Default service implementation for a timer.


Public Types

typedef Time_Traits traits_type
 The time traits type.
typedef traits_type::time_type time_type
 The time type.
typedef traits_type::duration_type duration_type
 The duration type.
typedef implementation_defined implementation_type
 The implementation type of the deadline timer.

Public Member Functions

 deadline_timer_service (asio::io_service &io_service)
 Construct a new timer service for the specified io_service.
void shutdown_service ()
 Destroy all user-defined handler objects owned by the service.
void construct (implementation_type &impl)
 Construct a new timer implementation.
void destroy (implementation_type &impl)
 Destroy a timer implementation.
std::size_t cancel (implementation_type &impl)
 Cancel any asynchronous wait operations associated with the timer.
time_type expires_at (const implementation_type &impl) const
 Get the expiry time for the timer as an absolute time.
std::size_t expires_at (implementation_type &impl, const time_type &expiry_time)
 Set the expiry time for the timer as an absolute time.
duration_type expires_from_now (const implementation_type &impl) const
 Get the expiry time for the timer relative to now.
std::size_t expires_from_now (implementation_type &impl, const duration_type &expiry_time)
 Set the expiry time for the timer relative to now.
io_serviceowner ()
 Get the io_service object that owns the service.


Member Typedef Documentation

template<typename Time_Type, typename Time_Traits = asio::time_traits<Time_Type>>
typedef Time_Traits asio::deadline_timer_service< Time_Type, Time_Traits >::traits_type

The time traits type.

template<typename Time_Type, typename Time_Traits = asio::time_traits<Time_Type>>
typedef traits_type::time_type asio::deadline_timer_service< Time_Type, Time_Traits >::time_type

The time type.

template<typename Time_Type, typename Time_Traits = asio::time_traits<Time_Type>>
typedef traits_type::duration_type asio::deadline_timer_service< Time_Type, Time_Traits >::duration_type

The duration type.

template<typename Time_Type, typename Time_Traits = asio::time_traits<Time_Type>>
typedef implementation_defined asio::deadline_timer_service< Time_Type, Time_Traits >::implementation_type

The implementation type of the deadline timer.


Constructor & Destructor Documentation

template<typename Time_Type, typename Time_Traits = asio::time_traits<Time_Type>>
asio::deadline_timer_service< Time_Type, Time_Traits >::deadline_timer_service ( asio::io_service io_service  )  [explicit]

Construct a new timer service for the specified io_service.


Member Function Documentation

template<typename Time_Type, typename Time_Traits = asio::time_traits<Time_Type>>
void asio::deadline_timer_service< Time_Type, Time_Traits >::shutdown_service (  )  [virtual]

Destroy all user-defined handler objects owned by the service.

Implements asio::io_service::service.

template<typename Time_Type, typename Time_Traits = asio::time_traits<Time_Type>>
void asio::deadline_timer_service< Time_Type, Time_Traits >::construct ( implementation_type impl  ) 

Construct a new timer implementation.

template<typename Time_Type, typename Time_Traits = asio::time_traits<Time_Type>>
void asio::deadline_timer_service< Time_Type, Time_Traits >::destroy ( implementation_type impl  ) 

Destroy a timer implementation.

template<typename Time_Type, typename Time_Traits = asio::time_traits<Time_Type>>
std::size_t asio::deadline_timer_service< Time_Type, Time_Traits >::cancel ( implementation_type impl  ) 

Cancel any asynchronous wait operations associated with the timer.

template<typename Time_Type, typename Time_Traits = asio::time_traits<Time_Type>>
time_type asio::deadline_timer_service< Time_Type, Time_Traits >::expires_at ( const implementation_type impl  )  const

Get the expiry time for the timer as an absolute time.

template<typename Time_Type, typename Time_Traits = asio::time_traits<Time_Type>>
std::size_t asio::deadline_timer_service< Time_Type, Time_Traits >::expires_at ( implementation_type impl,
const time_type expiry_time 
)

Set the expiry time for the timer as an absolute time.

template<typename Time_Type, typename Time_Traits = asio::time_traits<Time_Type>>
duration_type asio::deadline_timer_service< Time_Type, Time_Traits >::expires_from_now ( const implementation_type impl  )  const

Get the expiry time for the timer relative to now.

template<typename Time_Type, typename Time_Traits = asio::time_traits<Time_Type>>
std::size_t asio::deadline_timer_service< Time_Type, Time_Traits >::expires_from_now ( implementation_type impl,
const duration_type expiry_time 
)

Set the expiry time for the timer relative to now.

io_service & asio::io_service::service::owner (  )  [inherited]

Get the io_service object that owns the service.

asio 0.3.7 Home | Reference | Tutorial | Examples | Design