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.


[view class]
setToLast
public:
bool setToLast()
Move the cursor to the last element.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
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
IElementCursor

Inherited Public Data

Inherited Protected Functions

ICursor
IElementCursor
IOrderedCursor

Inherited Protected Data