\hypertarget{a00122}{
\section{mln::accu::stat::min\_\-max$<$ V $>$ Struct Template Reference}
\label{df/dc8/a00122}\index{mln::accu::stat::min\_\-max@{mln::accu::stat::min\_\-max}}
}


Generic min and max accumulator class.  




{\ttfamily \#include $<$min\_\-max.hh$>$}



Inheritance diagram for mln::accu::stat::min\_\-max$<$ V $>$:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=313pt]{d0/d52/a03741}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a00120}{min}$<$ V $>$::result \hyperlink{a00108_a3dd0fed6be8bf320cd04476d17ac9407}{first} () const
\begin{DoxyCompactList}\small\item\em Return the result of the first accumulator. \item\end{DoxyCompactList}\item 
\hyperlink{a00120}{min}$<$ V $>$ \hyperlink{a00108_a5c39727b73517f6967c9742956af9f0d}{first\_\-accu} () const
\begin{DoxyCompactList}\small\item\em Return the first accumulator. \item\end{DoxyCompactList}\item 
bool \hyperlink{a00108_ac2bef90e49c9f615ac1122b4fe8498ff}{is\_\-valid} () const
\begin{DoxyCompactList}\small\item\em Check whether this accu is able to return a result. \item\end{DoxyCompactList}\item 
\hyperlink{a00116}{max}$<$ V $>$::result \hyperlink{a00108_ae317bcdcd90b71af9fed089d3b1759ab}{second} () const
\begin{DoxyCompactList}\small\item\em Return the result of the second accumulator. \item\end{DoxyCompactList}\item 
\hyperlink{a00116}{max}$<$ V $>$ \hyperlink{a00108_afbfcf3c0d829eb2310ed38f5f8371f55}{second\_\-accu} () const
\begin{DoxyCompactList}\small\item\em Return the second accumulator. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \hyperlink{a00026_a745794a4ef16926d3c09ebbaa8b6b557}{take\_\-as\_\-init} (const T \&t)
\begin{DoxyCompactList}\small\item\em Take as initialization the value {\ttfamily t}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \hyperlink{a00026_a138e094daa1a85f345bbdfd852c9fc67}{take\_\-n\_\-times} (unsigned n, const T \&t)
\begin{DoxyCompactList}\small\item\em Take {\ttfamily n} times the value {\ttfamily t}. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{Indent}{\bf }\par
{\em \label{_amgrpd41d8cd98f00b204e9800998ecf8427e}
 }\begin{DoxyCompactItemize}
\item 
void \hyperlink{a00108_a07436a520952968faa6b7912344e3375}{init} ()
\begin{DoxyCompactList}\small\item\em Manipulators. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf }\par
{\em \label{_amgrpd41d8cd98f00b204e9800998ecf8427e}
 }\begin{DoxyCompactItemize}
\item 
std::pair$<$ typename \hyperlink{a00120}{min}$<$ V $>$::result, typename \hyperlink{a00116}{max}$<$ V $>$::result $>$ \hyperlink{a00108_a8f241ea1011c433164d5ee52ca25acbc}{to\_\-result} () const
\begin{DoxyCompactList}\small\item\em Get the value of the accumulator. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}


\subsection{Detailed Description}
\subsubsection*{template$<$typename V$>$ struct mln::accu::stat::min\_\-max$<$ V $>$}

Generic min and max accumulator class. The parameter {\ttfamily V} is the type of values. 

Definition at line 61 of file accu/stat/min\_\-max.hh.



