Class: TSyncableClockSurrogate

Declaration: LowLevelClock.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

None.

Purpose:

A surrogate for a TSyncableClock object. TSyncableClockSurrogate is used only for syncing two TClocks together. It is used to identify the master clock to sync to. It can be streamed, and is necessary for syncing TSyncableClocks across different tasks or address spaces.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

None.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TSyncableClockSurrogate::TSyncableClockSurrogate

  1. TSyncableClockSurrogate ()
  2. TSyncableClockSurrogate (const TClock & theClock)
  3. TSyncableClockSurrogate (const TText & theClockName)
  4. TSyncableClockSurrogate (const TSyncableClockSurrogate & theClock)

Interface Category:

API.

Purpose:

  1. Default constructor for streaming into.
  2. The clock to stream out for syncing.
  3. The time source's clock to stream out for syncing.
  4. Copy constructor.

Calling Context:

  1. Called by the stream-in operators.
  2. Called to create a surrogate for a clock to be connected to.
  3. Called to create a surrogate for a time source to be connected to.
  4. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSyncableClockSurrogate::~TSyncableClockSurrogate

virtual ~ TSyncableClockSurrogate ()

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:

Not multithread safe.

Other Considerations:

None.

Member Function: TSyncableClockSurrogate::operator==

  1. bool operator ==(const TSyncableClockSurrogate & theObject) const
  2. bool operator ==(const ClockToken clock) const

Interface Category:

API.

Purpose:

  1. Compares surrogates.
  2. Compares a surrogate to a ClockToken.

Calling Context:

  1. Call this function directly.
  2. Call this function directly.

Parameters:

Return Value:

Returns true if they are equal, otherwise returns false.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSyncableClockSurrogate::operator=

TSyncableClockSurrogate & operator =(const TSyncableClockSurrogate & copyThisObject)

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:

Not multithread safe.

Other Considerations:

None.

Member Function: TSyncableClockSurrogate::Hash

virtual long Hash () const

Interface Category:

API.

Purpose:

Provides a hash number to be used by collections.

Calling Context:

Called by collection classes.

Parameters:

Return Value:

The hash value.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSyncableClockSurrogate::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:

Not multithread safe.

Other Considerations:

None.

Member Function: TSyncableClockSurrogate::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:

Not multithread safe.

Other Considerations:

None.

Member Function: TSyncableClockSurrogate::GetClockToken

ClockToken GetClockToken () const

Interface Category:

API. Used mostly for internal use.

Purpose:

Gets the clock token for the TSyncableClockSurrogate.

Calling Context:

Call this function directly

Parameters:

Return Value:

ClockToken -the clock token for the TSyncableClockSurrogate.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

This member function is probably only needed by Taligent internal use. The ==operators, should be used for comparison of TSyncableClockSurrogates.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.