Tools.h++ Manual

104011 Tandem Computers Incorporated 21-121
21
Public member functions
virtual RWCollectable* findNext(const RWCollectable*
target);
Redefined from class
RWIterator
. Moves the iterator to the next key-value
pair where the key isEqual to the object pointed to by
target
. Returns the key
or nil if no key was found.
virtual RWCollectable* key() const;
Redefined from class
RWIterator
. Returns the key at the current iterator
position.
RWCollectable* remove();
Removes the key-value pair at the current iterator position. Returns the key, or
nil if there was no key-value pair.
RWCollectable* removeNext(const RWCollectable*
target);
Moves the iterator to the next key-value pair where the key isEqual to the
object pointed to by
target
. Removes the key-value pair, returning the key or
nil if there was no match.
virtual void reset();
Redefined from class
RWIterator
. Inherited from class
RWSetIterator
.
Resets the iterator to its initial state.
RWCollectable* value() const;
Returns the value at the current iterator position.
RWCollectable* value(RWCollectable* newValue)
const;
Replaces the value at the current iterator position and returns the old value.