\hypertarget{a00319}{
\section{mln::p\_\-run$<$ P $>$ Class Template Reference}
\label{de/dab/a00319}\index{mln::p\_\-run@{mln::p\_\-run}}
}


\hyperlink{a00329}{Point} set class in run.  




{\ttfamily \#include $<$p\_\-run.hh$>$}



Inherits site\_\-set\_\-base\_\-$<$ P, p\_\-run$<$ P $>$ $>$.

\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef p\_\-run\_\-bkd\_\-piter\_\-$<$ P $>$ \hyperlink{a00319_aee5c4ebfeb5d69e4b32d6eeacff668a6}{bkd\_\-piter}
\begin{DoxyCompactList}\small\item\em Backward \hyperlink{a00345}{Site\_\-Iterator} associated type. \item\end{DoxyCompactList}\item 
typedef P \hyperlink{a00319_a2a131178209cbac7586ee88945b2ddb6}{element}
\begin{DoxyCompactList}\small\item\em Element associated type. \item\end{DoxyCompactList}\item 
typedef p\_\-run\_\-fwd\_\-piter\_\-$<$ P $>$ \hyperlink{a00319_ad6654e7ec148a30412943126ee91177d}{fwd\_\-piter}
\begin{DoxyCompactList}\small\item\em Forward \hyperlink{a00345}{Site\_\-Iterator} associated type. \item\end{DoxyCompactList}\item 
typedef \hyperlink{a00319_ad6654e7ec148a30412943126ee91177d}{fwd\_\-piter} \hyperlink{a00319_a151bac2308050806bbe773887df53e66}{piter}
\begin{DoxyCompactList}\small\item\em \hyperlink{a00345}{Site\_\-Iterator} associated type. \item\end{DoxyCompactList}\item 
typedef p\_\-run\_\-psite$<$ P $>$ \hyperlink{a00319_a02d7239b8d5df7b00106b17e88cd0279}{psite}
\begin{DoxyCompactList}\small\item\em Psite associated type. \item\end{DoxyCompactList}\item 
typedef \hyperlink{a00135}{mln::box}$<$ P $>$ \hyperlink{a00319_a799067a90b6079b889e132126ec8159a}{q\_\-box}
\begin{DoxyCompactList}\small\item\em \hyperlink{a00028}{Box} associated type. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a00135}{mln::box}$<$ P $>$ \hyperlink{a00319_ad75bbdc0c7ae0869a4758bc5c1dc1fe0}{bbox} () const 
\begin{DoxyCompactList}\small\item\em Give the exact bounding box. \item\end{DoxyCompactList}\item 
P \hyperlink{a00319_a973ab4417436e51c46b1f30bfc5c7537}{end} () const 
\begin{DoxyCompactList}\small\item\em Return (compute) the ending point. \item\end{DoxyCompactList}\item 
bool \hyperlink{a00319_a36227b15bb7c57dae58288b922e26e99}{has} (const P \&p) const 
\begin{DoxyCompactList}\small\item\em Test if {\ttfamily p} belongs to this point set. \item\end{DoxyCompactList}\item 
bool \hyperlink{a00319_a4ddaf7754ddb68cacf6ffdb9831a27c6}{has} (const \hyperlink{a00319_a02d7239b8d5df7b00106b17e88cd0279}{psite} \&p) const 
\begin{DoxyCompactList}\small\item\em Test if {\ttfamily p} belongs to this point set. \item\end{DoxyCompactList}\item 
bool \hyperlink{a00319_a7e3d1600ea9a61e38a0eb32eedb0f77e}{has\_\-index} (unsigned short i) const 
\begin{DoxyCompactList}\small\item\em Test if index {\ttfamily i} belongs to this point set. \item\end{DoxyCompactList}\item 
void \hyperlink{a00319_a3d6d2c052c0b629f15a052f643edd7cb}{init} (const P \&start, unsigned short len)
\begin{DoxyCompactList}\small\item\em Set the starting point. \item\end{DoxyCompactList}\item 
bool \hyperlink{a00319_a76d8d624b7737813e9b4d54b4d382421}{is\_\-valid} () const 
\begin{DoxyCompactList}\small\item\em Test if this run is valid, i.e., with length $>$ 0. \item\end{DoxyCompactList}\item 
unsigned short \hyperlink{a00319_a1dd480aa7781bad49ebc29b33c60197f}{length} () const 
\begin{DoxyCompactList}\small\item\em Give the length of the run. \item\end{DoxyCompactList}\item 
std::size\_\-t \hyperlink{a00319_af199cb432150010f2c75ad03ca56937c}{memory\_\-size} () const 
\begin{DoxyCompactList}\small\item\em Return the size of this site set in memory. \item\end{DoxyCompactList}\item 
unsigned \hyperlink{a00319_a6d4c144e7cdfcbd4719fbd4b7eb2eb4f}{nsites} () const 
\begin{DoxyCompactList}\small\item\em Give the number of sites. \item\end{DoxyCompactList}\item 
P \hyperlink{a00319_a74d21fd306bb83a611502cb54495e56e}{operator\mbox{[}$\,$\mbox{]}} (unsigned short i) const 
\begin{DoxyCompactList}\small\item\em Return the {\ttfamily i-\/th} point. \item\end{DoxyCompactList}\item 
\hyperlink{a00319_a37b647ec5118da11e699becba8357c63}{p\_\-run} ()
\begin{DoxyCompactList}\small\item\em Constructor without argument. \item\end{DoxyCompactList}\item 
\hyperlink{a00319_acb93095ccd8d2a747da6697902ef6acc}{p\_\-run} (const P \&start, unsigned short len)
\begin{DoxyCompactList}\small\item\em Constructor. \item\end{DoxyCompactList}\item 
\hyperlink{a00319_a69cb4c00363990764a26d1b3817e810e}{p\_\-run} (const P \&start, const P \&end)
\begin{DoxyCompactList}\small\item\em Constructor. \item\end{DoxyCompactList}\item 
const P \& \hyperlink{a00319_aff2f9e1216fc37ab08695eda14d4d63d}{start} () const 
\begin{DoxyCompactList}\small\item\em Return the starting point. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename P$>$ class mln::p\_\-run$<$ P $>$}

