\hypertarget{a00062}{
\section{mln::accu::label\_\-used$<$ L $>$ Struct Template Reference}
\label{df/d03/a00062}\index{mln::accu::label\_\-used@{mln::accu::label\_\-used}}
}


References all the labels used.  




{\ttfamily \#include $<$label\_\-used.hh$>$}



Inherits base$<$ const fun::i2v::array$<$ bool $>$ \&, label\_\-used$<$ L $>$ $>$.

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{a00062_a529dbf440df4d63a2e65614dbcc8b1f5}{init} ()
\begin{DoxyCompactList}\small\item\em Initialize accumulator attributes. \item\end{DoxyCompactList}\item 
bool \hyperlink{a00062_abc83b8ae6d0620d6dcbb2130aa6cd9da}{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 fun::i2v::array$<$ bool $>$ \& \hyperlink{a00062_a8bafc1d4f6cc7dcd76bd41a4cc837698}{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{a00062_a2463bf5e145e06b8ebac23a667cdb9e2}{take} (const argument \&)
\begin{DoxyCompactList}\small\item\em Manipulators. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}


\subsection{Detailed Description}
\subsubsection*{template$<$typename L$>$ struct mln::accu::label\_\-used$<$ L $>$}

References all the labels used. The parameter {\itshape L\/} is the label type. 

Definition at line 53 of file label\_\-used.hh.



\subsection{Member Function Documentation}
\hypertarget{a00062_a529dbf440df4d63a2e65614dbcc8b1f5}{
\index{mln::accu::label\_\-used@{mln::accu::label\_\-used}!init@{init}}
\index{init@{init}!mln::accu::label_used@{mln::accu::label\_\-used}}
\subsubsection[{init}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename L $>$ void {\bf mln::accu::label\_\-used}$<$ L $>$::init (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{df/d03/a00062_a529dbf440df4d63a2e65614dbcc8b1f5}


Initialize accumulator attributes. 



Definition at line 110 of file label\_\-used.hh.

\hypertarget{a00062_abc83b8ae6d0620d6dcbb2130aa6cd9da}{
\index{mln::accu::label\_\-used@{mln::accu::label\_\-used}!is\_\-valid@{is\_\-valid}}
\index{is\_\-valid@{is\_\-valid}!mln::accu::label_used@{mln::accu::label\_\-used}}
\subsubsection[{is\_\-valid}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename L $>$ bool {\bf mln::accu::label\_\-used}$<$ L $>$::is\_\-valid (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{df/d03/a00062_abc83b8ae6d0620d6dcbb2130aa6cd9da}


Check whether this accu is able to return a result. 

Always true here. 

Definition at line 150 of file label\_\-used.hh.

\hypertarget{a00062_a2463bf5e145e06b8ebac23a667cdb9e2}{
\index{mln::accu::label\_\-used@{mln::accu::label\_\-used}!take@{take}}
\index{take@{take}!mln::accu::label_used@{mln::accu::label\_\-used}}
\subsubsection[{take}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename L $>$ void {\bf mln::accu::label\_\-used}$<$ L $>$::take (
\begin{DoxyParamCaption}
\item[{const argument \&}]{ l}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{df/d03/a00062_a2463bf5e145e06b8ebac23a667cdb9e2}


Manipulators. 



Definition at line 118 of file label\_\-used.hh.

\hypertarget{a00026_a745794a4ef16926d3c09ebbaa8b6b557}{
\index{mln::accu::label\_\-used@{mln::accu::label\_\-used}!take\_\-as\_\-init@{take\_\-as\_\-init}}
\index{take\_\-as\_\-init@{take\_\-as\_\-init}!mln::accu::label_used@{mln::accu::label\_\-used}}
\subsubsection[{take\_\-as\_\-init}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf mln::Accumulator}$<$ {\bf label\_\-used}$<$ L $>$  $>$::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::label\_\-used@{mln::accu::label\_\-used}!take\_\-n\_\-times@{take\_\-n\_\-times}}
\index{take\_\-n\_\-times@{take\_\-n\_\-times}!mln::accu::label_used@{mln::accu::label\_\-used}}
\subsubsection[{take\_\-n\_\-times}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf mln::Accumulator}$<$ {\bf label\_\-used}$<$ L $>$  $>$::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{a00062_a8bafc1d4f6cc7dcd76bd41a4cc837698}{
\index{mln::accu::label\_\-used@{mln::accu::label\_\-used}!to\_\-result@{to\_\-result}}
\index{to\_\-result@{to\_\-result}!mln::accu::label_used@{mln::accu::label\_\-used}}
\subsubsection[{to\_\-result}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename L $>$ const fun::i2v::array$<$ bool $>$ \& {\bf mln::accu::label\_\-used}$<$ L $>$::to\_\-result (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{df/d03/a00062_a8bafc1d4f6cc7dcd76bd41a4cc837698}


Get the value of the accumulator. 



Definition at line 142 of file label\_\-used.hh.

