ACE
6.1.0
|
#include <Time_Policy.h>
Public Types | |
typedef ACE_Time_Value(* | FPtr )() |
Public Member Functions | |
ACE_FPointer_Time_Policy () | |
Default constructor uses ACE_OS::gettimeofday() | |
ACE_FPointer_Time_Policy (FPtr f) | |
Constructor from a pointer to function. | |
ACE_Time_Value | operator() () const |
Return the current time according to this policy. | |
void | set_gettimeofday (ACE_Time_Value(*gettimeofday)(void)) |
Satisfy backwards compatibility demands. | |
Private Attributes | |
FPtr | function_ |
Short-hand for the right type of pointer to function.
ACE_FPointer_Time_Policy::ACE_FPointer_Time_Policy | ( | ) | [inline] |
Default constructor uses ACE_OS::gettimeofday()
ACE_T requires a default constructor that leaves the policy in a functional state. Therefore, a null pointer would not be desirable, in other words, we need a non-trivial default constructor.
ACE_FPointer_Time_Policy::ACE_FPointer_Time_Policy | ( | ACE_FPointer_Time_Policy::FPtr | f | ) | [inline] |
Constructor from a pointer to function.
Construct from a pointer to function.
ACE_Time_Value ACE_FPointer_Time_Policy::operator() | ( | ) | const [inline] |
Return the current time according to this policy.
void ACE_FPointer_Time_Policy::set_gettimeofday | ( | ACE_Time_Value(*)(void) | gettimeofday | ) | [inline] |
Satisfy backwards compatibility demands.
FPtr ACE_FPointer_Time_Policy::function_ [private] |