Traversing Object Lists

ostc_ObjectList::first()

virtual ostc_Object* first() ;

Positions the list's cursor at the list's first element, and returns that element. If the list is empty, returns 0.

ostc_ObjectList::next()

virtual ostc_Object* next() ;

If this list's cursor is valid and is not positioned at the list's last element, next()

If the cursor is positioned at the list's last element, next()

If the cursor is invalid and the list is nonempty, next()

If the list is empty, next() returns 0.

ostc_ObjectList::more()

virtual oscs_Bool more() ;

Returns oscs_True if this's cursor is valid, that is, positioned at an element of the set. Returns oscs_False otherwise.

ostc_ObjectList::current()

virtual ostc_Object* current() ;

Returns the element at which the cursor is positioned, or 0 if the cursor is null. Does not reposition the cursor.



[previous] [next]