Class: TAbstractModelFunctor

Declaration: CompoundDocument.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TAbstractDocumentFunctor

Inherited By:

TReadOnlyModelFunctorOn

Purpose:

The TAbstractModelFunctor class is the abstract base class for document functors that apply to the model object. A model functor is sent to a model surrogate. The functor is then sent to the corresponding real document and model instance and performed there.

Instantiation:

Abstract base class; do not allocate.

Deriving Classes:

Do not derive from this class, but rather a more specific class such as TReadOnlyModelFunctorOn.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Invariants:

Functors do not maintain state.

Member Function: TAbstractModelFunctor::~TAbstractModelFunctor

virtual ~ TAbstractModelFunctor ()

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: TAbstractModelFunctor::TAbstractModelFunctor

  1. TAbstractModelFunctor ()
  2. TAbstractModelFunctor ( const TModelReference & )
  3. TAbstractModelFunctor ( const TAbstractModelFunctor & )

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Constructs a functor for a specific model.
  3. Copy constructor.

Calling Context:

  1. Called by the stream-in operators and derived classes.
  2. Called by derived classes.
  3. Called by derived classes.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TAbstractModelFunctor::GetModelReference

TModelReference GetModelReference () const

Interface Category:

API.

Purpose:

Gets a reference to the model to which this functor applies.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns the model reference.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TAbstractModelFunctor::SetModelReference

void SetModelReference (const TModelReference &) const

Interface Category:

API.

Purpose:

Sets a reference to the model to which this functor applies.

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: TAbstractModelFunctor::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 a TInvalidVersionError if the version of the object on the stream is unknown to the version of the shared library installed.

Concurrency:

Multithread safe.

Other Considerations:

None.

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