Definition of a couple. More...
#include <couple.hh>
Public Types | |
typedef Object< void > | category |
typedef couple< T, U > | exact_t |
Public Member Functions | |
void | change_both (const T &first, const U &second) |
Replace both members of the couple by val. | |
void | change_first (const T &val) |
Replace the first member of the couple by val. | |
void | change_second (const U &val) |
Replace the second member of the couple by val. | |
couple () | |
couple (const T &val1, const U &val2) | |
const T & | first () const |
Get the first member of the couple. | |
T & | first () |
const U & | second () const |
Get the second member of the couple. | |
U & | second () |
Private Attributes | |
T | first_ |
U | second_ |
Definition of a couple.
typedef Object<void> mln::Object< couple< T, U > >::category [inherited] |
typedef couple< T, U > mln::Object< couple< T, U > >::exact_t [inherited] |
mln::util::couple< T, U >::couple | ( | ) | [inline] |
mln::util::couple< T, U >::couple | ( | const T & | val1, | |
const U & | val2 | |||
) | [inline] |
References mln::util::couple< T, U >::change_both().
void mln::util::couple< T, U >::change_both | ( | const T & | first, | |
const U & | second | |||
) | [inline] |
Replace both members of the couple by val.
References mln::util::couple< T, U >::first_, and mln::util::couple< T, U >::second_.
Referenced by mln::util::couple< T, U >::couple().
void mln::util::couple< T, U >::change_first | ( | const T & | val | ) | [inline] |
Replace the first member of the couple by val.
References mln::util::couple< T, U >::first_.
void mln::util::couple< T, U >::change_second | ( | const U & | val | ) | [inline] |
Replace the second member of the couple by val.
References mln::util::couple< T, U >::second_.
T & mln::util::couple< T, U >::first | ( | ) | [inline] |
References mln::util::couple< T, U >::first_.
const T & mln::util::couple< T, U >::first | ( | ) | const [inline] |
Get the first member of the couple.
References mln::util::couple< T, U >::first_.
Referenced by mln::convert::over_load::from_to_(), and mln::util::operator==().
const U & mln::util::couple< T, U >::second | ( | ) | const [inline] |
Get the second member of the couple.
References mln::util::couple< T, U >::second_.
Referenced by mln::convert::over_load::from_to_(), and mln::util::operator==().
U & mln::util::couple< T, U >::second | ( | ) | [inline] |
References mln::util::couple< T, U >::second_.
T mln::util::couple< T, U >::first_ [private] |
U mln::util::couple< T, U >::second_ [private] |