Class: TAbstractLayerableReference

Declaration: SystemWindow.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

MCollectible

Inherited By:

TLayerableReference TLayerableSurrogate

Purpose:

TAbstractLayerableReference is the abstract base for windows and layers.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

The system window and layer classes derive from this abstract base. You should override GetOwningTask & GetOwningThread.

Concurrency:

Multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TAbstractLayerableReference::TAbstractLayerableReference

  1. TAbstractLayerableReference (const TAbstractLayerableReference &)
  2. TAbstractLayerableReference ()

Interface Category:

API.

Purpose:

  1. Copy constructor.
  2. Default constructor.

Calling Context:

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

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TAbstractLayerableReference::~TAbstractLayerableReference

virtual ~ TAbstractLayerableReference ()

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: TAbstractLayerableReference::operator=

TAbstractLayerableReference & operator =(const TAbstractLayerableReference &)

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: TAbstractLayerableReference::operator==

bool operator ==(const TAbstractLayerableReference &) const

Interface Category:

API.

Purpose:

Tests for equality between this window or layer and the specified one. They are only equal if and only if their identifiers are equal.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns true if the identifiers are equal; otherwise, returns false.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TAbstractLayerableReference::GetOwningThread

virtual void GetOwningThread (TThreadHandle & returnedThread) const

Interface Category:

API.

Purpose:

Returns a reference to the thread that owns this window or layer.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TAbstractLayerableReference::Hash

virtual long Hash () const

Interface Category:

API.

Purpose:

Returns the window identifier.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns the window identifier.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TAbstractLayerableReference::operator>>=

virtual TStream & operator >>=(TStream &) 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: TAbstractLayerableReference::operator<<=

virtual TStream & operator <<= (TStream &)

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.

Member Function: TAbstractLayerableReference::SetOwningThread

void SetOwningThread (const TThreadHandle & Thread)

Interface Category:

API.

Purpose:

Sets the specified thread as the thread that owns the window or layer.

Calling Context:

Call this function directly to change the thread that owns the window or layer.

Parameters:

Return Value:

None.

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.