\hypertarget{a00407}{
\section{mln::util::ord\_\-pair$<$ T $>$ Struct Template Reference}
\label{d1/d98/a00407}\index{mln::util::ord\_\-pair@{mln::util::ord\_\-pair}}
}


Ordered pair structure s.a.  




{\ttfamily \#include $<$ord\_\-pair.hh$>$}



Inheritance diagram for mln::util::ord\_\-pair$<$ T $>$:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=250pt]{d0/d36/a04008}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{a00407_a1ba5983f3ee2ba7347d14c61380c07b4}{change\_\-both} (const T \&first, const T \&second)
\begin{DoxyCompactList}\small\item\em Replace both members of the pair by {\itshape val\/}, while keeping the relative order. \item\end{DoxyCompactList}\item 
void \hyperlink{a00407_a0a787b43671ef5800550eca832d28295}{change\_\-first} (const T \&val)
\begin{DoxyCompactList}\small\item\em Replace the first member of the pair by {\itshape val\/}, while keeping the relative order. \item\end{DoxyCompactList}\item 
void \hyperlink{a00407_a949d64ac8ff26120db4df8321482827b}{change\_\-second} (const T \&val)
\begin{DoxyCompactList}\small\item\em Replace the second member of the pair by {\itshape val\/}, while keeping the relative order. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{Indent}{\bf }\par
{\em \label{_amgrpd41d8cd98f00b204e9800998ecf8427e}
 }\begin{DoxyCompactItemize}
\item 
const T \& \hyperlink{a00407_ab865820e6e378f384d52bc7d5050ce34}{first} () const 
\begin{DoxyCompactList}\small\item\em Get the first (lowest) member of the pair. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf }\par
{\em \label{_amgrpd41d8cd98f00b204e9800998ecf8427e}
 }\begin{DoxyCompactItemize}
\item 
const T \& \hyperlink{a00407_af220e07ba3511040078cd5a52278becc}{second} () const 
\begin{DoxyCompactList}\small\item\em Get the second (highest) member of the pair. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}


\subsection{Detailed Description}
\subsubsection*{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.



\subsection{Member Function Documentation}
\hypertarget{a00407_a1ba5983f3ee2ba7347d14c61380c07b4}{
\index{mln::util::ord\_\-pair@{mln::util::ord\_\-pair}!change\_\-both@{change\_\-both}}
\index{change\_\-both@{change\_\-both}!mln::util::ord_pair@{mln::util::ord\_\-pair}}
\subsubsection[{change\_\-both}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ void {\bf mln::util::ord\_\-pair}$<$ T $>$::change\_\-both (
\begin{DoxyParamCaption}
\item[{const T \&}]{ first, }
\item[{const T \&}]{ second}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d98/a00407_a1ba5983f3ee2ba7347d14c61380c07b4}


Replace both members of the pair by {\itshape val\/}, while keeping the relative order. 

\begin{DoxyPostcond}{Postcondition}
{\itshape first\_\-\/} $<$= {\itshape second\_\-\/} (with $<$= being the \hyperlink{a02752_abd5ae8d79193860f9ca3cd5f884366fe}{mln::util::ord\_\-weak} relationship). 
\end{DoxyPostcond}


Definition at line 211 of file ord\_\-pair.hh.



References mln::util::ord\_\-strict(), and mln::util::ord\_\-weak().

\hypertarget{a00407_a0a787b43671ef5800550eca832d28295}{
\index{mln::util::ord\_\-pair@{mln::util::ord\_\-pair}!change\_\-first@{change\_\-first}}
\index{change\_\-first@{change\_\-first}!mln::util::ord_pair@{mln::util::ord\_\-pair}}
\subsubsection[{change\_\-first}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ void {\bf mln::util::ord\_\-pair}$<$ T $>$::change\_\-first (
\begin{DoxyParamCaption}
\item[{const T \&}]{ val}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d98/a00407_a0a787b43671ef5800550eca832d28295}


Replace the first member of the pair by {\itshape val\/}, while keeping the relative order. 

\begin{DoxyPostcond}{Postcondition}
{\itshape first\_\-\/} $<$= {\itshape second\_\-\/} (with $<$= being the \hyperlink{a02752_abd5ae8d79193860f9ca3cd5f884366fe}{mln::util::ord\_\-weak} relationship). 
\end{DoxyPostcond}


Definition at line 181 of file ord\_\-pair.hh.



References mln::util::ord\_\-strict(), and mln::util::ord\_\-weak().

\hypertarget{a00407_a949d64ac8ff26120db4df8321482827b}{
\index{mln::util::ord\_\-pair@{mln::util::ord\_\-pair}!change\_\-second@{change\_\-second}}
\index{change\_\-second@{change\_\-second}!mln::util::ord_pair@{mln::util::ord\_\-pair}}
\subsubsection[{change\_\-second}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ void {\bf mln::util::ord\_\-pair}$<$ T $>$::change\_\-second (
\begin{DoxyParamCaption}
\item[{const T \&}]{ val}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d98/a00407_a949d64ac8ff26120db4df8321482827b}


Replace the second member of the pair by {\itshape val\/}, while keeping the relative order. 

\begin{DoxyPostcond}{Postcondition}
{\itshape first\_\-\/} $<$= {\itshape second\_\-\/} (with $<$= being the \hyperlink{a02752_abd5ae8d79193860f9ca3cd5f884366fe}{mln::util::ord\_\-weak} relationship). 
\end{DoxyPostcond}


Definition at line 196 of file ord\_\-pair.hh.



References mln::util::ord\_\-strict(), and mln::util::ord\_\-weak().

\hypertarget{a00407_ab865820e6e378f384d52bc7d5050ce34}{
\index{mln::util::ord\_\-pair@{mln::util::ord\_\-pair}!first@{first}}
\index{first@{first}!mln::util::ord_pair@{mln::util::ord\_\-pair}}
\subsubsection[{first}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ const T \& {\bf mln::util::ord\_\-pair}$<$ T $>$::first (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d98/a00407_ab865820e6e378f384d52bc7d5050ce34}


Get the first (lowest) member of the pair. 



Definition at line 149 of file ord\_\-pair.hh.

\hypertarget{a00407_af220e07ba3511040078cd5a52278becc}{
\index{mln::util::ord\_\-pair@{mln::util::ord\_\-pair}!second@{second}}
\index{second@{second}!mln::util::ord_pair@{mln::util::ord\_\-pair}}
\subsubsection[{second}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ const T \& {\bf mln::util::ord\_\-pair}$<$ T $>$::second (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d98/a00407_af220e07ba3511040078cd5a52278becc}


Get the second (highest) member of the pair. 



Definition at line 165 of file ord\_\-pair.hh.

