\hypertarget{a00064}{
\section{mln::accu::logic::land\_\-basic Struct Reference}
\label{df/d5f/a00064}\index{mln::accu::logic::land\_\-basic@{mln::accu::logic::land\_\-basic}}
}


\char`\"{}Logical-\/and\char`\"{} accumulator.  




{\ttfamily \#include $<$land\_\-basic.hh$>$}



Inherits base$<$ bool, land\_\-basic $>$.

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{a00064_a611633409106943966e0fbf7323f9d7e}{can\_\-stop} () const 
\begin{DoxyCompactList}\small\item\em Test if it is worth for this accumulator to take extra data. \item\end{DoxyCompactList}\item 
bool \hyperlink{a00064_a0ed33160f8e4ddf44c64c172c8ea1b23}{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 
bool \hyperlink{a00064_a76cf4c6817d5919cf3930daae93fbd32}{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{a00064_a1a4bc305dbff53b57bb57a5ac4dadf4a}{init} ()
\begin{DoxyCompactList}\small\item\em Manipulators. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}


\subsection{Detailed Description}
\char`\"{}Logical-\/and\char`\"{} accumulator. Conversely to \hyperlink{a00063}{accu::logic::land}, this version does not have the 'untake' method but features the 'can\_\-stop' method. 

Definition at line 99 of file land\_\-basic.hh.



\subsection{Member Function Documentation}
\hypertarget{a00064_a611633409106943966e0fbf7323f9d7e}{
\index{mln::accu::logic::land\_\-basic@{mln::accu::logic::land\_\-basic}!can\_\-stop@{can\_\-stop}}
\index{can\_\-stop@{can\_\-stop}!mln::accu::logic::land_basic@{mln::accu::logic::land\_\-basic}}
\subsubsection[{can\_\-stop}]{\setlength{\rightskip}{0pt plus 5cm}bool mln::accu::logic::land\_\-basic::can\_\-stop (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{df/d5f/a00064_a611633409106943966e0fbf7323f9d7e}


Test if it is worth for this accumulator to take extra data. 

If the result is already 'false' (because this accumulator has already taken a 'false' value), can\_\-stop returns true. 

Definition at line 181 of file land\_\-basic.hh.

\hypertarget{a00064_a1a4bc305dbff53b57bb57a5ac4dadf4a}{
\index{mln::accu::logic::land\_\-basic@{mln::accu::logic::land\_\-basic}!init@{init}}
\index{init@{init}!mln::accu::logic::land_basic@{mln::accu::logic::land\_\-basic}}
\subsubsection[{init}]{\setlength{\rightskip}{0pt plus 5cm}void mln::accu::logic::land\_\-basic::init (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{df/d5f/a00064_a1a4bc305dbff53b57bb57a5ac4dadf4a}


Manipulators. 



Definition at line 140 of file land\_\-basic.hh.

\hypertarget{a00064_a0ed33160f8e4ddf44c64c172c8ea1b23}{
\index{mln::accu::logic::land\_\-basic@{mln::accu::logic::land\_\-basic}!is\_\-valid@{is\_\-valid}}
\index{is\_\-valid@{is\_\-valid}!mln::accu::logic::land_basic@{mln::accu::logic::land\_\-basic}}
\subsubsection[{is\_\-valid}]{\setlength{\rightskip}{0pt plus 5cm}bool mln::accu::logic::land\_\-basic::is\_\-valid (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{df/d5f/a00064_a0ed33160f8e4ddf44c64c172c8ea1b23}


Check whether this accu is able to return a result. 

Always true here. 

Definition at line 174 of file land\_\-basic.hh.

\hypertarget{a00026_a745794a4ef16926d3c09ebbaa8b6b557}{
\index{mln::accu::logic::land\_\-basic@{mln::accu::logic::land\_\-basic}!take\_\-as\_\-init@{take\_\-as\_\-init}}
\index{take\_\-as\_\-init@{take\_\-as\_\-init}!mln::accu::logic::land_basic@{mln::accu::logic::land\_\-basic}}
\subsubsection[{take\_\-as\_\-init}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf mln::Accumulator}$<$ {\bf land\_\-basic}  $>$::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::logic::land\_\-basic@{mln::accu::logic::land\_\-basic}!take\_\-n\_\-times@{take\_\-n\_\-times}}
\index{take\_\-n\_\-times@{take\_\-n\_\-times}!mln::accu::logic::land_basic@{mln::accu::logic::land\_\-basic}}
\subsubsection[{take\_\-n\_\-times}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf mln::Accumulator}$<$ {\bf land\_\-basic}  $>$::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{a00064_a76cf4c6817d5919cf3930daae93fbd32}{
\index{mln::accu::logic::land\_\-basic@{mln::accu::logic::land\_\-basic}!to\_\-result@{to\_\-result}}
\index{to\_\-result@{to\_\-result}!mln::accu::logic::land_basic@{mln::accu::logic::land\_\-basic}}
\subsubsection[{to\_\-result}]{\setlength{\rightskip}{0pt plus 5cm}bool mln::accu::logic::land\_\-basic::to\_\-result (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{df/d5f/a00064_a76cf4c6817d5919cf3930daae93fbd32}


Get the value of the accumulator. 



Definition at line 167 of file land\_\-basic.hh.

