#include <deadline_timer_service.hpp>

Public Types | |
| typedef TimeTraits | 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 service_impl_type::implementation_type | 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, asio::error_code &ec) |
| 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, asio::error_code &ec) |
| 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, asio::error_code &ec) |
| Set the expiry time for the timer relative to now. | |
| void | wait (implementation_type &impl, asio::error_code &ec) |
| template<typename WaitHandler> | |
| void | async_wait (implementation_type &impl, WaitHandler handler) |
Private Types | |
| typedef detail::deadline_timer_service < traits_type, detail::select_reactor< false > > | service_impl_type |
Private Attributes | |
| service_impl_type & | service_impl_ |
Definition at line 38 of file deadline_timer_service.hpp.
| typedef TimeTraits asio::deadline_timer_service< TimeType, TimeTraits >::traits_type |
| typedef traits_type::time_type asio::deadline_timer_service< TimeType, TimeTraits >::time_type |
| typedef traits_type::duration_type asio::deadline_timer_service< TimeType, TimeTraits >::duration_type |
typedef detail::deadline_timer_service< traits_type, detail::select_reactor<false> > asio::deadline_timer_service< TimeType, TimeTraits >::service_impl_type [private] |
Definition at line 74 of file deadline_timer_service.hpp.
| typedef service_impl_type::implementation_type asio::deadline_timer_service< TimeType, TimeTraits >::implementation_type |
The implementation type of the deadline timer.
Definition at line 82 of file deadline_timer_service.hpp.
| asio::deadline_timer_service< TimeType, TimeTraits >::deadline_timer_service | ( | asio::io_service & | io_service | ) | [inline, explicit] |
Construct a new timer service for the specified io_service.
Definition at line 86 of file deadline_timer_service.hpp.
| void asio::deadline_timer_service< TimeType, TimeTraits >::shutdown_service | ( | ) | [inline, virtual] |
Destroy all user-defined handler objects owned by the service.
Implements asio::io_service::service.
Definition at line 94 of file deadline_timer_service.hpp.
| void asio::deadline_timer_service< TimeType, TimeTraits >::construct | ( | implementation_type & | impl | ) | [inline] |
Construct a new timer implementation.
Definition at line 99 of file deadline_timer_service.hpp.
References asio::detail::deadline_timer_service< Time_Traits, Timer_Scheduler >::construct(), and asio::deadline_timer_service< TimeType, TimeTraits >::service_impl_.
| void asio::deadline_timer_service< TimeType, TimeTraits >::destroy | ( | implementation_type & | impl | ) | [inline] |
Destroy a timer implementation.
Definition at line 105 of file deadline_timer_service.hpp.
References asio::detail::deadline_timer_service< Time_Traits, Timer_Scheduler >::destroy(), and asio::deadline_timer_service< TimeType, TimeTraits >::service_impl_.
| std::size_t asio::deadline_timer_service< TimeType, TimeTraits >::cancel | ( | implementation_type & | impl, | |
| asio::error_code & | ec | |||
| ) | [inline] |
Cancel any asynchronous wait operations associated with the timer.
Definition at line 111 of file deadline_timer_service.hpp.
References asio::detail::deadline_timer_service< Time_Traits, Timer_Scheduler >::cancel(), and asio::deadline_timer_service< TimeType, TimeTraits >::service_impl_.
| time_type asio::deadline_timer_service< TimeType, TimeTraits >::expires_at | ( | const implementation_type & | impl | ) | const [inline] |
Get the expiry time for the timer as an absolute time.
Definition at line 117 of file deadline_timer_service.hpp.
References asio::detail::deadline_timer_service< Time_Traits, Timer_Scheduler >::expires_at(), and asio::deadline_timer_service< TimeType, TimeTraits >::service_impl_.
| std::size_t asio::deadline_timer_service< TimeType, TimeTraits >::expires_at | ( | implementation_type & | impl, | |
| const time_type & | expiry_time, | |||
| asio::error_code & | ec | |||
| ) | [inline] |
Set the expiry time for the timer as an absolute time.
Definition at line 123 of file deadline_timer_service.hpp.
References asio::detail::deadline_timer_service< Time_Traits, Timer_Scheduler >::expires_at(), and asio::deadline_timer_service< TimeType, TimeTraits >::service_impl_.
| duration_type asio::deadline_timer_service< TimeType, TimeTraits >::expires_from_now | ( | const implementation_type & | impl | ) | const [inline] |
Get the expiry time for the timer relative to now.
Definition at line 130 of file deadline_timer_service.hpp.
References asio::detail::deadline_timer_service< Time_Traits, Timer_Scheduler >::expires_from_now(), and asio::deadline_timer_service< TimeType, TimeTraits >::service_impl_.
| std::size_t asio::deadline_timer_service< TimeType, TimeTraits >::expires_from_now | ( | implementation_type & | impl, | |
| const duration_type & | expiry_time, | |||
| asio::error_code & | ec | |||
| ) | [inline] |
Set the expiry time for the timer relative to now.
Definition at line 136 of file deadline_timer_service.hpp.
References asio::detail::deadline_timer_service< Time_Traits, Timer_Scheduler >::expires_from_now(), and asio::deadline_timer_service< TimeType, TimeTraits >::service_impl_.
| void asio::deadline_timer_service< TimeType, TimeTraits >::wait | ( | implementation_type & | impl, | |
| asio::error_code & | ec | |||
| ) | [inline] |
Definition at line 143 of file deadline_timer_service.hpp.
References asio::deadline_timer_service< TimeType, TimeTraits >::service_impl_, and asio::detail::deadline_timer_service< Time_Traits, Timer_Scheduler >::wait().
| void asio::deadline_timer_service< TimeType, TimeTraits >::async_wait | ( | implementation_type & | impl, | |
| WaitHandler | handler | |||
| ) | [inline] |
Definition at line 150 of file deadline_timer_service.hpp.
References asio::detail::deadline_timer_service< Time_Traits, Timer_Scheduler >::async_wait(), and asio::deadline_timer_service< TimeType, TimeTraits >::service_impl_.
service_impl_type& asio::deadline_timer_service< TimeType, TimeTraits >::service_impl_ [private] |
Definition at line 157 of file deadline_timer_service.hpp.
Referenced by asio::deadline_timer_service< TimeType, TimeTraits >::async_wait(), asio::deadline_timer_service< TimeType, TimeTraits >::cancel(), asio::deadline_timer_service< TimeType, TimeTraits >::construct(), asio::deadline_timer_service< TimeType, TimeTraits >::destroy(), asio::deadline_timer_service< TimeType, TimeTraits >::expires_at(), asio::deadline_timer_service< TimeType, TimeTraits >::expires_from_now(), and asio::deadline_timer_service< TimeType, TimeTraits >::wait().
1.5.6