Class: TSortedSequenceOfIterator

Declaration: SortedSequenceIterator.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TSequenceOfIterator

Inherited By:

None.

Purpose:

TSortedSequenceOfIterator is a class that you can use to iterate over the objects in a sorted sequence. TSortedSequenceOfIterator inherits operators for retrieving the first and next objects in the sequence.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

You should not derive any classes from TSortedSequenceOfIterator. TSortedSequenceOfIterator is derived from TSequenceOfIterator.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TSortedSequenceOfIterator::~TSortedSequenceOfIterator

virtual ~ TSortedSequenceOfIterator ()

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

  1. TSortedSequenceOfIterator (const TSortedSequenceOf < AType > * sortedSequenceOf)
  2. TSortedSequenceOfIterator ()
  3. TSortedSequenceOfIterator (const TSortedSequenceOfIterator < AType > &)

Interface Category:

API.

Purpose:

  1. Creates an iterator associated with the supplied sorted sequence.
  2. Default constructor.
  3. Copy constructor.

Calling Context:

  1. Call this function directly to create an iterator for the supplied sorted sequence.
  2. Protect member. Unused constructor.
  3. Protect member. Unused constructor.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSortedSequenceOfIterator::StartHere

AType * StartHere (const AType & obj)

Interface Category:

API.

Purpose:

Sets the current position in the sequence to the object that is equal to the object supplied.

Calling Context:

Call this function directly to set the current position to the object in the sequence that is equal to the supplied object. The member function Next will return the object after the supplied object.

Parameters:

Return Value:

A reference to the object in the sequence that matches the object passed.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSortedSequenceOfIterator::operator=

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

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Protected member. Unused.

Parameters:

Return Value:

A 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.