\hypertarget{a00313}{
\section{mln::p\_\-mutable\_\-array\_\-of$<$ S $>$ Class Template Reference}
\label{dd/db3/a00313}\index{mln::p\_\-mutable\_\-array\_\-of@{mln::p\_\-mutable\_\-array\_\-of}}
}


\hyperlink{a00313}{p\_\-mutable\_\-array\_\-of} is a mutable array of site sets.  




{\ttfamily \#include $<$p\_\-mutable\_\-array\_\-of.hh$>$}



Inherits site\_\-set\_\-base\_\-$<$ S::site, p\_\-mutable\_\-array\_\-of$<$ S $>$ $>$.

\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef p\_\-double\_\-piter$<$ \hyperlink{a00313}{self\_\-}, mln\_\-bkd\_\-eiter(\hyperlink{a00027}{array\_\-}), typename S::bkd\_\-piter $>$ \hyperlink{a00313_a93c8e25da375c69ed437b68e393809e3}{bkd\_\-piter}
\begin{DoxyCompactList}\small\item\em Backward \hyperlink{a00345}{Site\_\-Iterator} associated type. \item\end{DoxyCompactList}\item 
typedef S \hyperlink{a00313_a7d541c0ada985794e1833d5122657ed4}{element}
\begin{DoxyCompactList}\small\item\em Element associated type. \item\end{DoxyCompactList}\item 
typedef p\_\-double\_\-piter$<$ \hyperlink{a00313}{self\_\-}, mln\_\-fwd\_\-eiter(\hyperlink{a00027}{array\_\-}), typename S::fwd\_\-piter $>$ \hyperlink{a00313_ac9d3aa5ed0b36cbaf2afdc6d6f997194}{fwd\_\-piter}
\begin{DoxyCompactList}\small\item\em Forward \hyperlink{a00345}{Site\_\-Iterator} associated type. \item\end{DoxyCompactList}\item 
typedef S \hyperlink{a00313_ac612b15d8314da340909274b59cd6c45}{i\_\-element}
\begin{DoxyCompactList}\small\item\em Insertion element associated type. \item\end{DoxyCompactList}\item 
typedef \hyperlink{a00313_ac9d3aa5ed0b36cbaf2afdc6d6f997194}{fwd\_\-piter} \hyperlink{a00313_ad7715607ed2b39859e0214115e012222}{piter}
\begin{DoxyCompactList}\small\item\em \hyperlink{a00345}{Site\_\-Iterator} associated type. \item\end{DoxyCompactList}\item 
typedef p\_\-double\_\-psite$<$ \hyperlink{a00313}{self\_\-}, \hyperlink{a00313_a7d541c0ada985794e1833d5122657ed4}{element} $>$ \hyperlink{a00313_a72d85ec718e055fe14a5ff8c8a53b632}{psite}
\begin{DoxyCompactList}\small\item\em Psite associated type. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{a00313_af843f2e483e16f01cb650bc6381f3631}{clear} ()
\begin{DoxyCompactList}\small\item\em Clear this set. \item\end{DoxyCompactList}\item 
bool \hyperlink{a00313_a4c706d1aec26bf8c9d166d80d1b03902}{has} (const \hyperlink{a00313_a72d85ec718e055fe14a5ff8c8a53b632}{psite} \&p) const 
\begin{DoxyCompactList}\small\item\em Test if {\ttfamily p} belongs to this point set. \item\end{DoxyCompactList}\item 
void \hyperlink{a00313_a32ac188e77c0345d6c5b32e022b9529c}{insert} (const S \&s)
\begin{DoxyCompactList}\small\item\em Insert a site set {\ttfamily s}. \item\end{DoxyCompactList}\item 
bool \hyperlink{a00313_ab8159e4a3ffe840ce9564d7d9aa0ebf5}{is\_\-valid} () const 
\begin{DoxyCompactList}\small\item\em Test this set validity so returns always true. \item\end{DoxyCompactList}\item 
std::size\_\-t \hyperlink{a00313_ad2ae99abe9d313bd93a229a17ab3d29c}{memory\_\-size} () const 
\begin{DoxyCompactList}\small\item\em Return the size of this site set in memory. \item\end{DoxyCompactList}\item 
unsigned \hyperlink{a00313_a770fdcb7660a4b717e13917e5a52c70c}{nelements} () const 
\begin{DoxyCompactList}\small\item\em Give the number of elements (site sets) of this composite. \item\end{DoxyCompactList}\item 
S \& \hyperlink{a00313_a78543cb608e751410a5fd7896db8399f}{operator\mbox{[}$\,$\mbox{]}} (unsigned i)
\begin{DoxyCompactList}\small\item\em Return the {\ttfamily i-\/th} site set (mutable version). \item\end{DoxyCompactList}\item 
const S \& \hyperlink{a00313_a1bbff12c71fa25b8047efaffe39574ac}{operator\mbox{[}$\,$\mbox{]}} (unsigned i) const 
\begin{DoxyCompactList}\small\item\em Return the {\ttfamily i-\/th} site set (const version). \item\end{DoxyCompactList}\item 
\hyperlink{a00313_abea18fb5684c29530e76fa4973aba46c}{p\_\-mutable\_\-array\_\-of} ()
\begin{DoxyCompactList}\small\item\em Constructor without arguments. \item\end{DoxyCompactList}\item 
void \hyperlink{a00313_a9ebf761d3ca93ed95e433706e5a6d278}{reserve} (unsigned n)
\begin{DoxyCompactList}\small\item\em Reserve memory for {\ttfamily n} elements. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename S$>$ class mln::p\_\-mutable\_\-array\_\-of$<$ S $>$}

