Class: TIteratorOver

Declaration: IteratorOver.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

TDictionaryOfIterator TEmptyIteratorOver TPriorityQueueOfIterator TSequenceOfIterator TSetOfIterator

Purpose:

TIteratorOver is an abstract base class that you can use to iterate over the objects in a collection.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Do not derive any classes from TIteratorOver.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TIteratorOver::~TIteratorOver

virtual ~ TIteratorOver ()

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: TIteratorOver::Next

virtual AType * Next ()

Interface Category:

API.

Purpose:

Retrieves the object after the current object.

Calling Context:

Call this function directly to retrieve the object after the current object.

Parameters:

Return Value:

A pointer to the next object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TIteratorOver::First

virtual AType * First ()

Interface Category:

API.

Purpose:

Retrieves the first object in the collection.

Calling Context:

Call this function directly to retrieves the first object in the collection.

Parameters:

Return Value:

A pointer to the first object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TIteratorOver::Remove

virtual void Remove ()

Interface Category:

API.

Purpose:

Removes the current object from the collection and keep this iterator in sync with the collection.

Calling Context:

Call this function directly to remove the current object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TIteratorOver::TIteratorOver

  1. TIteratorOver ()
  2. TIteratorOver (const TIteratorOver < AType > &)
  3. TIteratorOver (TCollectionInternal *)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy constructor.
  3. Creates a TIteratorOver and sets the implementation object to the specified object.

Calling Context:

  1. Protected member. Unused.
  2. Call this function directly to copy an object. Protected member. Unused.
  3. Call this function directly to create a TIteratorOver with specified implementation object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TIteratorOver::operator=

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

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Call this function directly when an object is assigned to another compatible object. 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.