ACE  6.0.7
Public Member Functions | Protected Member Functions | Private Attributes
ACE_Time_Policy_T Class Reference

Template class implementing a dynamic time policy based on another time policy. More...

#include <Time_Policy_T.h>

Inheritance diagram for ACE_Time_Policy_T:
Inheritance graph
[legend]
Collaboration diagram for ACE_Time_Policy_T:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

Template class implementing a dynamic time policy based on another time policy.


Constructor & Destructor Documentation

ACE_Time_Policy_T::ACE_Time_Policy_T ( TIME_POLICY const &  time_policy = TIME_POLICY()) [inline]
ACE_Time_Policy_T::~ACE_Time_Policy_T ( ) [inline, virtual]

Member Function Documentation

ACE_Time_Value ACE_Time_Policy_T::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::operator() ( ) const [inline]

Return the current time according to this policy.

Reimplemented from ACE_Dynamic_Time_Policy_Base.

void ACE_Time_Policy_T::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::set_time_policy ( TIME_POLICY const &  time_policy) [inline]

Allows applications to control how the timer queue gets the time of day.


Member Data Documentation

TIME_POLICY ACE_Time_Policy_T::time_policy_ [private]

The policy to return the current time of day.


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