Tools.h++ Class Reference

Table Of Contents
Persistence
None
Public Constructor
RWGSlistIterator(type)( RWGSlist(type)& list);
Constructs an iterator for the RWGSlist(type) list. Immediately after construction, the
position of the iterator is undefined.
Public Member Operators
type*
operator()();
Advances the iterator to the next item and returns it. Returns nil if it is at the end of the
collection.
void
operator++();
Advances the iterator one item.
void
operator+=(size_t n);
Advances the iterator n items.
Public Member Functions
RWBoolean
atFirst() const;
Returns TRUE if the iterator is at the start of the list, FALSE otherwise;
RWBoolean
atLast() const;
Returns TRUE if the iterator is at the end of the list, FALSE otherwise;
type*
findNext(yourTester t,const type* d);
Moves the iterator to the next item for which the function pointed to by t finds a match
with d and returns it. Returns nil if no match is found, in which case the position of the
iterator will be undefined.
type*
findNextReference(const type* e);