\hypertarget{a00290}{
\section{mln::morpho::attribute::count\_\-adjacent\_\-vertices$<$ I $>$ Struct Template Reference}
\label{de/d25/a00290}\index{mln::morpho::attribute::count\_\-adjacent\_\-vertices@{mln::morpho::attribute::count\_\-adjacent\_\-vertices}}
}


Count\_\-Adjacent\_\-Vertices accumulator class.  




{\ttfamily \#include $<$count\_\-adjacent\_\-vertices.hh$>$}



Inherits base$<$ unsigned, count\_\-adjacent\_\-vertices$<$ I $>$ $>$.

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{a00290_af8b576b4057106b4139942347b35d743}{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 
unsigned \hyperlink{a00290_a21a6d5e9fddc0d77831ea39fc90b807e}{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{a00290_a5b265e02aa132b658543d53861589438}{init} ()
\begin{DoxyCompactList}\small\item\em Manipulators. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}


\subsection{Detailed Description}
\subsubsection*{template$<$typename I$>$ struct mln::morpho::attribute::count\_\-adjacent\_\-vertices$<$ I $>$}

Count\_\-Adjacent\_\-Vertices accumulator class. The parameter {\ttfamily I} is the image type on which the accumulator of pixels is built. 

Definition at line 83 of file morpho/attribute/count\_\-adjacent\_\-vertices.hh.



\subsection{Member Function Documentation}
\hypertarget{a00290_a5b265e02aa132b658543d53861589438}{
\index{mln::morpho::attribute::count\_\-adjacent\_\-vertices@{mln::morpho::attribute::count\_\-adjacent\_\-vertices}!init@{init}}
\index{init@{init}!mln::morpho::attribute::count_adjacent_vertices@{mln::morpho::attribute::count\_\-adjacent\_\-vertices}}
\subsubsection[{init}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ void {\bf mln::morpho::attribute::count\_\-adjacent\_\-vertices}$<$ I $>$::init (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d25/a00290_a5b265e02aa132b658543d53861589438}


Manipulators. 



Definition at line 132 of file morpho/attribute/count\_\-adjacent\_\-vertices.hh.

\hypertarget{a00290_af8b576b4057106b4139942347b35d743}{
\index{mln::morpho::attribute::count\_\-adjacent\_\-vertices@{mln::morpho::attribute::count\_\-adjacent\_\-vertices}!is\_\-valid@{is\_\-valid}}
\index{is\_\-valid@{is\_\-valid}!mln::morpho::attribute::count_adjacent_vertices@{mln::morpho::attribute::count\_\-adjacent\_\-vertices}}
\subsubsection[{is\_\-valid}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ bool {\bf mln::morpho::attribute::count\_\-adjacent\_\-vertices}$<$ I $>$::is\_\-valid (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d25/a00290_af8b576b4057106b4139942347b35d743}


Check whether this accu is able to return a result. 



Definition at line 185 of file morpho/attribute/count\_\-adjacent\_\-vertices.hh.

\hypertarget{a00026_a745794a4ef16926d3c09ebbaa8b6b557}{
\index{mln::morpho::attribute::count\_\-adjacent\_\-vertices@{mln::morpho::attribute::count\_\-adjacent\_\-vertices}!take\_\-as\_\-init@{take\_\-as\_\-init}}
\index{take\_\-as\_\-init@{take\_\-as\_\-init}!mln::morpho::attribute::count_adjacent_vertices@{mln::morpho::attribute::count\_\-adjacent\_\-vertices}}
\subsubsection[{take\_\-as\_\-init}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf mln::Accumulator}$<$ {\bf count\_\-adjacent\_\-vertices}$<$ I $>$  $>$::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::morpho::attribute::count\_\-adjacent\_\-vertices@{mln::morpho::attribute::count\_\-adjacent\_\-vertices}!take\_\-n\_\-times@{take\_\-n\_\-times}}
\index{take\_\-n\_\-times@{take\_\-n\_\-times}!mln::morpho::attribute::count_adjacent_vertices@{mln::morpho::attribute::count\_\-adjacent\_\-vertices}}
\subsubsection[{take\_\-n\_\-times}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf mln::Accumulator}$<$ {\bf count\_\-adjacent\_\-vertices}$<$ I $>$  $>$::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{a00290_a21a6d5e9fddc0d77831ea39fc90b807e}{
\index{mln::morpho::attribute::count\_\-adjacent\_\-vertices@{mln::morpho::attribute::count\_\-adjacent\_\-vertices}!to\_\-result@{to\_\-result}}
\index{to\_\-result@{to\_\-result}!mln::morpho::attribute::count_adjacent_vertices@{mln::morpho::attribute::count\_\-adjacent\_\-vertices}}
\subsubsection[{to\_\-result}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ unsigned {\bf mln::morpho::attribute::count\_\-adjacent\_\-vertices}$<$ I $>$::to\_\-result (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d25/a00290_a21a6d5e9fddc0d77831ea39fc90b807e}


Get the value of the accumulator. 



Definition at line 169 of file morpho/attribute/count\_\-adjacent\_\-vertices.hh.

