Tools.h++ Class Reference

Table Of Contents
it will bring undefined results.
Persistence
None
Public Constructor
RWTPtrHashTableIterator(RWTPtrHashTable<T>& c);
Constructs an iterator to be used with the table c.
Public Operators
RWBoolean
operator++();
Advances the iterator to the next item and returns TRUE. When the end of the collection is
reached, returns FALSE and the position of the iterator will be undefined.
T*
operator()();
Advances the iterator to the next item and returns a pointer to it. When the end of the collection is
reached, returns nil and the position of the iterator will be undefined.
Public Member Functions
RWTPtrHashTable<T>*
container() const;
Returns a pointer to the collection over which this iterator is iterating.
T*
key() const;
Returns a pointer to the item at the iterator's current position. The results are undefined if the
iterator is no longer valid.
void
reset();
Resets the iterator to the state it had immediately after construction.
void
reset(RWTPtrHashTable<T>& c);
Resets the iterator to iterate over the collection c.