ACE 8.0.0
Loading...
Searching...
No Matches
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.
 
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.
 
- 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.
 
void set_gettimeofday (ACE_Time_Value(*gettimeofday)())
 Noop. Just here to satisfy backwards compatibility demands.
 

Protected Member Functions

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

◆ ACE_Time_Policy_T()

◆ ~ACE_Time_Policy_T()

Member Function Documentation

◆ gettimeofday()

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

Return the current time according to policy implementation.

Implements ACE_Dynamic_Time_Policy_Base.

◆ operator()()

Return the current time according to this policy.

◆ set_gettimeofday()

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.

◆ set_time_policy()

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

◆ time_policy_

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: