Class: TMonomorphicStreamer

Declaration: MonomorphicStreamer.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TStreamer

Inherited By:

None.

Purpose:

Provides operators for the streaming of objects.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Do not derive any classes from TMonomorphicStreamer.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TMonomorphicStreamer::TMonomorphicStreamer

  1. TMonomorphicStreamer ()
  2. TMonomorphicStreamer (const TMonomorphicStreamer < AType > &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy constructor.

Calling Context:

  1. Call this function directly anywhere the creation of a TMonomorphicStreamer is desired.
  2. Call this function directly 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: TMonomorphicStreamer::~TMonomorphicStreamer

virtual ~ TMonomorphicStreamer ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Call this function directly 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: TMonomorphicStreamer::StreamOut

virtual TStream & StreamOut (AType * obj, TStream & stream) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Call this function directly to stream out an object.

Parameters:

Return Value:

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: TMonomorphicStreamer::StreamIn

virtual AType * StreamIn (TStream & stream) const

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Call this function directly to stream in an object.

Parameters:

Return Value:

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

const TMonomorphicStreamer < AType > & operator =(const TMonomorphicStreamer < AType > &)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

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