\hypertarget{a00128}{
\section{mln::accu::tuple$<$ A, n, $>$ Struct Template Reference}
\label{d1/d88/a00128}\index{mln::accu::tuple@{mln::accu::tuple}}
}


Generic tuple of accumulators.  




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



Inherits base$<$ boost::tuple$<$ BOOST\_\-PP\_\-REPEAT(10, RESULT\_\-ACCU, Le Ricard ya que ca de vrai!) $>$, tuple$<$ A, n, BOOST\_\-PP\_\-ENUM\_\-PARAMS(10, T)$>$ $>$.

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{a00128_a778c16979ed5ded8f8485f7617021934}{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 
res \hyperlink{a00128_adbc82e5f15d8d30c46aaed319904c87e}{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{a00128_a3ebc887e48d69ec20528752d170de8b6}{init} ()
\begin{DoxyCompactList}\small\item\em Manipulators. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}


\subsection{Detailed Description}
\subsubsection*{template$<$typename A, unsigned n, BOOST\_\-PP\_\-ENUM\_\-PARAMS\_\-WITH\_\-A\_\-DEFAULT(10, typename T, boost::tuples::null\_\-type)$>$ struct mln::accu::tuple$<$ A, n, $>$}

Generic tuple of accumulators. The parameter {\ttfamily T} is the type of values. 

Definition at line 74 of file tuple.hh.



\subsection{Member Function Documentation}
\hypertarget{a00128_a3ebc887e48d69ec20528752d170de8b6}{
\index{mln::accu::tuple@{mln::accu::tuple}!init@{init}}
\index{init@{init}!mln::accu::tuple@{mln::accu::tuple}}
\subsubsection[{init}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A , unsigned n, BOOST\_\-PP\_\-ENUM\_\-PARAMS(10, typename T) $>$ void {\bf mln::accu::tuple}$<$ A, n, $>$::init (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d88/a00128_a3ebc887e48d69ec20528752d170de8b6}


Manipulators. 



Definition at line 197 of file tuple.hh.

\hypertarget{a00128_a778c16979ed5ded8f8485f7617021934}{
\index{mln::accu::tuple@{mln::accu::tuple}!is\_\-valid@{is\_\-valid}}
\index{is\_\-valid@{is\_\-valid}!mln::accu::tuple@{mln::accu::tuple}}
\subsubsection[{is\_\-valid}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A , unsigned n, BOOST\_\-PP\_\-ENUM\_\-PARAMS(10, typename T) $>$ bool {\bf mln::accu::tuple}$<$ A, n, $>$::is\_\-valid (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d88/a00128_a778c16979ed5ded8f8485f7617021934}


Check whether this accu is able to return a result. 

Always true here. 

Definition at line 239 of file tuple.hh.

\hypertarget{a00026_a745794a4ef16926d3c09ebbaa8b6b557}{
\index{mln::accu::tuple@{mln::accu::tuple}!take\_\-as\_\-init@{take\_\-as\_\-init}}
\index{take\_\-as\_\-init@{take\_\-as\_\-init}!mln::accu::tuple@{mln::accu::tuple}}
\subsubsection[{take\_\-as\_\-init}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf mln::Accumulator}$<$ {\bf tuple}$<$ A, n, BOOST\_\-PP\_\-ENUM\_\-PARAMS(10, 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::tuple@{mln::accu::tuple}!take\_\-n\_\-times@{take\_\-n\_\-times}}
\index{take\_\-n\_\-times@{take\_\-n\_\-times}!mln::accu::tuple@{mln::accu::tuple}}
\subsubsection[{take\_\-n\_\-times}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf mln::Accumulator}$<$ {\bf tuple}$<$ A, n, BOOST\_\-PP\_\-ENUM\_\-PARAMS(10, 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{a00128_adbc82e5f15d8d30c46aaed319904c87e}{
\index{mln::accu::tuple@{mln::accu::tuple}!to\_\-result@{to\_\-result}}
\index{to\_\-result@{to\_\-result}!mln::accu::tuple@{mln::accu::tuple}}
\subsubsection[{to\_\-result}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A , unsigned n, BOOST\_\-PP\_\-ENUM\_\-PARAMS(10, typename T) $>$ {\bf tuple}$<$ A, n, BOOST\_\-PP\_\-ENUM\_\-PARAMS(10, T) $>$::res {\bf mln::accu::tuple}$<$ A, n, $>$::to\_\-result (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d88/a00128_adbc82e5f15d8d30c46aaed319904c87e}


Get the value of the accumulator. 



Definition at line 229 of file tuple.hh.

