Tools.h++ Class Reference

Table Of Contents
Public Member Operators
RWBoolean
operator()();
Advances self to the next element. If the iterator has advanced past the last item in the
collection, returns false. Otherwise, returns true.
RWBoolean
operator++();
Advances self to the next element. If the iterator has been reset or just created self will
now reference the first element. If, before iteration, self referenced the last association in
the multi-map, self will now reference an undefined value and false will be returned.
Otherwise, true is returned. Note: no postincrement operation is provided.
Public Member Functions
RWTValMultiMap<K,T,C>*
container() const;
Returns a pointer to the collection being iterated over.
K
key() const;
Returns the key portion of the association currently referenced by self.
void
reset();
void
reset(RWTValMultiMap<K,T,C>& h);
Resets the iterator so that after being advanced it will reference the first element of the
collection. Using reset() with no argument will reset the iterator on the current container.
Supplying a RWTValMultiMap to reset() will reset the iterator on the new container.
T
value();
Returns the value portion of the association referenced by self.