\hypertarget{a00066}{
\section{mln::accu::logic::lor\_\-basic Struct Reference}
\label{d9/db3/a00066}\index{mln::accu::logic::lor\_\-basic@{mln::accu::logic::lor\_\-basic}}
}


\char`\"{}Logical-\/or\char`\"{} accumulator class.  




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



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

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{a00066_aa7b37f06913b42f3d1b8e5cda650ba04}{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{a00066_ab6c1045804ba3484f79dcc96bd670db9}{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{a00066_a844501b80b7d4d70fed2fd654eabf517}{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{a00066_ab6bbbc25deb2dd0f1d16fb8285d3a698}{init} ()
\begin{DoxyCompactList}\small\item\em Manipulators. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}


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

Definition at line 98 of file lor\_\-basic.hh.



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


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

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

Definition at line 180 of file lor\_\-basic.hh.

\hypertarget{a00066_ab6bbbc25deb2dd0f1d16fb8285d3a698}{
\index{mln::accu::logic::lor\_\-basic@{mln::accu::logic::lor\_\-basic}!init@{init}}
\index{init@{init}!mln::accu::logic::lor_basic@{mln::accu::logic::lor\_\-basic}}
\subsubsection[{init}]{\setlength{\rightskip}{0pt plus 5cm}void mln::accu::logic::lor\_\-basic::init (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d9/db3/a00066_ab6bbbc25deb2dd0f1d16fb8285d3a698}


Manipulators. 



Definition at line 139 of file lor\_\-basic.hh.

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


Check whether this accu is able to return a result. 

Always true here. 

Definition at line 173 of file lor\_\-basic.hh.

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


Get the value of the accumulator. 



Definition at line 166 of file lor\_\-basic.hh.

