$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::util::ord_pair< T > Struct Template Reference

#include <mln/util/ord_pair.hh>

Public Member Functions

 ord_pair ()
 ord_pair (const T &val1, const T &val2)
void change_both (const T &first, const T &second)
void change_first (const T &val)
void change_second (const T &val)
const T & first () const
T & first ()
const T & second () const
T & second ()

Public Types

typedef Object< void > category
typedef ord_pair< T > exact_t

Detailed Description

template<typename T>
struct mln::util::ord_pair< T >

Ordered pair structure s.a.

this->first <= this->second; ordered pairs are partially ordered using lexicographical ordering.

Definition at line 50 of file ord_pair.hh.

Constructor & Destructor Documentation

template<typename T>
mln::util::ord_pair< T >::ord_pair ( )
template<typename T>
mln::util::ord_pair< T >::ord_pair ( const T &  val1,
const T &  val2 
)

Member Function Documentation

template<typename T>
void mln::util::ord_pair< T >::change_both ( const T &  first,
const T &  second 
)

Replace both members of the pair by val, while keeping the relative order.

Postcondition
first_ <= second_ (with <= being the mln::util::ord_weak relationship).
template<typename T>
void mln::util::ord_pair< T >::change_first ( const T &  val)

Replace the first member of the pair by val, while keeping the relative order.

Postcondition
first_ <= second_ (with <= being the mln::util::ord_weak relationship).
template<typename T>
void mln::util::ord_pair< T >::change_second ( const T &  val)

Replace the second member of the pair by val, while keeping the relative order.

Postcondition
first_ <= second_ (with <= being the mln::util::ord_weak relationship).
template<typename T>
const T& mln::util::ord_pair< T >::first ( ) const

Get the first (lowest) member of the pair.

template<typename T>
T& mln::util::ord_pair< T >::first ( )
template<typename T>
const T& mln::util::ord_pair< T >::second ( ) const

Get the second (highest) member of the pair.

template<typename T>
T& mln::util::ord_pair< T >::second ( )

Member Typedef Documentation

typedef Object<void> mln::Object< ord_pair< T > >::category
inherited

Definition at line 106 of file object.hh.

typedef ord_pair< T > mln::Object< ord_pair< T > >::exact_t
inherited

Definition at line 105 of file object.hh.