Public Member Functions

mln::util::couple< T, U > Class Template Reference
[Utilities]

Definition of a couple. More...

#include <couple.hh>

Inheritance diagram for mln::util::couple< T, U >:
Inheritance graph

List of all members.

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.

const T & first () const
 Get the first member of the couple.

const U & second () const
 Get the second member of the couple.

Detailed Description

template<typename T, typename U>
class mln::util::couple< T, U >

Definition of a couple.

Definition at line 48 of file util/couple.hh.


Member Function Documentation

template<typename T , typename U >
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.

template<typename T , typename U >
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.

template<typename T , typename U >
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.

template<typename T , typename U >
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.

template<typename T , typename U >
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.