\hyperlink{a00313}{p\_\-mutable\_\-array\_\-of} is a mutable array of site sets. Parameter {\ttfamily S} is the type of the contained site sets. 

Definition at line 76 of file p\_\-mutable\_\-array\_\-of.hh.



\subsection{Member Typedef Documentation}
\hypertarget{a00313_a93c8e25da375c69ed437b68e393809e3}{
\index{mln::p\_\-mutable\_\-array\_\-of@{mln::p\_\-mutable\_\-array\_\-of}!bkd\_\-piter@{bkd\_\-piter}}
\index{bkd\_\-piter@{bkd\_\-piter}!mln::p_mutable_array_of@{mln::p\_\-mutable\_\-array\_\-of}}
\subsubsection[{bkd\_\-piter}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ typedef p\_\-double\_\-piter$<${\bf self\_\-}, mln\_\-bkd\_\-eiter({\bf array\_\-}), typename S ::{\bf bkd\_\-piter}$>$ {\bf mln::p\_\-mutable\_\-array\_\-of}$<$ S $>$::{\bf bkd\_\-piter}}}
\label{dd/db3/a00313_a93c8e25da375c69ed437b68e393809e3}


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



Definition at line 99 of file p\_\-mutable\_\-array\_\-of.hh.

\hypertarget{a00313_a7d541c0ada985794e1833d5122657ed4}{
\index{mln::p\_\-mutable\_\-array\_\-of@{mln::p\_\-mutable\_\-array\_\-of}!element@{element}}
\index{element@{element}!mln::p_mutable_array_of@{mln::p\_\-mutable\_\-array\_\-of}}
\subsubsection[{element}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ typedef S {\bf mln::p\_\-mutable\_\-array\_\-of}$<$ S $>$::{\bf element}}}
\label{dd/db3/a00313_a7d541c0ada985794e1833d5122657ed4}


Element associated type. 



Definition at line 85 of file p\_\-mutable\_\-array\_\-of.hh.

\hypertarget{a00313_ac9d3aa5ed0b36cbaf2afdc6d6f997194}{
\index{mln::p\_\-mutable\_\-array\_\-of@{mln::p\_\-mutable\_\-array\_\-of}!fwd\_\-piter@{fwd\_\-piter}}
\index{fwd\_\-piter@{fwd\_\-piter}!mln::p_mutable_array_of@{mln::p\_\-mutable\_\-array\_\-of}}
\subsubsection[{fwd\_\-piter}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ typedef p\_\-double\_\-piter$<${\bf self\_\-}, mln\_\-fwd\_\-eiter({\bf array\_\-}), typename S ::{\bf fwd\_\-piter}$>$ {\bf mln::p\_\-mutable\_\-array\_\-of}$<$ S $>$::{\bf fwd\_\-piter}}}
\label{dd/db3/a00313_ac9d3aa5ed0b36cbaf2afdc6d6f997194}


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



Definition at line 94 of file p\_\-mutable\_\-array\_\-of.hh.

\hypertarget{a00313_ac612b15d8314da340909274b59cd6c45}{
\index{mln::p\_\-mutable\_\-array\_\-of@{mln::p\_\-mutable\_\-array\_\-of}!i\_\-element@{i\_\-element}}
\index{i\_\-element@{i\_\-element}!mln::p_mutable_array_of@{mln::p\_\-mutable\_\-array\_\-of}}
\subsubsection[{i\_\-element}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ typedef S {\bf mln::p\_\-mutable\_\-array\_\-of}$<$ S $>$::{\bf i\_\-element}}}
\label{dd/db3/a00313_ac612b15d8314da340909274b59cd6c45}


Insertion element associated type. 



Definition at line 121 of file p\_\-mutable\_\-array\_\-of.hh.

