ACE
6.1.0
|
Implement a time policy that delegates to a dynamic time policy. More...
#include <Time_Policy.h>
Classes | |
class | NULL_Time_Policy |
Public Member Functions | |
ACE_Delegating_Time_Policy (ACE_Dynamic_Time_Policy_Base const *delegate=0) | |
ACE_Time_Value | operator() () const |
Return the current time according to this policy. | |
void | set_delegate (ACE_Dynamic_Time_Policy_Base const *delegate) |
Set delegate. | |
ACE_Delegating_Time_Policy & | operator= (ACE_Delegating_Time_Policy const &pol) |
Copy policy. | |
void | set_gettimeofday (ACE_Time_Value(*gettimeofday)(void)) |
Noop. Just here to satisfy backwards compatibility demands. | |
Private Attributes | |
ACE_Dynamic_Time_Policy_Base const * | delegate_ |
Static Private Attributes | |
static NULL_Time_Policy | null_policy_ |
Implement a time policy that delegates to a dynamic time policy.
ACE_Delegating_Time_Policy::ACE_Delegating_Time_Policy | ( | ACE_Dynamic_Time_Policy_Base const * | delegate = 0 | ) | [inline] |
ACE_Time_Value ACE_Delegating_Time_Policy::operator() | ( | ) | const [inline] |
Return the current time according to this policy.
ACE_Delegating_Time_Policy & ACE_Delegating_Time_Policy::operator= | ( | ACE_Delegating_Time_Policy const & | pol | ) | [inline] |
Copy policy.
void ACE_Delegating_Time_Policy::set_delegate | ( | ACE_Dynamic_Time_Policy_Base const * | delegate | ) | [inline] |
Set delegate.
void ACE_Delegating_Time_Policy::set_gettimeofday | ( | ACE_Time_Value(*)(void) | gettimeofday | ) | [inline] |
Noop. Just here to satisfy backwards compatibility demands.
ACE_Dynamic_Time_Policy_Base const* ACE_Delegating_Time_Policy::delegate_ [private] |
ACE_Delegating_Time_Policy::NULL_Time_Policy ACE_Delegating_Time_Policy::null_policy_ [static, private] |