Use the nested class ICnrObjectSet::Cursor to iterate over the elements of an ICnrObjectSet collection.
You can create and delete objects of this class.
![]() |
public:
~Cursor()
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
Construct an object of this class to iterate over the elements of the ICnrObjectSet collection
public:
Cursor(const Cursor& cursor)
This is the copy constructor. It sets this cursor to be the same as the given cursor.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
Cursor(const ICnrObjectSet& objectList)
Creates a cursor over the given ICnrObjectSet.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
Cursor& operator =(const Cursor& cursor)
Replaces the current cursor with the given cursor.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Use these functions to control the movement of cursors over an ICnrObjectSet collection.
![]() |
public:
bool setToFirst()
Resets the cursor position to the first element in the collection.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
bool setToLast()
Resets the cursor position to the last element in the collection.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
bool setToNext()
Advances the cursor position to the next element in the collection.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
bool setToPrevious()
Sets the cursor position to the previous element in the collection.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Use these functions query the validity of a cursor.
![]() |
public:
void invalidate()
Marks the cursor as invalid.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
bool isValid() const
If the cursor points to an element of the ICnrObjectSet collection, true is returned. Otherwise, false is returned.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Use these functions to retrieve elements from an ICnrObjectSet collection.
![]() |
public:
IContainerObject * const element() const
Returns the element pointed at by the cursor.
Windows | OS/2 | AIX |
Yes | Yes | Yes |