Tuples of two elements (2-tuples). More...
#include <ogdf/basic/tuples.h>
Public Member Functions | |
| Tuple2 () | |
| Constructs a 2-tuple using default constructors. | |
| Tuple2 (const E1 &y1, const E2 &y2) | |
| Constructs a 2-tuple for given values. | |
| Tuple2 (const Tuple2< E1, E2 > &t2) | |
Constructs a 2-tuple that is a copy of t2. | |
| Tuple2 & | operator= (const Tuple2< E1, E2 > &)=default |
| E1 & | x1 () |
| Returns a reference the first element. | |
| const E1 & | x1 () const |
| Returns a reference the first element. | |
| E2 & | x2 () |
| Returns a reference the second element. | |
| const E2 & | x2 () const |
| Returns a reference the second element. | |
Public Attributes | |
| E1 | m_x1 |
| The first element. | |
| E2 | m_x2 |
| The second element. | |
Tuples of two elements (2-tuples).
| E1 | is the data type for the first element. |
| E2 | is the data type for the second element. |
|
inline |
|
inline |
|
inline |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
| E1 ogdf::Tuple2< E1, E2 >::m_x1 |
| E2 ogdf::Tuple2< E1, E2 >::m_x2 |