\hypertarget{a00116}{
\section{mln::accu::stat::max$<$ T $>$ Struct Template Reference}
\label{d4/d3e/a00116}\index{mln::accu::stat::max@{mln::accu::stat::max}}
}


Generic max accumulator class.  




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



Inherits base$<$ const T \&, max$<$ T $>$ $>$.

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{a00116_a2e38d6efbd32d3ed6b117fe9826c3171}{is\_\-valid} () const 
\begin{DoxyCompactList}\small\item\em Check whether this accu is able to return a result. \item\end{DoxyCompactList}\item 
void \hyperlink{a00116_a945b052e36f57b467bec0eb6c7d0dad2}{set\_\-value} (const T \&t)
\begin{DoxyCompactList}\small\item\em Force the value of the min to {\itshape t\/}. \item\end{DoxyCompactList}\item 
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 
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}\item 
const T \& \hyperlink{a00116_a92b3671bcd25d2afd785c5a51cea6bfc}{to\_\-result} () const 
\begin{DoxyCompactList}\small\item\em Get the value of the accumulator. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{Indent}{\bf }\par
{\em \label{_amgrpd41d8cd98f00b204e9800998ecf8427e}
 }\begin{DoxyCompactItemize}
\item 
void \hyperlink{a00116_ab6aba00c141f27eec35a378e6c2e30af}{init} ()
\begin{DoxyCompactList}\small\item\em Manipulators. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}


\subsection{Detailed Description}
\subsubsection*{template$<$typename T$>$ struct mln::accu::stat::max$<$ T $>$}

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

Definition at line 101 of file accu/stat/max.hh.



\subsection{Member Function Documentation}
\hypertarget{a00116_ab6aba00c141f27eec35a378e6c2e30af}{
\index{mln::accu::stat::max@{mln::accu::stat::max}!init@{init}}
\index{init@{init}!mln::accu::stat::max@{mln::accu::stat::max}}
\subsubsection[{init}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ void {\bf mln::accu::stat::max}$<$ T $>$::init (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d4/d3e/a00116_ab6aba00c141f27eec35a378e6c2e30af}


Manipulators. 



Definition at line 146 of file accu/stat/max.hh.

\hypertarget{a00116_a2e38d6efbd32d3ed6b117fe9826c3171}{
\index{mln::accu::stat::max@{mln::accu::stat::max}!is\_\-valid@{is\_\-valid}}
\index{is\_\-valid@{is\_\-valid}!mln::accu::stat::max@{mln::accu::stat::max}}
\subsubsection[{is\_\-valid}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ bool {\bf mln::accu::stat::max}$<$ T $>$::is\_\-valid (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d4/d3e/a00116_a2e38d6efbd32d3ed6b117fe9826c3171}


Check whether this accu is able to return a result. 

Always true here. 

Definition at line 196 of file accu/stat/max.hh.

\hypertarget{a00116_a945b052e36f57b467bec0eb6c7d0dad2}{
\index{mln::accu::stat::max@{mln::accu::stat::max}!set\_\-value@{set\_\-value}}
\index{set\_\-value@{set\_\-value}!mln::accu::stat::max@{mln::accu::stat::max}}
\subsubsection[{set\_\-value}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ void {\bf mln::accu::stat::max}$<$ T $>$::set\_\-value (
\begin{DoxyParamCaption}
\item[{const T \&}]{ t}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d4/d3e/a00116_a945b052e36f57b467bec0eb6c7d0dad2}


Force the value of the min to {\itshape t\/}. 



Definition at line 180 of file accu/stat/max.hh.

\hypertarget{a00026_a745794a4ef16926d3c09ebbaa8b6b557}{
\index{mln::accu::stat::max@{mln::accu::stat::max}!take\_\-as\_\-init@{take\_\-as\_\-init}}
\index{take\_\-as\_\-init@{take\_\-as\_\-init}!mln::accu::stat::max@{mln::accu::stat::max}}
\subsubsection[{take\_\-as\_\-init}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf mln::Accumulator}$<$ {\bf max}$<$ T $>$  $>$::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 '\_\-'). \hypertarget{a00026_a138e094daa1a85f345bbdfd852c9fc67}{
\index{mln::accu::stat::max@{mln::accu::stat::max}!take\_\-n\_\-times@{take\_\-n\_\-times}}
\index{take\_\-n\_\-times@{take\_\-n\_\-times}!mln::accu::stat::max@{mln::accu::stat::max}}
\subsubsection[{take\_\-n\_\-times}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf mln::Accumulator}$<$ {\bf max}$<$ T $>$  $>$::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 '\_\-'). \hypertarget{a00116_a92b3671bcd25d2afd785c5a51cea6bfc}{
\index{mln::accu::stat::max@{mln::accu::stat::max}!to\_\-result@{to\_\-result}}
\index{to\_\-result@{to\_\-result}!mln::accu::stat::max@{mln::accu::stat::max}}
\subsubsection[{to\_\-result}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ const T \& {\bf mln::accu::stat::max}$<$ T $>$::to\_\-result (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d4/d3e/a00116_a92b3671bcd25d2afd785c5a51cea6bfc}


Get the value of the accumulator. 



Definition at line 188 of file accu/stat/max.hh.

