Const-iterator for 2D-hash arrays. More...
#include <ogdf/basic/HashIterator2D.h>
Public Member Functions | |
HashConstIterator2D () | |
Creates an (invalid) iterator. | |
HashConstIterator2D (const HashConstIterator2D< I1_, I2_, E_, Hash1_, Hash2_ > &it) | |
Copy constructor. | |
HashConstIterator2D (const HashConstIterator< Tuple2< I1_, I2_ >, E_, HashFuncTuple< I1_, I2_, Hash1_, Hash2_ > > &it) | |
Copy constructor (from HashConstIterator). | |
const E_ & | info () const |
Returns the information of the element pointed to. | |
const I1_ & | key1 () const |
Returns the first key of the hash element pointed to. | |
const I2_ & | key2 () const |
Returns the second key of the hash element pointed to. | |
HashConstIterator2D< I1_, I2_, E_, Hash1_, Hash2_ > & | operator++ () |
Sets the iterator to the next element in the 2D-hash array. | |
HashConstIterator2D< I1_, I2_, E_, Hash1_, Hash2_ > & | operator= (const HashConstIterator2D< I1_, I2_, E_, Hash1_, Hash2_ > &it) |
Assignemnt operator. | |
bool | valid () const |
Returns true iff the iterator points to an element. | |
Additional Inherited Members | |
Private Member Functions inherited from ogdf::HashConstIterator< K, I, H > | |
HashConstIterator () | |
Creates a hash iterator pointing to no element. | |
HashConstIterator (const HashConstIterator< K, I, H > &it) | |
Copy constructor. | |
HashConstIterator (HashElement< K, I > *pElement, HashElement< K, I > **pList, const Hashing< K, I, H > *pHashing) | |
Creates a hash iterator pointing to element pElement in list pList of hash table pHashing . | |
const I & | info () const |
Returns the information of the hash element pointed to. | |
const K & | key () const |
Returns the key of the hash element pointed to. | |
HashConstIterator< K, I, H > & | operator++ () |
Moves this hash iterator to the next element (iterator gets invalid if no more elements). | |
HashConstIterator & | operator= (const HashConstIterator< K, I, H > &it) |
Assignment operator. | |
bool | valid () const |
Returns true if the hash iterator points to an element. | |
Const-iterator for 2D-hash arrays.
Definition at line 46 of file HashIterator2D.h.
|
inline |
Creates an (invalid) iterator.
Definition at line 50 of file HashIterator2D.h.
|
inline |
Copy constructor.
Definition at line 53 of file HashIterator2D.h.
|
inline |
Copy constructor (from HashConstIterator).
Definition at line 57 of file HashIterator2D.h.
|
inline |
Returns the information of the element pointed to.
Definition at line 87 of file HashIterator2D.h.
|
inline |
Returns the first key of the hash element pointed to.
Definition at line 75 of file HashIterator2D.h.
|
inline |
Returns the second key of the hash element pointed to.
Definition at line 81 of file HashIterator2D.h.
|
inline |
Sets the iterator to the next element in the 2D-hash array.
Definition at line 92 of file HashIterator2D.h.
|
inline |
Assignemnt operator.
Definition at line 62 of file HashIterator2D.h.
|
inline |
Returns true iff the iterator points to an element.
Definition at line 70 of file HashIterator2D.h.