\hyperlink{a00329}{Point} set class in run. This is a mathematical set of points (not a multi-\/set). The parameter {\ttfamily P} shall be a \hyperlink{a00329}{Point} type.

Definition at line 86 of file p\_\-run.hh.



\subsection{Member Typedef Documentation}
\hypertarget{a00319_aee5c4ebfeb5d69e4b32d6eeacff668a6}{
\index{mln::p\_\-run@{mln::p\_\-run}!bkd\_\-piter@{bkd\_\-piter}}
\index{bkd\_\-piter@{bkd\_\-piter}!mln::p_run@{mln::p\_\-run}}
\subsubsection[{bkd\_\-piter}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename P$>$ typedef p\_\-run\_\-bkd\_\-piter\_\-$<$P$>$ {\bf mln::p\_\-run}$<$ P $>$::{\bf bkd\_\-piter}}}
\label{de/dab/a00319_aee5c4ebfeb5d69e4b32d6eeacff668a6}


Backward \hyperlink{a00345}{Site\_\-Iterator} associated type. 



Definition at line 101 of file p\_\-run.hh.

\hypertarget{a00319_a2a131178209cbac7586ee88945b2ddb6}{
\index{mln::p\_\-run@{mln::p\_\-run}!element@{element}}
\index{element@{element}!mln::p_run@{mln::p\_\-run}}
\subsubsection[{element}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename P$>$ typedef P {\bf mln::p\_\-run}$<$ P $>$::{\bf element}}}
\label{de/dab/a00319_a2a131178209cbac7586ee88945b2ddb6}


Element associated type. 



Definition at line 91 of file p\_\-run.hh.

\hypertarget{a00319_ad6654e7ec148a30412943126ee91177d}{
\index{mln::p\_\-run@{mln::p\_\-run}!fwd\_\-piter@{fwd\_\-piter}}
\index{fwd\_\-piter@{fwd\_\-piter}!mln::p_run@{mln::p\_\-run}}
\subsubsection[{fwd\_\-piter}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename P$>$ typedef p\_\-run\_\-fwd\_\-piter\_\-$<$P$>$ {\bf mln::p\_\-run}$<$ P $>$::{\bf fwd\_\-piter}}}
\label{de/dab/a00319_ad6654e7ec148a30412943126ee91177d}


