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.
Definition at line 48 of file util/couple.hh.
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] |
Definition at line 116 of file util/couple.hh.
| mln::util::couple< T, U >::couple | ( | const T & | val1, | |
| const U & | val2 | |||
| ) | [inline] |
Definition at line 122 of file util/couple.hh.
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.
Definition at line 182 of file util/couple.hh.
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.
Definition at line 166 of file util/couple.hh.
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.
Definition at line 174 of file util/couple.hh.
References mln::util::couple< T, U >::second_.
| T & mln::util::couple< T, U >::first | ( | ) | [inline] |
Definition at line 142 of file util/couple.hh.
References mln::util::couple< T, U >::first_.
| const T & mln::util::couple< T, U >::first | ( | ) | const [inline] |
Get the first member of the couple.
Definition at line 134 of file util/couple.hh.
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.
Definition at line 150 of file util/couple.hh.
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] |
Definition at line 158 of file util/couple.hh.
References mln::util::couple< T, U >::second_.
T mln::util::couple< T, U >::first_ [private] |
Definition at line 76 of file util/couple.hh.
Referenced by mln::util::couple< T, U >::change_both(), mln::util::couple< T, U >::change_first(), and mln::util::couple< T, U >::first().
U mln::util::couple< T, U >::second_ [private] |
Definition at line 77 of file util/couple.hh.
Referenced by mln::util::couple< T, U >::change_both(), mln::util::couple< T, U >::change_second(), and mln::util::couple< T, U >::second().
1.7.1