Class: TTimeSourceSurrogate

Declaration: Clock.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

MCollectible

Inherited By:

TDrivenTimeSourceSurrogate

Purpose:

Provides a fast way for TSyncableClocks to determine what their TimeSource's time is.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Derived classes must implement ::Now compatible to the time source ::Now.

Concurrency:

Multithread safe.

Resource Use:

No special requirements. The object can be deleted after it has been used to initialize the TTimeSource.

Member Function: TTimeSourceSurrogate::~TTimeSourceSurrogate

virtual ~ TTimeSourceSurrogate ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TTimeSourceSurrogate::Now

virtual void Now (TTime & theTime) const

Interface Category:

API.

Purpose:

Gets the current time of the TimeSource.

Calling Context:

Called polymorphically by TSyncableClock clock framework.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TTimeSourceSurrogate::TTimeSourceSurrogate

  1. TTimeSourceSurrogate ()
  2. TTimeSourceSurrogate (const TTimeSourceSurrogate &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy constructor.

Calling Context:

  1. Called by the stream-in operators.
  2. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

An abstract base class.

Member Function: TTimeSourceSurrogate::operator=

TTimeSourceSurrogate & operator =(const TTimeSourceSurrogate &)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Called when an object is assigned to another compatible object.

Parameters:

Return Value:

A non-const reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TTimeSourceSurrogate::operator>>=

virtual TStream & operator >>=(TStream & toWhere) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called to stream out data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TTimeSourceSurrogate::operator<<=

virtual TStream & operator <<= (TStream & fromWhere)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called to stream in data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.