Tools.h++ Class Reference

Table Of Contents
Persistence
None
Public Constructor
RWBinaryTreeIterator(const RWBinaryTree&);
Constructs an iterator for an RWBinaryTree. Immediately after construction, the position
of the iterator is undefined until positioned.
Public Member Operator
virtual RWCollectable*
operator()();
Redefined from class RWIterator. Advances iterator to the next "largest" element and
returns a pointer to it. Returns nil when the end of the collection is reached.
Public Member Functions
virtual RWCollectable*
findNext(const RWCollectable* target);
Redefined from class RWIterator. Moves iterator to the next item which compares equal
to the object pointed to by target and returns it. If no item is found, returns nil and the
position of the iterator will be undefined.
virtual void
reset();
Redefined from class RWIterator. Resets iterator to its state at construction.
virtual RWCollectable*
key() const;
Redefined from class RWIterator. Returns the item at the current iterator position.