\subsection{Member Function Documentation}
\hypertarget{a00108_a3dd0fed6be8bf320cd04476d17ac9407}{
\index{mln::accu::stat::min\_\-max@{mln::accu::stat::min\_\-max}!first@{first}}
\index{first@{first}!mln::accu::stat::min_max@{mln::accu::stat::min\_\-max}}
\subsubsection[{first}]{\setlength{\rightskip}{0pt plus 5cm}{\bf min}$<$ V $>$  ::result {\bf mln::accu::pair}$<$ {\bf min}$<$ V $>$ , {\bf max}$<$ V $>$ , mln\_\-argument({\bf min}$<$ V $>$ )  $>$::first (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}
\label{d1/dd6/a00108_a3dd0fed6be8bf320cd04476d17ac9407}


Return the result of the first accumulator. 

\hypertarget{a00108_a5c39727b73517f6967c9742956af9f0d}{
\index{mln::accu::stat::min\_\-max@{mln::accu::stat::min\_\-max}!first\_\-accu@{first\_\-accu}}
\index{first\_\-accu@{first\_\-accu}!mln::accu::stat::min_max@{mln::accu::stat::min\_\-max}}
\subsubsection[{first\_\-accu}]{\setlength{\rightskip}{0pt plus 5cm}{\bf min}$<$ V $>$  {\bf mln::accu::pair}$<$ {\bf min}$<$ V $>$ , {\bf max}$<$ V $>$ , mln\_\-argument({\bf min}$<$ V $>$ )  $>$::first\_\-accu (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}
\label{d1/dd6/a00108_a5c39727b73517f6967c9742956af9f0d}


Return the first accumulator. 

\hypertarget{a00108_a07436a520952968faa6b7912344e3375}{
\index{mln::accu::stat::min\_\-max@{mln::accu::stat::min\_\-max}!init@{init}}
\index{init@{init}!mln::accu::stat::min_max@{mln::accu::stat::min\_\-max}}
\subsubsection[{init}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf mln::accu::pair}$<$ {\bf min}$<$ V $>$ , {\bf max}$<$ V $>$ , mln\_\-argument({\bf min}$<$ V $>$ )  $>$::init (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}
\label{d1/dd6/a00108_a07436a520952968faa6b7912344e3375}


Manipulators. 

\hypertarget{a00108_ac2bef90e49c9f615ac1122b4fe8498ff}{
\index{mln::accu::stat::min\_\-max@{mln::accu::stat::min\_\-max}!is\_\-valid@{is\_\-valid}}
\index{is\_\-valid@{is\_\-valid}!mln::accu::stat::min_max@{mln::accu::stat::min\_\-max}}
\subsubsection[{is\_\-valid}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf mln::accu::pair}$<$ {\bf min}$<$ V $>$ , {\bf max}$<$ V $>$ , mln\_\-argument({\bf min}$<$ V $>$ )  $>$::is\_\-valid (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}
\label{d1/dd6/a00108_ac2bef90e49c9f615ac1122b4fe8498ff}


Check whether this accu is able to return a result. 

Always true here. \hypertarget{a00108_ae317bcdcd90b71af9fed089d3b1759ab}{
\index{mln::accu::stat::min\_\-max@{mln::accu::stat::min\_\-max}!second@{second}}
\index{second@{second}!mln::accu::stat::min_max@{mln::accu::stat::min\_\-max}}
\subsubsection[{second}]{\setlength{\rightskip}{0pt plus 5cm}{\bf max}$<$ V $>$  ::result {\bf mln::accu::pair}$<$ {\bf min}$<$ V $>$ , {\bf max}$<$ V $>$ , mln\_\-argument({\bf min}$<$ V $>$ )  $>$::second (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}
\label{d1/dd6/a00108_ae317bcdcd90b71af9fed089d3b1759ab}


Return the result of the second accumulator. 

\hypertarget{a00108_afbfcf3c0d829eb2310ed38f5f8371f55}{
\index{mln::accu::stat::min\_\-max@{mln::accu::stat::min\_\-max}!second\_\-accu@{second\_\-accu}}
\index{second\_\-accu@{second\_\-accu}!mln::accu::stat::min_max@{mln::accu::stat::min\_\-max}}
\subsubsection[{second\_\-accu}]{\setlength{\rightskip}{0pt plus 5cm}{\bf max}$<$ V $>$  {\bf mln::accu::pair}$<$ {\bf min}$<$ V $>$ , {\bf max}$<$ V $>$ , mln\_\-argument({\bf min}$<$ V $>$ )  $>$::second\_\-accu (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}
\label{d1/dd6/a00108_afbfcf3c0d829eb2310ed38f5f8371f55}


Return the second accumulator. 

\hypertarget{a00026_a745794a4ef16926d3c09ebbaa8b6b557}{
\index{mln::accu::stat::min\_\-max@{mln::accu::stat::min\_\-max}!take\_\-as\_\-init@{take\_\-as\_\-init}}
\index{take\_\-as\_\-init@{take\_\-as\_\-init}!mln::accu::stat::min_max@{mln::accu::stat::min\_\-max}}
\subsubsection[{take\_\-as\_\-init}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename E $>$ template$<$typename T $>$ void {\bf mln::Accumulator}$<$ E $>$::take\_\-as\_\-init (
\begin{DoxyParamCaption}
\item[{const T \&}]{ t}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}
\label{d6/d5b/a00026_a745794a4ef16926d3c09ebbaa8b6b557}


Take as initialization the value {\ttfamily t}. 

Dev note: this is a final method; override if needed by take\_\-as\_\-init\_\- (ending with '\_\-'). 

Definition at line 186 of file accumulator.hh.



References mln::mln\_\-exact().

\hypertarget{a00026_a138e094daa1a85f345bbdfd852c9fc67}{
\index{mln::accu::stat::min\_\-max@{mln::accu::stat::min\_\-max}!take\_\-n\_\-times@{take\_\-n\_\-times}}
\index{take\_\-n\_\-times@{take\_\-n\_\-times}!mln::accu::stat::min_max@{mln::accu::stat::min\_\-max}}
\subsubsection[{take\_\-n\_\-times}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename E $>$ template$<$typename T $>$ void {\bf mln::Accumulator}$<$ E $>$::take\_\-n\_\-times (
\begin{DoxyParamCaption}
\item[{unsigned}]{ n, }
\item[{const T \&}]{ t}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}
\label{d6/d5b/a00026_a138e094daa1a85f345bbdfd852c9fc67}


Take {\ttfamily n} times the value {\ttfamily t}. 

Dev note: this is a final method; override if needed by take\_\-as\_\-init\_\- (ending with '\_\-'). 

Definition at line 213 of file accumulator.hh.



References mln::mln\_\-exact().

\hypertarget{a00108_a8f241ea1011c433164d5ee52ca25acbc}{
\index{mln::accu::stat::min\_\-max@{mln::accu::stat::min\_\-max}!to\_\-result@{to\_\-result}}
\index{to\_\-result@{to\_\-result}!mln::accu::stat::min_max@{mln::accu::stat::min\_\-max}}
\subsubsection[{to\_\-result}]{\setlength{\rightskip}{0pt plus 5cm}std::pair$<$typename {\bf min}$<$ V $>$  ::result, typename {\bf max}$<$ V $>$  ::result$>$ {\bf mln::accu::pair}$<$ {\bf min}$<$ V $>$ , {\bf max}$<$ V $>$ , mln\_\-argument({\bf min}$<$ V $>$ )  $>$::to\_\-result (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}
\label{d1/dd6/a00108_a8f241ea1011c433164d5ee52ca25acbc}


Get the value of the accumulator. 