\hypertarget{a00313_ad7715607ed2b39859e0214115e012222}{
\index{mln::p\_\-mutable\_\-array\_\-of@{mln::p\_\-mutable\_\-array\_\-of}!piter@{piter}}
\index{piter@{piter}!mln::p_mutable_array_of@{mln::p\_\-mutable\_\-array\_\-of}}
\subsubsection[{piter}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ typedef {\bf fwd\_\-piter} {\bf mln::p\_\-mutable\_\-array\_\-of}$<$ S $>$::{\bf piter}}}
\label{dd/db3/a00313_ad7715607ed2b39859e0214115e012222}


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



Definition at line 102 of file p\_\-mutable\_\-array\_\-of.hh.

\hypertarget{a00313_a72d85ec718e055fe14a5ff8c8a53b632}{
\index{mln::p\_\-mutable\_\-array\_\-of@{mln::p\_\-mutable\_\-array\_\-of}!psite@{psite}}
\index{psite@{psite}!mln::p_mutable_array_of@{mln::p\_\-mutable\_\-array\_\-of}}
\subsubsection[{psite}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ typedef p\_\-double\_\-psite$<${\bf self\_\-}, {\bf element}$>$ {\bf mln::p\_\-mutable\_\-array\_\-of}$<$ S $>$::{\bf psite}}}
\label{dd/db3/a00313_a72d85ec718e055fe14a5ff8c8a53b632}


Psite associated type. 



