Rogue Wave banner
Previous fileTop of documentContentsIndexNext file

RWTPtrHashDictionaryIterator<K,V>

Alternative interface: no Standard C++ Library

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Synopsis

#include <rw/tphdict.h>
unsigned hashFun(const K&);
RWTPtrHashDictionary<K,V> dictionary(hashFun);
RWTPtrHashDictionaryIterator<K,V> iterator(dictionary);

Please Note!


If you do not have the Standard C++ Library, use the interface described here. Otherwise, use the interface to RWTPtrHashMapIterator described in the Class Reference.


Description

Iterator for class RWTPtrHashDictionary<K,V>, allowing sequential access to all keys and values of a parameterized hash dictionary. Elements are not accessed in any particular order.

Like all Rogue Wave iterators, the "current item" is undefined immediately after construction -- you must define it by using operator() or some other (valid) operation.

Once the iterator has advanced beyond the end of the collection it is no longer valid -- continuing to use it will bring undefined results.

Persistence

None

Public Constructor

RWTPtrHashDictionaryIterator(RWTPtrHashDictionary& c);

Public Operators

RWBoolean
operator++();
K*
operator()();

Public Member Functions

RWTPtrHashDictionary*
container() const;
K*
key() const;
void
reset();
void
reset(RWTPtrHashDictionary& c);
V*
value() const;


Previous fileTop of documentContentsIndexNext file
Return to the main class reference
©Copyright 1999, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.