Forward \hyperlink{a00345}{Site\_\-Iterator} associated type. 



Definition at line 98 of file p\_\-run.hh.

\hypertarget{a00319_a151bac2308050806bbe773887df53e66}{
\index{mln::p\_\-run@{mln::p\_\-run}!piter@{piter}}
\index{piter@{piter}!mln::p_run@{mln::p\_\-run}}
\subsubsection[{piter}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename P$>$ typedef {\bf fwd\_\-piter} {\bf mln::p\_\-run}$<$ P $>$::{\bf piter}}}
\label{de/dab/a00319_a151bac2308050806bbe773887df53e66}


\hyperlink{a00345}{Site\_\-Iterator} associated type. 



Definition at line 104 of file p\_\-run.hh.

\hypertarget{a00319_a02d7239b8d5df7b00106b17e88cd0279}{
\index{mln::p\_\-run@{mln::p\_\-run}!psite@{psite}}
\index{psite@{psite}!mln::p_run@{mln::p\_\-run}}
\subsubsection[{psite}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename P$>$ typedef p\_\-run\_\-psite$<$P$>$ {\bf mln::p\_\-run}$<$ P $>$::{\bf psite}}}
\label{de/dab/a00319_a02d7239b8d5df7b00106b17e88cd0279}


Psite associated type. 



Definition at line 95 of file p\_\-run.hh.

\hypertarget{a00319_a799067a90b6079b889e132126ec8159a}{
\index{mln::p\_\-run@{mln::p\_\-run}!q\_\-box@{q\_\-box}}
\index{q\_\-box@{q\_\-box}!mln::p_run@{mln::p\_\-run}}
\subsubsection[{q\_\-box}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename P$>$ typedef {\bf mln::box}$<$P$>$ {\bf mln::p\_\-run}$<$ P $>$::{\bf q\_\-box}}}
\label{de/dab/a00319_a799067a90b6079b889e132126ec8159a}


\hyperlink{a00028}{Box} associated type. 



