ACE
6.1.0
|
Template class implementing a dynamic time policy based on another time policy. More...
#include <Time_Policy_T.h>
Public Member Functions | |
ACE_Time_Policy_T (TIME_POLICY const &time_policy=TIME_POLICY()) | |
virtual | ~ACE_Time_Policy_T () |
ACE_Time_Value | operator() () const |
Return the current time according to this policy. | |
void | set_time_policy (TIME_POLICY const &time_policy) |
void | set_gettimeofday (ACE_Time_Value(*gettimeofday)(void)) |
Noop. Just here to satisfy backwards compatibility demands. | |
Protected Member Functions | |
virtual ACE_Time_Value | gettimeofday () const |
Return the current time according to policy implementation. | |
Private Attributes | |
TIME_POLICY | time_policy_ |
The policy to return the current time of day. |
Template class implementing a dynamic time policy based on another time policy.
ACE_Time_Policy_T< TIME_POLICY >::ACE_Time_Policy_T | ( | TIME_POLICY const & | time_policy = TIME_POLICY() | ) | [inline] |
ACE_Time_Policy_T< TIME_POLICY >::~ACE_Time_Policy_T | ( | ) | [inline, virtual] |
ACE_Time_Value ACE_Time_Policy_T< TIME_POLICY >::gettimeofday | ( | void | ) | const [inline, protected, virtual] |
Return the current time according to policy implementation.
Implements ACE_Dynamic_Time_Policy_Base.
ACE_Time_Value ACE_Time_Policy_T< TIME_POLICY >::operator() | ( | ) | const [inline] |
Return the current time according to this policy.
Reimplemented from ACE_Dynamic_Time_Policy_Base.
void ACE_Time_Policy_T< TIME_POLICY >::set_gettimeofday | ( | ACE_Time_Value(*)(void) | gettimeofday | ) | [inline] |
Noop. Just here to satisfy backwards compatibility demands.
Reimplemented from ACE_Dynamic_Time_Policy_Base.
void ACE_Time_Policy_T< TIME_POLICY >::set_time_policy | ( | TIME_POLICY const & | time_policy | ) | [inline] |
Allows applications to control how the timer queue gets the time of day.
TIME_POLICY ACE_Time_Policy_T< TIME_POLICY >::time_policy_ [private] |
The policy to return the current time of day.