Tools.h++ Class Reference

Table Of Contents
container, the element returned will be a nil pointer equivalent to boolean false.
RWBoolean
operator++();
Advances self to the next element. If the iterator has been reset or just created, self will
reference the first element. If, before iteration, self referenced the last value in the list, self
will now point to an undefined value distinct from the reset value and false will be
returned. Otherwise, true is returned. Note: no postincrement operator is provided.
RWBoolean
operator+=(size_type n);
Behaves as if the operator++ member function had been applied n times
RWBoolean
operator--();
Moves self back to the immediately previous element. If the iterator has been reset or just
created, this operator will return false, otherwise it will return true. If self references the
the first element, it will now be in the reset state. If self has been iterated past the last
value in the list, it will now point to the last item in the list. Note: no postdecrement
operator is provided.
RWBoolean
operator-=(size_type n);
Behaves as if the operator-- member function had been applied n times
Public Member Functions
RWTValSortedDlist<T,C>*
container() const;
Returns a pointer to the collection being iterated over.
RWBoolean
findNext(const T a);
Advances self to the first element t encountered by iterating forward, such that the
expression (t == a) is true. Returns true if such an element if found, false otherwise.
RWBoolean
findNext(RWBoolean(*fn)(T, void*), void* d);
Advances self to the first element t encountered by iterating forward, such that the
expression((*fn)(t,d)) is true. fn points to a user-defined tester function which must have
prototype:
bool yourTester(const T a, void* d);
Client data may be passed through parameter d. Returns true if such an element if found,
false otherwise.