Definition at line 149 of file p\_\-run.hh.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a00319_a37b647ec5118da11e699becba8357c63}{
\index{mln::p\_\-run@{mln::p\_\-run}!p\_\-run@{p\_\-run}}
\index{p\_\-run@{p\_\-run}!mln::p_run@{mln::p\_\-run}}
\subsubsection[{p\_\-run}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename P $>$ {\bf mln::p\_\-run}$<$ P $>$::{\bf p\_\-run} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/dab/a00319_a37b647ec5118da11e699becba8357c63}


Constructor without argument. 



Definition at line 223 of file p\_\-run.hh.

\hypertarget{a00319_acb93095ccd8d2a747da6697902ef6acc}{
\index{mln::p\_\-run@{mln::p\_\-run}!p\_\-run@{p\_\-run}}
\index{p\_\-run@{p\_\-run}!mln::p_run@{mln::p\_\-run}}
\subsubsection[{p\_\-run}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename P $>$ {\bf mln::p\_\-run}$<$ P $>$::{\bf p\_\-run} (
\begin{DoxyParamCaption}
\item[{const P \&}]{ start, }
\item[{unsigned short}]{ len}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/dab/a00319_acb93095ccd8d2a747da6697902ef6acc}


Constructor. 



Definition at line 230 of file p\_\-run.hh.



References mln::p\_\-run$<$ P $>$::init().

\hypertarget{a00319_a69cb4c00363990764a26d1b3817e810e}{
\index{mln::p\_\-run@{mln::p\_\-run}!p\_\-run@{p\_\-run}}
\index{p\_\-run@{p\_\-run}!mln::p_run@{mln::p\_\-run}}
\subsubsection[{p\_\-run}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename P $>$ {\bf mln::p\_\-run}$<$ P $>$::{\bf p\_\-run} (
\begin{DoxyParamCaption}
\item[{const P \&}]{ start, }
\item[{const P \&}]{ end}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/dab/a00319_a69cb4c00363990764a26d1b3817e810e}


Constructor. 



Definition at line 238 of file p\_\-run.hh.



\subsection{Member Function Documentation}
\hypertarget{a00319_ad75bbdc0c7ae0869a4758bc5c1dc1fe0}{
\index{mln::p\_\-run@{mln::p\_\-run}!bbox@{bbox}}
\index{bbox@{bbox}!mln::p_run@{mln::p\_\-run}}
\subsubsection[{bbox}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename P $>$ {\bf mln::box}$<$ P $>$ {\bf mln::p\_\-run}$<$ P $>$::bbox (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/dab/a00319_ad75bbdc0c7ae0869a4758bc5c1dc1fe0}


Give the exact bounding box. 



Definition at line 267 of file p\_\-run.hh.



References mln::p\_\-run$<$ P $>$::end().

\hypertarget{a00319_a973ab4417436e51c46b1f30bfc5c7537}{
\index{mln::p\_\-run@{mln::p\_\-run}!end@{end}}
\index{end@{end}!mln::p_run@{mln::p\_\-run}}
\subsubsection[{end}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename P $>$ P {\bf mln::p\_\-run}$<$ P $>$::end (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/dab/a00319_a973ab4417436e51c46b1f30bfc5c7537}


Return (compute) the ending point. 



Definition at line 348 of file p\_\-run.hh.



References mln::point$<$ G, C $>$::last\_\-coord().



Referenced by mln::p\_\-run$<$ P $>$::bbox().

\hypertarget{a00319_a4ddaf7754ddb68cacf6ffdb9831a27c6}{
\index{mln::p\_\-run@{mln::p\_\-run}!has@{has}}
\index{has@{has}!mln::p_run@{mln::p\_\-run}}
\subsubsection[{has}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename P $>$ bool {\bf mln::p\_\-run}$<$ P $>$::has (
\begin{DoxyParamCaption}
\item[{const {\bf psite} \&}]{ p}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/dab/a00319_a4ddaf7754ddb68cacf6ffdb9831a27c6}


Test if {\ttfamily p} belongs to this point set. 



Definition at line 276 of file p\_\-run.hh.

\hypertarget{a00319_a36227b15bb7c57dae58288b922e26e99}{
\index{mln::p\_\-run@{mln::p\_\-run}!has@{has}}
\index{has@{has}!mln::p_run@{mln::p\_\-run}}
\subsubsection[{has}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename P $>$ bool {\bf mln::p\_\-run}$<$ P $>$::has (
\begin{DoxyParamCaption}
\item[{const P \&}]{ p}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/dab/a00319_a36227b15bb7c57dae58288b922e26e99}


Test if {\ttfamily p} belongs to this point set. 



Definition at line 289 of file p\_\-run.hh.



References mln::p\_\-run$<$ P $>$::is\_\-valid().

\hypertarget{a00319_a7e3d1600ea9a61e38a0eb32eedb0f77e}{
\index{mln::p\_\-run@{mln::p\_\-run}!has\_\-index@{has\_\-index}}
\index{has\_\-index@{has\_\-index}!mln::p_run@{mln::p\_\-run}}
\subsubsection[{has\_\-index}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename P $>$ bool {\bf mln::p\_\-run}$<$ P $>$::has\_\-index (
\begin{DoxyParamCaption}
\item[{unsigned short}]{ i}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/dab/a00319_a7e3d1600ea9a61e38a0eb32eedb0f77e}


Test if index {\ttfamily i} belongs to this point set. 



Definition at line 302 of file p\_\-run.hh.

\hypertarget{a00319_a3d6d2c052c0b629f15a052f643edd7cb}{
\index{mln::p\_\-run@{mln::p\_\-run}!init@{init}}
\index{init@{init}!mln::p_run@{mln::p\_\-run}}
\subsubsection[{init}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename P $>$ void {\bf mln::p\_\-run}$<$ P $>$::init (
\begin{DoxyParamCaption}
\item[{const P \&}]{ start, }
\item[{unsigned short}]{ len}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/dab/a00319_a3d6d2c052c0b629f15a052f643edd7cb}


Set the starting point. 



Definition at line 249 of file p\_\-run.hh.



Referenced by mln::p\_\-run$<$ P $>$::p\_\-run().

\hypertarget{a00319_a76d8d624b7737813e9b4d54b4d382421}{
\index{mln::p\_\-run@{mln::p\_\-run}!is\_\-valid@{is\_\-valid}}
\index{is\_\-valid@{is\_\-valid}!mln::p_run@{mln::p\_\-run}}
\subsubsection[{is\_\-valid}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename P $>$ bool {\bf mln::p\_\-run}$<$ P $>$::is\_\-valid (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/dab/a00319_a76d8d624b7737813e9b4d54b4d382421}


Test if this run is valid, i.e., with length $>$ 0. 



Definition at line 259 of file p\_\-run.hh.



Referenced by mln::p\_\-run$<$ P $>$::has(), mln::p\_\-run$<$ P $>$::length(), mln::p\_\-run$<$ P $>$::nsites(), and mln::p\_\-run$<$ P $>$::operator\mbox{[}$\,$\mbox{]}().

\hypertarget{a00319_a1dd480aa7781bad49ebc29b33c60197f}{
\index{mln::p\_\-run@{mln::p\_\-run}!length@{length}}
\index{length@{length}!mln::p_run@{mln::p\_\-run}}
\subsubsection[{length}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename P $>$ unsigned short {\bf mln::p\_\-run}$<$ P $>$::length (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/dab/a00319_a1dd480aa7781bad49ebc29b33c60197f}


Give the length of the run. 



Definition at line 319 of file p\_\-run.hh.



References mln::p\_\-run$<$ P $>$::is\_\-valid().

\hypertarget{a00319_af199cb432150010f2c75ad03ca56937c}{
\index{mln::p\_\-run@{mln::p\_\-run}!memory\_\-size@{memory\_\-size}}
\index{memory\_\-size@{memory\_\-size}!mln::p_run@{mln::p\_\-run}}
\subsubsection[{memory\_\-size}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename P $>$ std::size\_\-t {\bf mln::p\_\-run}$<$ P $>$::memory\_\-size (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/dab/a00319_af199cb432150010f2c75ad03ca56937c}


Return the size of this site set in memory. 



Definition at line 358 of file p\_\-run.hh.

\hypertarget{a00319_a6d4c144e7cdfcbd4719fbd4b7eb2eb4f}{
\index{mln::p\_\-run@{mln::p\_\-run}!nsites@{nsites}}
\index{nsites@{nsites}!mln::p_run@{mln::p\_\-run}}
\subsubsection[{nsites}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename P $>$ unsigned {\bf mln::p\_\-run}$<$ P $>$::nsites (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/dab/a00319_a6d4c144e7cdfcbd4719fbd4b7eb2eb4f}


Give the number of sites. 



Definition at line 310 of file p\_\-run.hh.



References mln::p\_\-run$<$ P $>$::is\_\-valid().

\hypertarget{a00319_a74d21fd306bb83a611502cb54495e56e}{
\index{mln::p\_\-run@{mln::p\_\-run}!operator\mbox{[}\mbox{]}@{operator[]}}
\index{operator\mbox{[}\mbox{]}@{operator[]}!mln::p_run@{mln::p\_\-run}}
\subsubsection[{operator[]}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename P $>$ P {\bf mln::p\_\-run}$<$ P $>$::operator\mbox{[}$\,$\mbox{]} (
\begin{DoxyParamCaption}
\item[{unsigned short}]{ i}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/dab/a00319_a74d21fd306bb83a611502cb54495e56e}


Return the {\ttfamily i-\/th} point. 



Definition at line 328 of file p\_\-run.hh.



References mln::p\_\-run$<$ P $>$::is\_\-valid(), and mln::point$<$ G, C $>$::last\_\-coord().

\hypertarget{a00319_aff2f9e1216fc37ab08695eda14d4d63d}{
\index{mln::p\_\-run@{mln::p\_\-run}!start@{start}}
\index{start@{start}!mln::p_run@{mln::p\_\-run}}
\subsubsection[{start}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename P $>$ const P \& {\bf mln::p\_\-run}$<$ P $>$::start (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/dab/a00319_aff2f9e1216fc37ab08695eda14d4d63d}


Return the starting point. 



Definition at line 340 of file p\_\-run.hh.

