ACE  6.2.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Private Attributes | List of all members
ACE_FPointer_Time_Policy Class Reference

#include <Time_Policy.h>

Collaboration diagram for ACE_FPointer_Time_Policy:
Collaboration graph
[legend]

Public Types

typedef ACE_Time_Value(* FPtr )()
 

Public Member Functions

 ACE_FPointer_Time_Policy ()
 Default constructor uses ACE_OS::gettimeofday() More...
 
 ACE_FPointer_Time_Policy (FPtr f)
 Constructor from a pointer to function. More...
 
ACE_Time_Value_T
< ACE_FPointer_Time_Policy
operator() () const
 Return the current time according to this policy. More...
 
void set_gettimeofday (ACE_Time_Value(*gettimeofday)(void))
 Satisfy backwards compatibility demands. More...
 

Private Attributes

FPtr function_
 

Member Typedef Documentation

ACE_FPointer_Time_Policy::FPtr

Short-hand for the right type of pointer to function.

Constructor & Destructor Documentation

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.

Member Function Documentation

ACE_Time_Value_T< ACE_FPointer_Time_Policy > 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.

Member Data Documentation

FPtr ACE_FPointer_Time_Policy::function_
private

The documentation for this class was generated from the following files: