Tools.h++ Manual

21-106 104011 Tandem Computers Incorporated
21
void operator-=(size_t n);
Moves the iterator back
n
items.
Public member functions
RWBoolean atFirst() const;
Returns
TRUE
if the iterator is at the beginning of the list, otherwise
FALSE
;
RWBoolean atLast() const;
Returns
TRUE
if the iterator is at the end of the list, otherwise
FALSE
;
virtual RWCollectable* findNext(const RWCollectable*
target);
Redefined from class
RWIterator
. Moves iterator to the next item which
isEqual to the item pointed to by
target
and returns it. If no item is found,
returns nil and the position of the iterator will be undefined.
RWCollectable* findNextReference(const
RWCollectable* e);
Moves iterator to the next item which is identical to the item pointed to by
e
(that is, that has address
e
) and returns it. If no item is found, returns nil and
the position of the iterator will be undefined.
RWCollectable* insertAfterPoint(RWCollectable*
a);
Insert item
a
after the current cursor position and return the item. The cursor's
position will be unchanged.
virtual RWCollectable* key() const;
Redefined from class
RWIterator
. Returns the item at the current iterator
position.
RWCollectable* remove();
Removes and returns the item at the current cursor position. Afterwards, the
iterator will be positioned at the previous item in the list.