ACE  6.3.3
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
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]

Public Member Functions

 ACE_Time_Policy_T (TIME_POLICY const &time_policy=TIME_POLICY())
 
virtual ~ACE_Time_Policy_T ()
 
ACE_Time_Value_T< ACE_Delegating_Time_Policyoperator() () const
 Return the current time according to this policy. More...
 
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. More...
 
- Public Member Functions inherited from ACE_Dynamic_Time_Policy_Base
virtual ~ACE_Dynamic_Time_Policy_Base ()
 
ACE_Time_Value_T< ACE_Delegating_Time_Policyoperator() () const
 Return the current time according to this policy. More...
 
void set_gettimeofday (ACE_Time_Value(*gettimeofday)(void))
 Noop. Just here to satisfy backwards compatibility demands. More...
 

Protected Member Functions

virtual ACE_Time_Value_T< ACE_Delegating_Time_Policygettimeofday () const
 Return the current time according to policy implementation. More...
 

Private Attributes

TIME_POLICY time_policy_
 The policy to return the current time of day. More...
 

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 ( )
virtual

Member Function Documentation

template<typename TIME_POLICY >
ACE_Time_Value_T< ACE_Delegating_Time_Policy > ACE_Time_Policy_T< TIME_POLICY >::gettimeofday ( void  ) const
protectedvirtual

Return the current time according to policy implementation.

Implements ACE_Dynamic_Time_Policy_Base.

template<typename TIME_POLICY >
ACE_Time_Value_T< ACE_Delegating_Time_Policy > ACE_Time_Policy_T< TIME_POLICY >::operator() ( ) const
inline

Return the current time according to this policy.

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.

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: