ACE  6.1.0
Public Member Functions | Protected Member Functions | Private Attributes
ACE_Time_Policy_T< TIME_POLICY > Class Template 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< TIME_POLICY >:
Inheritance graph
[legend]
Collaboration diagram for ACE_Time_Policy_T< TIME_POLICY >:
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<typename TIME_POLICY>
class ACE_Time_Policy_T< TIME_POLICY >

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


Constructor & Destructor Documentation

template<typename TIME_POLICY >
ACE_Time_Policy_T< TIME_POLICY >::ACE_Time_Policy_T ( TIME_POLICY const &  time_policy = TIME_POLICY()) [inline]
template<typename TIME_POLICY >
ACE_Time_Policy_T< TIME_POLICY >::~ACE_Time_Policy_T ( ) [inline, virtual]

Member Function Documentation

template<typename TIME_POLICY >
ACE_Time_Value ACE_Time_Policy_T< TIME_POLICY >::gettimeofday ( void  ) const [inline, protected, virtual]

Return the current time according to policy implementation.

Implements ACE_Dynamic_Time_Policy_Base.

template<typename TIME_POLICY >
ACE_Time_Value ACE_Time_Policy_T< TIME_POLICY >::operator() ( ) const [inline]

Return the current time according to this policy.

Reimplemented from ACE_Dynamic_Time_Policy_Base.

template<typename TIME_POLICY >
void ACE_Time_Policy_T< TIME_POLICY >::set_gettimeofday ( ACE_Time_Value(*)(void)  gettimeofday) [inline]

Noop. Just here to satisfy backwards compatibility demands.

Reimplemented from ACE_Dynamic_Time_Policy_Base.

template<typename TIME_POLICY >
void ACE_Time_Policy_T< TIME_POLICY >::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

template<typename TIME_POLICY >
TIME_POLICY ACE_Time_Policy_T< TIME_POLICY >::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