Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

HashIterator2D.h
Go to the documentation of this file.
1 
34 #pragma once
35 
36 #include <ogdf/basic/tuples.h>
37 
38 namespace ogdf {
39 
40 
45 template< class I1_, class I2_, class E_,
46  class Hash1_ = DefHashFunc<I1_>,
47  class Hash2_ = DefHashFunc<I2_> >
49  private HashConstIterator<Tuple2<I1_,I2_>,E_,HashFuncTuple<I1_,I2_,Hash1_,Hash2_> >
50 {
51 public:
54 
57  : HashConstIterator<Tuple2<I1_,I2_>,E_,HashFuncTuple<I1_,I2_,Hash1_,Hash2_> >(it) { }
58 
61  : HashConstIterator<Tuple2<I1_,I2_>,E_,HashFuncTuple<I1_,I2_,Hash1_,Hash2_> >(it) { }
62 
66  {
68  return *this;
69  }
70 
72  bool valid() const {
74  }
75 
77  const I1_ &key1() const {
79  }
80 
82  const I2_ &key2() const {
84  }
85 
87  const E_ &info() const {
89  }
90 
94  return *this;
95  }
96 };
97 
98 }
const Tuple2< I1_, I2_ > & key() const
Returns the key of the hash element pointed to.
Definition: Hashing.h:468
Const-iterator for 2D-hash arrays.
const I1_ & key1() const
Returns the first key of the hash element pointed to.
const E_ & info() const
Returns the information of the 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.
Iterators for hash tables.
Definition: Hashing.h:208
Tuples of two elements (2-tuples).
Definition: tuples.h:46
const E1 & x1() const
Returns a reference the first element.
Definition: tuples.h:59
bool valid() const
Returns true iff the iterator points to an element.
HashConstIterator2D(const HashConstIterator2D< I1_, I2_, E_, Hash1_, Hash2_ > &it)
Copy constructor.
const E2 & x2() const
Returns a reference the second element.
Definition: tuples.h:61
Declaration and implementation of class Tuple2, Tuple3 and Tuple4.
The namespace for all OGDF objects.
HashConstIterator2D()
Creates an (invalid) iterator.
HashConstIterator2D< I1_, I2_, E_, Hash1_, Hash2_ > & operator=(const HashConstIterator2D< I1_, I2_, E_, Hash1_, Hash2_ > &it)
Assignemnt operator.
HashConstIterator2D(const HashConstIterator< Tuple2< I1_, I2_ >, E_, HashFuncTuple< I1_, I2_, Hash1_, Hash2_ > > &it)
Copy constructor (from HashConstIterator).