[ VIGRA Homepage | Class Index | Function Index | File Index | 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 (koethe@informatik.uni-hamburg.de) Cognitive Systems Group, University of Hamburg, Germany | html generated using doxygen and Python VIGRA 1.4.0 (21 Dec 2005)