Tools.h++ Manual
104011 Tandem Computers Incorporated 21-107
21
RWCollectable* removeNext(const RWCollectable*
target);
Moves iterator to the next item in the list which isEqual to the item pointed to
by target, removes it from the list and returns it. Afterwards, the iterator will
be positioned at the previous item in the list. If no item is found, returns nil
and the position of the iterator will be undefined.
RWCollectable* removeNextReference(const
RWCollectable* e);
Moves iterator to the next item in the list which is identical to the item pointed
to by
e
(that is, that has address
e
), removes it from the list and returns it.
Afterwards, the iterator will be positioned at the previous item in the list. If no
item is found, returns nil and the position of the iterator will be undefined.
virtual void reset();
Redefined from class
RWIterator
. Resets the iterator. Afterwards, the
position of the iterator will be undefined.
void toFirst();
Moves the iterator to the beginning of the list.
void toLast();
Moves the iterator to the end of the list.