Tools.h++ Manual

22-30 104011 Tandem Computers Incorporated
22
T* removeNext(T* a);
Advances the iterator to the first element that is equal to the object pointed to
by
a
, then removes and returns it. Afterwards, the iterator will be positioned
at the element immediately before the removed element. Returns nil if
unsuccessful in which case the position of the iterator is undefined. Equality is
measured by the class-defined equality operator for type
T
.
T* removeNext(RWBoolean
(*testFun)(T*, void*), void*);
Advances the iterator to the first element for which the tester function pointed
to by
testFun
returns
TRUE
, then removes and returns it. Afterwards, the
iterator will be positioned at the element immediately before the removed
element. Returns nil if unsuccessful in which case the position of the iterator is
undefined.
void reset();
Resets the iterator to the state it had immediately after construction.
void reset(RWTPtrDlist<T>& c);
Resets the iterator to iterate over the collection
c
.