Class: TCollectibleGlobalID

Declaration: GlobalID.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

MCollectible, TGlobalID

Inherited By:

TCanvasGraphicID

Purpose:

TCollectibleGlobalID derives from TGlobalID and simply wraps up global IDs into an MCollectible object that can be used in collection classes. When templates arrive, this class will be obsolete.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

None.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TCollectibleGlobalID::TCollectibleGlobalID

  1. TCollectibleGlobalID ()
  2. TCollectibleGlobalID (const TCollectibleGlobalID &)
  3. TCollectibleGlobalID (const TGlobalID &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy constructor.
  3. Constructs a new TCollectibleGlobalID wrapper for the specified TGlobalID.

Calling Context:

  1. Called by the stream-in operators.
  2. Called to copy an object.
  3. Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TCollectibleGlobalID::operator==

bool operator ==(const TCollectibleGlobalID &) const

Interface Category:

API.

Purpose:

Tests whether the two objects are equal.

Calling Context:

Call this function by using the operator in an expression.

Parameters:

Return Value:

Returns true if the two objects are equal; false otherwise.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TCollectibleGlobalID::operator!=

bool operator != (const TCollectibleGlobalID &) const

Interface Category:

API.

Purpose:

Tests whether the two objects are not equal.

Calling Context:

Call this function by using the operator in an expression.

Parameters:

Return Value:

Returns true if the two objects are not equal; false otherwise.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TCollectibleGlobalID::Hash

virtual long Hash () const

Interface Category:

API.

Purpose:

Returns the hash value for this collectible global ID.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns the hash value for this collectible global ID.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TCollectibleGlobalID::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: TCollectibleGlobalID::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.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.