ACE  6.1.0
Public Types | Public Member Functions | Private Attributes
ACE_FPointer_Time_Policy Class Reference

#include <Time_Policy.h>

Collaboration diagram for ACE_FPointer_Time_Policy:
Collaboration graph
[legend]

List of all members.

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_

Member Typedef Documentation

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 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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines