|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
48 template<
class E1,
class E2>
61 const E1&
x1()
const {
return m_x1; }
64 const E2&
x2()
const {
return m_x2; }
76 template<
class E1,
class E2>
78 return t1.
x1() == t2.
x1() && t1.
x2() == t2.
x2();
82 template<
class E1,
class E2>
84 return t1.
x1() != t2.
x1() || t1.
x2() != t2.
x2();
88 template<
class E1,
class E2>
90 os <<
"(" << t2.
x1() <<
" " << t2.
x2() <<
")";
94 template<
typename K1_,
typename K2_,
typename Hash1_ = DefHashFunc<K1_>,
typename Hash2_ = DefHashFunc<K2_>>
The namespace for all OGDF objects.
HashFuncTuple(const Hash1_ &hash1, const Hash2_ &hash2)
E1 & x1()
Returns a reference the first element.
Declaration of classes used for hashing.
Tuples of two elements (2-tuples).
bool operator==(const Tuple2< E1, E2 > &t1, const Tuple2< E1, E2 > &t2)
Equality operator for 2-tuples.
#define OGDF_NEW_DELETE
Makes the class use OGDF's memory allocator.
E2 m_x2
The second element.
const E2 & x2() const
Returns a reference the second element.
Tuple2(const E1 &y1, const E2 &y2)
Constructs a 2-tuple for given values.
std::ostream & operator<<(std::ostream &os, const ogdf::Array< E, INDEX > &a)
Prints array a to output stream os.
bool operator!=(const Tuple2< E1, E2 > &t1, const Tuple2< E1, E2 > &t2)
Inequality operator for 2-tuples.
E2 & x2()
Returns a reference the second element.
Tuple2()=default
Constructs a 2-tuple using default constructors.
const E1 & x1() const
Returns a reference the first element.
E1 m_x1
The first element.
size_t hash(const Tuple2< K1_, K2_ > &key) const
Declaration of memory manager for allocating small pieces of memory.