\hypertarget{a00125}{
\section{mln::accu::stat::rank\_\-high\_\-quant$<$ T $>$ Struct Template Reference}
\label{dc/dfe/a00125}\index{mln::accu::stat::rank\_\-high\_\-quant@{mln::accu::stat::rank\_\-high\_\-quant}}
}


Generic rank accumulator class.  




{\ttfamily \#include $<$rank\_\-high\_\-quant.hh$>$}



Inherits base$<$ const T \&, rank\_\-high\_\-quant$<$ T $>$ $>$.

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{a00125_a8980320bcd07971291f0d3a104e11cba}{is\_\-valid} () const 
\begin{DoxyCompactList}\small\item\em Check whether this accu is able to return a result. \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{a00125_a64b4b0849a35c4b3d1bb2c5ab4fc30d4}{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{a00125_aeb45d176210d4cc4d32b120823815491}{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::rank\_\-high\_\-quant$<$ T $>$}

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

Definition at line 57 of file rank\_\-high\_\-quant.hh.



\subsection{Member Function Documentation}
\hypertarget{a00125_aeb45d176210d4cc4d32b120823815491}{
\index{mln::accu::stat::rank\_\-high\_\-quant@{mln::accu::stat::rank\_\-high\_\-quant}!init@{init}}
\index{init@{init}!mln::accu::stat::rank_high_quant@{mln::accu::stat::rank\_\-high\_\-quant}}
\subsubsection[{init}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ void {\bf mln::accu::stat::rank\_\-high\_\-quant}$<$ T $>$::init (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{dc/dfe/a00125_aeb45d176210d4cc4d32b120823815491}


Manipulators. 



Definition at line 148 of file rank\_\-high\_\-quant.hh.

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


Check whether this accu is able to return a result. 

Always true here. 

Definition at line 197 of file rank\_\-high\_\-quant.hh.

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


Get the value of the accumulator. 



Definition at line 183 of file rank\_\-high\_\-quant.hh.

