[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]

Tuple Types |

pair, triple, tuple4, tuple5

#include <vigra/utilities.hxx>
Namespace: vigra

VIGRA defines tuple types `vigra::triple`, `vigra::tuple4`, `vigra::tuple5`. In addition, `std::pair` is imported into namespace vigra from the C++ standard library. All these types are defined similarly:

- They are parameterized by the respective number of types. For each tuple, a constructor is defined that takes that many arguments, e.g.:

          template <class First, class Second, class Third>
          class Triple { ... };

- A number of `typedef's` tells the types stored in the tuple:

          typedef ... first_type;
          typedef ... second_type;
          typedef ... third_type;  // triple, tuple4, tuple5 only
          typedef ... forth_type;  // tuple4, tuple5 only
          typedef ... fifth_type;  // tuple5 only

- Items are stored in the following public attributes:

          first;
          second;
          third;  // triple, tuple4, tuple5 only
          forth;  // tuple4, tuple5 only
          fifth;  // tuple5 only

© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) Heidelberg Collaboratory for Image Processing, University of Heidelberg, Germany | html generated using doxygen and Python vigra 1.9.0 (Tue Nov 6 2012)