Open
Graph Drawing
Framework

 v.2007.11
 

ogdf::Tuple2< E1, E2 > Class Template Reference

Tuples of two elements (2-tuples). More...

#include <tuples.h>

List of all members.

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.
const E1 & x1 () const
 Returns a reference the first element.
const E2 & x2 () const
 Returns a reference the second element.
E1 & x1 ()
 Returns a reference the first element.
E2 & x2 ()
 Returns a reference the second element.
void * operator new (size_t nBytes)
void * operator new (size_t, void *p)
void operator delete (void *p, size_t nBytes)

Public Attributes

E1 m_x1
 The first element.
E2 m_x2
 The second element.


Detailed Description

template<class E1, class E2>
class ogdf::Tuple2< E1, E2 >

Tuples of two elements (2-tuples).

Definition at line 67 of file tuples.h.


Constructor & Destructor Documentation

template<class E1, class E2>
ogdf::Tuple2< E1, E2 >::Tuple2 (  )  [inline]

Constructs a 2-tuple using default constructors.

Definition at line 73 of file tuples.h.

template<class E1, class E2>
ogdf::Tuple2< E1, E2 >::Tuple2 ( const E1 &  y1,
const E2 &  y2 
) [inline]

Constructs a 2-tuple for given values.

Definition at line 75 of file tuples.h.

template<class E1, class E2>
ogdf::Tuple2< E1, E2 >::Tuple2 ( const Tuple2< E1, E2 > &  t2  )  [inline]

Constructs a 2-tuple that is a copy of t2.

Definition at line 77 of file tuples.h.


Member Function Documentation

template<class E1, class E2>
const E1& ogdf::Tuple2< E1, E2 >::x1 (  )  const [inline]

Returns a reference the first element.

Definition at line 80 of file tuples.h.

template<class E1, class E2>
const E2& ogdf::Tuple2< E1, E2 >::x2 (  )  const [inline]

Returns a reference the second element.

Definition at line 82 of file tuples.h.

template<class E1, class E2>
E1& ogdf::Tuple2< E1, E2 >::x1 (  )  [inline]

Returns a reference the first element.

Definition at line 85 of file tuples.h.

template<class E1, class E2>
E2& ogdf::Tuple2< E1, E2 >::x2 (  )  [inline]

Returns a reference the second element.

Definition at line 87 of file tuples.h.

template<class E1, class E2>
void* ogdf::Tuple2< E1, E2 >::operator new ( size_t  nBytes  )  [inline]

Definition at line 91 of file tuples.h.

template<class E1, class E2>
void* ogdf::Tuple2< E1, E2 >::operator new ( size_t  ,
void *  p 
) [inline]

Definition at line 91 of file tuples.h.

template<class E1, class E2>
void ogdf::Tuple2< E1, E2 >::operator delete ( void *  p,
size_t  nBytes 
) [inline]

Definition at line 91 of file tuples.h.


Member Data Documentation

template<class E1, class E2>
E1 ogdf::Tuple2< E1, E2 >::m_x1

The first element.

Definition at line 69 of file tuples.h.

template<class E1, class E2>
E2 ogdf::Tuple2< E1, E2 >::m_x2

The second element.

Definition at line 70 of file tuples.h.


The documentation for this class was generated from the following file:

© 1999-2007 by oreas GmbH, © 2005-2007 by University Dortmund and University Cologne.

Generated on Thu Nov 22 19:40:09 2007 by doxygen 1.5.4.