\hypertarget{a00026}{
\section{mln::Accumulator$<$ E $>$ Struct Template Reference}
\label{d6/d5b/a00026}\index{mln::Accumulator@{mln::Accumulator}}
}


Base class for implementation of accumulators.  




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



Inheritance diagram for mln::Accumulator$<$ E $>$:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=600pt]{de/d7e/a03439}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\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}


\subsection{Detailed Description}
\subsubsection*{template$<$typename E$>$ struct mln::Accumulator$<$ E $>$}

Base class for implementation of accumulators. The parameter {\itshape E\/} is the exact type.

\begin{DoxySeeAlso}{See also}
\hyperlink{a00160}{mln::doc::Accumulator} for a complete documentation of this class contents. 
\end{DoxySeeAlso}


Definition at line 78 of file accumulator.hh.



\subsection{Member Function Documentation}
\hypertarget{a00026_a745794a4ef16926d3c09ebbaa8b6b557}{
\index{mln::Accumulator@{mln::Accumulator}!take\_\-as\_\-init@{take\_\-as\_\-init}}
\index{take\_\-as\_\-init@{take\_\-as\_\-init}!mln::Accumulator@{mln::Accumulator}}
\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}
)}}
\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::Accumulator@{mln::Accumulator}!take\_\-n\_\-times@{take\_\-n\_\-times}}
\index{take\_\-n\_\-times@{take\_\-n\_\-times}!mln::Accumulator@{mln::Accumulator}}
\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}
)}}
\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().