Definition at line 89 of file p\_\-mutable\_\-array\_\-of.hh.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a00313_abea18fb5684c29530e76fa4973aba46c}{
\index{mln::p\_\-mutable\_\-array\_\-of@{mln::p\_\-mutable\_\-array\_\-of}!p\_\-mutable\_\-array\_\-of@{p\_\-mutable\_\-array\_\-of}}
\index{p\_\-mutable\_\-array\_\-of@{p\_\-mutable\_\-array\_\-of}!mln::p_mutable_array_of@{mln::p\_\-mutable\_\-array\_\-of}}
\subsubsection[{p\_\-mutable\_\-array\_\-of}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ {\bf mln::p\_\-mutable\_\-array\_\-of}$<$ S $>$::{\bf p\_\-mutable\_\-array\_\-of} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{dd/db3/a00313_abea18fb5684c29530e76fa4973aba46c}


Constructor without arguments. 



Definition at line 175 of file p\_\-mutable\_\-array\_\-of.hh.



\subsection{Member Function Documentation}
\hypertarget{a00313_af843f2e483e16f01cb650bc6381f3631}{
\index{mln::p\_\-mutable\_\-array\_\-of@{mln::p\_\-mutable\_\-array\_\-of}!clear@{clear}}
\index{clear@{clear}!mln::p_mutable_array_of@{mln::p\_\-mutable\_\-array\_\-of}}
\subsubsection[{clear}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ void {\bf mln::p\_\-mutable\_\-array\_\-of}$<$ S $>$::clear (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{dd/db3/a00313_af843f2e483e16f01cb650bc6381f3631}


Clear this set. 



Definition at line 241 of file p\_\-mutable\_\-array\_\-of.hh.

\hypertarget{a00313_a4c706d1aec26bf8c9d166d80d1b03902}{
\index{mln::p\_\-mutable\_\-array\_\-of@{mln::p\_\-mutable\_\-array\_\-of}!has@{has}}
\index{has@{has}!mln::p_mutable_array_of@{mln::p\_\-mutable\_\-array\_\-of}}
\subsubsection[{has}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ bool {\bf mln::p\_\-mutable\_\-array\_\-of}$<$ S $>$::has (
\begin{DoxyParamCaption}
\item[{const {\bf psite} \&}]{ p}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{dd/db3/a00313_a4c706d1aec26bf8c9d166d80d1b03902}


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



Definition at line 190 of file p\_\-mutable\_\-array\_\-of.hh.

\hypertarget{a00313_a32ac188e77c0345d6c5b32e022b9529c}{
\index{mln::p\_\-mutable\_\-array\_\-of@{mln::p\_\-mutable\_\-array\_\-of}!insert@{insert}}
\index{insert@{insert}!mln::p_mutable_array_of@{mln::p\_\-mutable\_\-array\_\-of}}
\subsubsection[{insert}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ void {\bf mln::p\_\-mutable\_\-array\_\-of}$<$ S $>$::insert (
\begin{DoxyParamCaption}
\item[{const S \&}]{ s}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{dd/db3/a00313_a32ac188e77c0345d6c5b32e022b9529c}


Insert a site set {\ttfamily s}. 

\begin{DoxyPrecond}{Precondition}
{\ttfamily s} is valid. 
\end{DoxyPrecond}


Definition at line 206 of file p\_\-mutable\_\-array\_\-of.hh.

\hypertarget{a00313_ab8159e4a3ffe840ce9564d7d9aa0ebf5}{
\index{mln::p\_\-mutable\_\-array\_\-of@{mln::p\_\-mutable\_\-array\_\-of}!is\_\-valid@{is\_\-valid}}
\index{is\_\-valid@{is\_\-valid}!mln::p_mutable_array_of@{mln::p\_\-mutable\_\-array\_\-of}}
\subsubsection[{is\_\-valid}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ bool {\bf mln::p\_\-mutable\_\-array\_\-of}$<$ S $>$::is\_\-valid (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{dd/db3/a00313_ab8159e4a3ffe840ce9564d7d9aa0ebf5}


Test this set validity so returns always true. 



Definition at line 198 of file p\_\-mutable\_\-array\_\-of.hh.

\hypertarget{a00313_ad2ae99abe9d313bd93a229a17ab3d29c}{
\index{mln::p\_\-mutable\_\-array\_\-of@{mln::p\_\-mutable\_\-array\_\-of}!memory\_\-size@{memory\_\-size}}
\index{memory\_\-size@{memory\_\-size}!mln::p_mutable_array_of@{mln::p\_\-mutable\_\-array\_\-of}}
\subsubsection[{memory\_\-size}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ std::size\_\-t {\bf mln::p\_\-mutable\_\-array\_\-of}$<$ S $>$::memory\_\-size (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{dd/db3/a00313_ad2ae99abe9d313bd93a229a17ab3d29c}


Return the size of this site set in memory. 



Definition at line 258 of file p\_\-mutable\_\-array\_\-of.hh.

\hypertarget{a00313_a770fdcb7660a4b717e13917e5a52c70c}{
\index{mln::p\_\-mutable\_\-array\_\-of@{mln::p\_\-mutable\_\-array\_\-of}!nelements@{nelements}}
\index{nelements@{nelements}!mln::p_mutable_array_of@{mln::p\_\-mutable\_\-array\_\-of}}
\subsubsection[{nelements}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ unsigned {\bf mln::p\_\-mutable\_\-array\_\-of}$<$ S $>$::nelements (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{dd/db3/a00313_a770fdcb7660a4b717e13917e5a52c70c}


Give the number of elements (site sets) of this composite. 



Definition at line 233 of file p\_\-mutable\_\-array\_\-of.hh.

\hypertarget{a00313_a78543cb608e751410a5fd7896db8399f}{
\index{mln::p\_\-mutable\_\-array\_\-of@{mln::p\_\-mutable\_\-array\_\-of}!operator\mbox{[}\mbox{]}@{operator[]}}
\index{operator\mbox{[}\mbox{]}@{operator[]}!mln::p_mutable_array_of@{mln::p\_\-mutable\_\-array\_\-of}}
\subsubsection[{operator[]}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ S \& {\bf mln::p\_\-mutable\_\-array\_\-of}$<$ S $>$::operator\mbox{[}$\,$\mbox{]} (
\begin{DoxyParamCaption}
\item[{unsigned}]{ i}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{dd/db3/a00313_a78543cb608e751410a5fd7896db8399f}


Return the {\ttfamily i-\/th} site set (mutable version). 



Definition at line 224 of file p\_\-mutable\_\-array\_\-of.hh.

\hypertarget{a00313_a1bbff12c71fa25b8047efaffe39574ac}{
\index{mln::p\_\-mutable\_\-array\_\-of@{mln::p\_\-mutable\_\-array\_\-of}!operator\mbox{[}\mbox{]}@{operator[]}}
\index{operator\mbox{[}\mbox{]}@{operator[]}!mln::p_mutable_array_of@{mln::p\_\-mutable\_\-array\_\-of}}
\subsubsection[{operator[]}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ const S \& {\bf mln::p\_\-mutable\_\-array\_\-of}$<$ S $>$::operator\mbox{[}$\,$\mbox{]} (
\begin{DoxyParamCaption}
\item[{unsigned}]{ i}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{dd/db3/a00313_a1bbff12c71fa25b8047efaffe39574ac}


Return the {\ttfamily i-\/th} site set (const version). 



Definition at line 215 of file p\_\-mutable\_\-array\_\-of.hh.

\hypertarget{a00313_a9ebf761d3ca93ed95e433706e5a6d278}{
\index{mln::p\_\-mutable\_\-array\_\-of@{mln::p\_\-mutable\_\-array\_\-of}!reserve@{reserve}}
\index{reserve@{reserve}!mln::p_mutable_array_of@{mln::p\_\-mutable\_\-array\_\-of}}
\subsubsection[{reserve}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ void {\bf mln::p\_\-mutable\_\-array\_\-of}$<$ S $>$::reserve (
\begin{DoxyParamCaption}
\item[{unsigned}]{ n}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{dd/db3/a00313_a9ebf761d3ca93ed95e433706e5a6d278}


Reserve memory for {\ttfamily n} elements. 



Definition at line 182 of file p\_\-mutable\_\-array\_\-of.hh.

