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.
Use these members to perform operations on the cursor.
![]() |
public:
Element const& element() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
ICursor(Implementation*)
ICursor(ICursor const&)
inline static Implementation& ImplOf(ICursor const&)
IElementCursor(Implementation*)