### IOrderedCursor

  Cursors of ordered collections are derived from IOrderedCursor.

  Because the cursor classes are all abstract classes, no objects of type IOrderedCursor, IElementCursor, or ICursor can be declared. You can obtain cursor objects by using the collection member IACollection::newCursor or by defining a cursor of a specific collection cursor class. The newCursor() member creates a cursor of the collection to which it is applied.

  The newCursor() member returns a pointer to the newly created cursor object.

  Each cursor object is associated with a collection object. A cursor function merely calls the corresponding function for this collection. For example, cursor.setToFirst() is the same as collection.setToFirst(cursor), where collection is the object associated with cursor.

### IOrderedCursor - Member Functions and Data by Group

### Iteration

Use these members for iteration.

setToLast

      public:
      bool setToLast()

  Move the cursor to the last element.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

setToPrevious

      public:
      bool setToPrevious()

  Move the cursor to the previous element.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### IOrderedCursor - Inherited Member Functions and Data

#### Inherited Public Functions

  ICursor

  -     virtual ~ICursor()

  -     void copy(ICursor const&)

  -     void invalidate()

  -     IBoolean isValid() const

  -     IBoolean operator !=(ICursor const&) const

  -     void operator =(ICursor const&)

  -     IBoolean operator ==(ICursor const&) const

  -     IBoolean setToFirst()

  -     IBoolean setToNext()

  IElementCursor

  -     Element const& element() const

#### Inherited Public Data

  - None

#### Inherited Protected Functions

  ICursor

  -     ICursor(ICursor const&)

  -     ICursor(Implementation*)

  -     inline static Implementation& ImplOf(ICursor const&)

  IElementCursor

  -     IElementCursor(Implementation*)

  IOrderedCursor

  -     IOrderedCursor(Implementation*)

#### Inherited Protected Data

  - None