\hypertarget{a00414}{
\section{mln::util::tree$<$ T $>$ Class Template Reference}
\label{d4/dbc/a00414}\index{mln::util::tree@{mln::util::tree}}
}


Class of generic tree.  




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

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{a00414_a95b973e4ab7101a596f6f31b6708fb13}{add\_\-tree\_\-down} (T \&elt)
\begin{DoxyCompactList}\small\item\em Bind a new tree downer the current. \item\end{DoxyCompactList}\item 
void \hyperlink{a00414_af98e1b2961e01d5d8e3c830909dff3fd}{add\_\-tree\_\-up} (T \&elt)
\begin{DoxyCompactList}\small\item\em Bind a new tree upper the current. \item\end{DoxyCompactList}\item 
bool \hyperlink{a00414_ae4f0b7a98ead2bbae2c20a9cd66b6b47}{check\_\-consistency} ()
\begin{DoxyCompactList}\small\item\em Check the consistency of the tree. \item\end{DoxyCompactList}\item 
\hyperlink{a00389}{branch}$<$ T $>$ \hyperlink{a00414_a75bcf6b25d7d4fb64dc4b1891feaa28c}{main\_\-branch} ()
\begin{DoxyCompactList}\small\item\em Convert the tree into brach. \item\end{DoxyCompactList}\item 
\hyperlink{a00415}{tree\_\-node}$<$ T $>$ $\ast$ \hyperlink{a00414_a6cca873e733d862d6e773c663c57eae3}{root} ()
\begin{DoxyCompactList}\small\item\em The getter of the root. \item\end{DoxyCompactList}\item 
\hyperlink{a00414_a2e29c4d720b5535a2a4f2868f1c139ad}{tree} ()
\begin{DoxyCompactList}\small\item\em Constructor. \item\end{DoxyCompactList}\item 
\hyperlink{a00414_aec084aede87b25c2fb72a26bc16a7256}{tree} (\hyperlink{a00415}{tree\_\-node}$<$ T $>$ $\ast$root)
\begin{DoxyCompactList}\small\item\em Constructor. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename T$>$ class mln::util::tree$<$ T $>$}

Class of generic tree. 

Definition at line 187 of file tree.hh.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a00414_a2e29c4d720b5535a2a4f2868f1c139ad}{
\index{mln::util::tree@{mln::util::tree}!tree@{tree}}
\index{tree@{tree}!mln::util::tree@{mln::util::tree}}
\subsubsection[{tree}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ {\bf mln::util::tree}$<$ T $>$::{\bf tree} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d4/dbc/a00414_a2e29c4d720b5535a2a4f2868f1c139ad}


Constructor. 



Definition at line 285 of file tree.hh.

\hypertarget{a00414_aec084aede87b25c2fb72a26bc16a7256}{
\index{mln::util::tree@{mln::util::tree}!tree@{tree}}
\index{tree@{tree}!mln::util::tree@{mln::util::tree}}
\subsubsection[{tree}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ {\bf mln::util::tree}$<$ T $>$::{\bf tree} (
\begin{DoxyParamCaption}
\item[{{\bf tree\_\-node}$<$ T $>$ $\ast$}]{ root}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d4/dbc/a00414_aec084aede87b25c2fb72a26bc16a7256}


Constructor. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em root}]The root of the tree. \end{DoxyParams}


Definition at line 292 of file tree.hh.



\subsection{Member Function Documentation}
\hypertarget{a00414_a95b973e4ab7101a596f6f31b6708fb13}{
\index{mln::util::tree@{mln::util::tree}!add\_\-tree\_\-down@{add\_\-tree\_\-down}}
\index{add\_\-tree\_\-down@{add\_\-tree\_\-down}!mln::util::tree@{mln::util::tree}}
\subsubsection[{add\_\-tree\_\-down}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ void {\bf mln::util::tree}$<$ T $>$::add\_\-tree\_\-down (
\begin{DoxyParamCaption}
\item[{T \&}]{ elt}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d4/dbc/a00414_a95b973e4ab7101a596f6f31b6708fb13}


Bind a new tree downer the current. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em elt}]The new value of the new \hyperlink{a00415}{tree\_\-node} of the new tree add downer the current. \end{DoxyParams}


Definition at line 328 of file tree.hh.

\hypertarget{a00414_af98e1b2961e01d5d8e3c830909dff3fd}{
\index{mln::util::tree@{mln::util::tree}!add\_\-tree\_\-up@{add\_\-tree\_\-up}}
\index{add\_\-tree\_\-up@{add\_\-tree\_\-up}!mln::util::tree@{mln::util::tree}}
\subsubsection[{add\_\-tree\_\-up}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ void {\bf mln::util::tree}$<$ T $>$::add\_\-tree\_\-up (
\begin{DoxyParamCaption}
\item[{T \&}]{ elt}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d4/dbc/a00414_af98e1b2961e01d5d8e3c830909dff3fd}


Bind a new tree upper the current. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em elt}]The new value of the new \hyperlink{a00415}{tree\_\-node} of the new tree add upper the current. \end{DoxyParams}


Definition at line 317 of file tree.hh.



References mln::util::tree\_\-node$<$ T $>$::children().

\hypertarget{a00414_ae4f0b7a98ead2bbae2c20a9cd66b6b47}{
\index{mln::util::tree@{mln::util::tree}!check\_\-consistency@{check\_\-consistency}}
\index{check\_\-consistency@{check\_\-consistency}!mln::util::tree@{mln::util::tree}}
\subsubsection[{check\_\-consistency}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ bool {\bf mln::util::tree}$<$ T $>$::check\_\-consistency (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d4/dbc/a00414_ae4f0b7a98ead2bbae2c20a9cd66b6b47}


Check the consistency of the tree. 

\begin{DoxyReturn}{Returns}
true if no error, else false. 
\end{DoxyReturn}


Definition at line 338 of file tree.hh.



References mln::util::tree$<$ T $>$::root().

\hypertarget{a00414_a75bcf6b25d7d4fb64dc4b1891feaa28c}{
\index{mln::util::tree@{mln::util::tree}!main\_\-branch@{main\_\-branch}}
\index{main\_\-branch@{main\_\-branch}!mln::util::tree@{mln::util::tree}}
\subsubsection[{main\_\-branch}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ {\bf branch}$<$ T $>$ {\bf mln::util::tree}$<$ T $>$::main\_\-branch (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d4/dbc/a00414_a75bcf6b25d7d4fb64dc4b1891feaa28c}


Convert the tree into brach. 

\begin{DoxyReturn}{Returns}
The root's \hyperlink{a00415}{tree\_\-node} of the the current tree. 
\end{DoxyReturn}


Definition at line 309 of file tree.hh.



References mln::util::tree$<$ T $>$::root().

\hypertarget{a00414_a6cca873e733d862d6e773c663c57eae3}{
\index{mln::util::tree@{mln::util::tree}!root@{root}}
\index{root@{root}!mln::util::tree@{mln::util::tree}}
\subsubsection[{root}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ {\bf tree\_\-node}$<$ T $>$ $\ast$ {\bf mln::util::tree}$<$ T $>$::root (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d4/dbc/a00414_a6cca873e733d862d6e773c663c57eae3}


The getter of the root. 

\begin{DoxyReturn}{Returns}
The root's \hyperlink{a00415}{tree\_\-node} of the the current tree. 
\end{DoxyReturn}


Definition at line 301 of file tree.hh.



Referenced by mln::util::tree$<$ T $>$::check\_\-consistency(), mln::util::display\_\-tree(), mln::util::tree$<$ T $>$::main\_\-branch(), and mln::util::tree\_\-to\_\-fast().

