Class: TReadOnlyModelFunctorOn

Declaration: CompoundDocument.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TAbstractModelFunctor

Inherited By:

None.

Purpose:

The TReadOnlyModelFunctorOn class is the base class for functors that apply to the model object for read-only access. Derive from this class and override HandleDo to perform a specific function. The model is locked and passed in.

Instantiation:

Abstract base class; do not allocate.

Deriving Classes:

Any functor requiring read access from a model should derive from this class. Derived classes must override the pure virtual function HandleDo.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

Invariants: Functors do not maintain state.

Member Function: TReadOnlyModelFunctorOn::~TReadOnlyModelFunctorOn

virtual ~ TReadOnlyModelFunctorOn ()

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

  1. TReadOnlyModelFunctorOn ()
  2. TReadOnlyModelFunctorOn ( const TModelReference & )
  3. TReadOnlyModelFunctorOn ( const TReadOnlyModelFunctorOn<AModel> & )

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:

Not multithread safe.

Other Considerations:

None.

Member Function: TReadOnlyModelFunctorOn::HandleDo

virtual void HandleDo ( const AModel & )

Interface Category:

API.

Purpose:

Executes the functor on the model.

Calling Context:

Call only by TReadOnlyModelFunctorOn. Derived classes override this member function to perform their action on the model. Its actions are limited to read only.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions. All exceptions are passed 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.