ACE  6.1.0
Classes | Public Member Functions | Private Attributes | Static Private Attributes
ACE_Delegating_Time_Policy Class Reference

Implement a time policy that delegates to a dynamic time policy. More...

#include <Time_Policy.h>

Collaboration diagram for ACE_Delegating_Time_Policy:
Collaboration graph
[legend]

List of all members.

Classes

class  NULL_Time_Policy

Public Member Functions

 ACE_Delegating_Time_Policy (ACE_Dynamic_Time_Policy_Base const *delegate=0)
ACE_Time_Value operator() () const
 Return the current time according to this policy.
void set_delegate (ACE_Dynamic_Time_Policy_Base const *delegate)
 Set delegate.
ACE_Delegating_Time_Policyoperator= (ACE_Delegating_Time_Policy const &pol)
 Copy policy.
void set_gettimeofday (ACE_Time_Value(*gettimeofday)(void))
 Noop. Just here to satisfy backwards compatibility demands.

Private Attributes

ACE_Dynamic_Time_Policy_Base
const * 
delegate_

Static Private Attributes

static NULL_Time_Policy null_policy_

Detailed Description

Implement a time policy that delegates to a dynamic time policy.


Constructor & Destructor Documentation

ACE_Delegating_Time_Policy::ACE_Delegating_Time_Policy ( ACE_Dynamic_Time_Policy_Base const *  delegate = 0) [inline]

Member Function Documentation

ACE_Time_Value ACE_Delegating_Time_Policy::operator() ( ) const [inline]

Return the current time according to this policy.

ACE_Delegating_Time_Policy & ACE_Delegating_Time_Policy::operator= ( ACE_Delegating_Time_Policy const &  pol) [inline]

Copy policy.

void ACE_Delegating_Time_Policy::set_delegate ( ACE_Dynamic_Time_Policy_Base const *  delegate) [inline]

Set delegate.

void ACE_Delegating_Time_Policy::set_gettimeofday ( ACE_Time_Value(*)(void)  gettimeofday) [inline]

Noop. Just here to 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