\hypertarget{a00302}{
\section{mln::p\_\-complex$<$ D, G $>$ Class Template Reference}
\label{d0/d61/a00302}\index{mln::p\_\-complex@{mln::p\_\-complex}}
}


A complex psite set based on the N-\/faces of a complex of dimension {\ttfamily D} (a {\ttfamily D-\/complex}).  




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



Inherits site\_\-set\_\-base\_\-$<$ complex\_\-psite$<$ D, G $>$, p\_\-complex$<$ D, G $>$ $>$.

\subsection*{Public Types}
\begin{Indent}{\bf }\par
{\em \label{_amgrpd41d8cd98f00b204e9800998ecf8427e}
 }\begin{DoxyCompactItemize}
\item 
typedef super\_\-::site \hyperlink{a00302_a4c36ab50757523cafa7dde39e866414f}{element}
\begin{DoxyCompactList}\small\item\em Associated types. \item\end{DoxyCompactList}\item 
typedef \hyperlink{a00154}{complex\_\-psite}$<$ D, G $>$ \hyperlink{a00302_a25fb8ea6f6d299695ce2055f865c3941}{psite}
\begin{DoxyCompactList}\small\item\em \hyperlink{a00331}{Point\_\-Site} associated type. \item\end{DoxyCompactList}\item 
typedef p\_\-complex\_\-fwd\_\-piter\_\-$<$ D, G $>$ \hyperlink{a00302_a1d39c2f6040e61d034a38c81110c3a16}{fwd\_\-piter}
\begin{DoxyCompactList}\small\item\em Forward \hyperlink{a00345}{Site\_\-Iterator} associated type. \item\end{DoxyCompactList}\item 
typedef p\_\-complex\_\-bkd\_\-piter\_\-$<$ D, G $>$ \hyperlink{a00302_a0dd3e49c1797caaa9cd2e257d1cc6a18}{bkd\_\-piter}
\begin{DoxyCompactList}\small\item\em Backward \hyperlink{a00345}{Site\_\-Iterator} associated type. \item\end{DoxyCompactList}\item 
typedef \hyperlink{a00302_a1d39c2f6040e61d034a38c81110c3a16}{fwd\_\-piter} \hyperlink{a00302_a02de39f3271e46484743187984106018}{piter}
\begin{DoxyCompactList}\small\item\em \hyperlink{a00345}{Site\_\-Iterator} associated type. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{a00302_a5c5240fab1da19f40d019da4573c1a54}{has} (const \hyperlink{a00154}{psite} \&p) const 
\begin{DoxyCompactList}\small\item\em Does this site set has {\itshape p\/}? \item\end{DoxyCompactList}\item 
bool \hyperlink{a00302_a721f6857a2ace27b86306aed49416d32}{is\_\-valid} () const 
\begin{DoxyCompactList}\small\item\em Is this site set valid? \item\end{DoxyCompactList}\item 
unsigned \hyperlink{a00302_ab2128373486246860c6e81dc6f570d44}{nfaces} () const 
\begin{DoxyCompactList}\small\item\em Return the number of faces in the complex. \item\end{DoxyCompactList}\item 
unsigned \hyperlink{a00302_ad398e087f3dba651c7276d2bb3ef92c4}{nfaces\_\-of\_\-dim} (unsigned n) const 
\begin{DoxyCompactList}\small\item\em Return the number of {\itshape n-\/faces\/} in the complex. \item\end{DoxyCompactList}\item 
unsigned \hyperlink{a00302_a79c1cf90a6dba4dc25be3f0142890dcb}{nsites} () const 
\begin{DoxyCompactList}\small\item\em Return The number of sites of the set, i.e., the number of {\itshape faces\/}. \item\end{DoxyCompactList}\item 
\hyperlink{a00302_aef498d766774fe5ff116a14ac843cc2d}{p\_\-complex} (const \hyperlink{a00372}{topo::complex}$<$ D $>$ \&cplx, const G \&geom)
\begin{DoxyCompactList}\small\item\em Construct a complex psite set from a complex. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{Indent}{\bf }\par
{\em \label{_amgrpd41d8cd98f00b204e9800998ecf8427e}
 }\begin{DoxyCompactItemize}
\item 
\hyperlink{a00372}{topo::complex}$<$ D $>$ \& \hyperlink{a00302_a7817a89ba9858f62c4a1ef73a5a803e3}{cplx} () const 
\begin{DoxyCompactList}\small\item\em Accessors. \item\end{DoxyCompactList}\item 
\hyperlink{a00372}{topo::complex}$<$ D $>$ \& \hyperlink{a00302_af2f8e0d995f17c1d5b8526f8c34434cb}{cplx} ()
\begin{DoxyCompactList}\small\item\em Return the complex associated to the \hyperlink{a00302}{p\_\-complex} domain (mutable version). \item\end{DoxyCompactList}\item 
const G \& \hyperlink{a00302_ab123db31552747895693779c6673f57d}{geom} () const 
\begin{DoxyCompactList}\small\item\em Return the geometry of the complex. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}


\subsection{Detailed Description}
\subsubsection*{template$<$unsigned D, typename G$>$ class mln::p\_\-complex$<$ D, G $>$}

A complex psite set based on the N-\/faces of a complex of dimension {\ttfamily D} (a {\ttfamily D-\/complex}). 
\begin{DoxyTemplParams}{Template Parameters}
\item[{\em D}]The dimension of the complex. \item[{\em G}]A function object type, associating localization information (geometry) to each face of the complex. \end{DoxyTemplParams}
\begin{DoxySeeAlso}{See also}
\hyperlink{a00235}{mln::geom::complex\_\-geometry}. A complex \hyperlink{a00302_a25fb8ea6f6d299695ce2055f865c3941}{psite} \hyperlink{a02710}{set} based on the N-\/faces of a complex. 
\end{DoxySeeAlso}


Definition at line 116 of file p\_\-complex.hh.



\subsection{Member Typedef Documentation}
\hypertarget{a00302_a0dd3e49c1797caaa9cd2e257d1cc6a18}{
\index{mln::p\_\-complex@{mln::p\_\-complex}!bkd\_\-piter@{bkd\_\-piter}}
\index{bkd\_\-piter@{bkd\_\-piter}!mln::p_complex@{mln::p\_\-complex}}
\subsubsection[{bkd\_\-piter}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned D, typename G$>$ typedef p\_\-complex\_\-bkd\_\-piter\_\-$<$D, G$>$ {\bf mln::p\_\-complex}$<$ D, G $>$::{\bf bkd\_\-piter}}}
\label{d0/d61/a00302_a0dd3e49c1797caaa9cd2e257d1cc6a18}


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



Definition at line 141 of file p\_\-complex.hh.

\hypertarget{a00302_a4c36ab50757523cafa7dde39e866414f}{
\index{mln::p\_\-complex@{mln::p\_\-complex}!element@{element}}
\index{element@{element}!mln::p_complex@{mln::p\_\-complex}}
\subsubsection[{element}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned D, typename G$>$ typedef super\_\- ::site {\bf mln::p\_\-complex}$<$ D, G $>$::{\bf element}}}
\label{d0/d61/a00302_a4c36ab50757523cafa7dde39e866414f}


Associated types. 

Element associated type. 

Definition at line 132 of file p\_\-complex.hh.

\hypertarget{a00302_a1d39c2f6040e61d034a38c81110c3a16}{
\index{mln::p\_\-complex@{mln::p\_\-complex}!fwd\_\-piter@{fwd\_\-piter}}
\index{fwd\_\-piter@{fwd\_\-piter}!mln::p_complex@{mln::p\_\-complex}}
\subsubsection[{fwd\_\-piter}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned D, typename G$>$ typedef p\_\-complex\_\-fwd\_\-piter\_\-$<$D, G$>$ {\bf mln::p\_\-complex}$<$ D, G $>$::{\bf fwd\_\-piter}}}
\label{d0/d61/a00302_a1d39c2f6040e61d034a38c81110c3a16}


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



Definition at line 138 of file p\_\-complex.hh.

\hypertarget{a00302_a02de39f3271e46484743187984106018}{
\index{mln::p\_\-complex@{mln::p\_\-complex}!piter@{piter}}
\index{piter@{piter}!mln::p_complex@{mln::p\_\-complex}}
\subsubsection[{piter}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned D, typename G$>$ typedef {\bf fwd\_\-piter} {\bf mln::p\_\-complex}$<$ D, G $>$::{\bf piter}}}
\label{d0/d61/a00302_a02de39f3271e46484743187984106018}


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



Definition at line 144 of file p\_\-complex.hh.

\hypertarget{a00302_a25fb8ea6f6d299695ce2055f865c3941}{
\index{mln::p\_\-complex@{mln::p\_\-complex}!psite@{psite}}
\index{psite@{psite}!mln::p_complex@{mln::p\_\-complex}}
\subsubsection[{psite}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned D, typename G$>$ typedef {\bf complex\_\-psite}$<$D, G$>$ {\bf mln::p\_\-complex}$<$ D, G $>$::{\bf psite}}}
\label{d0/d61/a00302_a25fb8ea6f6d299695ce2055f865c3941}


\hyperlink{a00331}{Point\_\-Site} associated type. 



Definition at line 135 of file p\_\-complex.hh.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a00302_aef498d766774fe5ff116a14ac843cc2d}{
\index{mln::p\_\-complex@{mln::p\_\-complex}!p\_\-complex@{p\_\-complex}}
\index{p\_\-complex@{p\_\-complex}!mln::p_complex@{mln::p\_\-complex}}
\subsubsection[{p\_\-complex}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned D, typename G $>$ {\bf mln::p\_\-complex}$<$ D, G $>$::{\bf p\_\-complex} (
\begin{DoxyParamCaption}
\item[{const {\bf topo::complex}$<$ D $>$ \&}]{ cplx, }
\item[{const G \&}]{ geom}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d0/d61/a00302_aef498d766774fe5ff116a14ac843cc2d}


Construct a complex psite set from a complex. 


\begin{DoxyParams}{Parameters}
\item[{\em cplx}]The complex upon which the complex psite set is built. \item[{\em geom}]FIXME \end{DoxyParams}


Definition at line 231 of file p\_\-complex.hh.



\subsection{Member Function Documentation}
\hypertarget{a00302_a7817a89ba9858f62c4a1ef73a5a803e3}{
\index{mln::p\_\-complex@{mln::p\_\-complex}!cplx@{cplx}}
\index{cplx@{cplx}!mln::p_complex@{mln::p\_\-complex}}
\subsubsection[{cplx}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned D, typename G $>$ {\bf topo::complex}$<$ D $>$ \& {\bf mln::p\_\-complex}$<$ D, G $>$::cplx (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}
\label{d0/d61/a00302_a7817a89ba9858f62c4a1ef73a5a803e3}


Accessors. 

Return the complex associated to the \hyperlink{a00302}{p\_\-complex} domain (const version) 

Definition at line 293 of file p\_\-complex.hh.



References mln::p\_\-complex$<$ D, G $>$::is\_\-valid().



Referenced by mln::complex\_\-psite$<$ D, G $>$::change\_\-target(), mln::complex\_\-psite$<$ D, G $>$::complex\_\-psite(), and mln::operator==().

\hypertarget{a00302_af2f8e0d995f17c1d5b8526f8c34434cb}{
\index{mln::p\_\-complex@{mln::p\_\-complex}!cplx@{cplx}}
\index{cplx@{cplx}!mln::p_complex@{mln::p\_\-complex}}
\subsubsection[{cplx}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned D, typename G $>$ {\bf topo::complex}$<$ D $>$ \& {\bf mln::p\_\-complex}$<$ D, G $>$::cplx (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{d0/d61/a00302_af2f8e0d995f17c1d5b8526f8c34434cb}


Return the complex associated to the \hyperlink{a00302}{p\_\-complex} domain (mutable version). 



Definition at line 301 of file p\_\-complex.hh.



References mln::p\_\-complex$<$ D, G $>$::is\_\-valid().

\hypertarget{a00302_ab123db31552747895693779c6673f57d}{
\index{mln::p\_\-complex@{mln::p\_\-complex}!geom@{geom}}
\index{geom@{geom}!mln::p_complex@{mln::p\_\-complex}}
\subsubsection[{geom}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned D, typename G $>$ const G \& {\bf mln::p\_\-complex}$<$ D, G $>$::geom (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}
\label{d0/d61/a00302_ab123db31552747895693779c6673f57d}


Return the geometry of the complex. 



Definition at line 309 of file p\_\-complex.hh.

\hypertarget{a00302_a5c5240fab1da19f40d019da4573c1a54}{
\index{mln::p\_\-complex@{mln::p\_\-complex}!has@{has}}
\index{has@{has}!mln::p_complex@{mln::p\_\-complex}}
\subsubsection[{has}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned D, typename G $>$ bool {\bf mln::p\_\-complex}$<$ D, G $>$::has (
\begin{DoxyParamCaption}
\item[{const {\bf psite} \&}]{ p}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d0/d61/a00302_a5c5240fab1da19f40d019da4573c1a54}


Does this site set has {\itshape p\/}? 



Definition at line 271 of file p\_\-complex.hh.



References mln::complex\_\-psite$<$ D, G $>$::is\_\-valid(), mln::p\_\-complex$<$ D, G $>$::is\_\-valid(), and mln::complex\_\-psite$<$ D, G $>$::site\_\-set().

\hypertarget{a00302_a721f6857a2ace27b86306aed49416d32}{
\index{mln::p\_\-complex@{mln::p\_\-complex}!is\_\-valid@{is\_\-valid}}
\index{is\_\-valid@{is\_\-valid}!mln::p_complex@{mln::p\_\-complex}}
\subsubsection[{is\_\-valid}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned D, typename G $>$ bool {\bf mln::p\_\-complex}$<$ D, G $>$::is\_\-valid (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d0/d61/a00302_a721f6857a2ace27b86306aed49416d32}


Is this site set valid? 



Definition at line 263 of file p\_\-complex.hh.



Referenced by mln::p\_\-complex$<$ D, G $>$::cplx(), and mln::p\_\-complex$<$ D, G $>$::has().

\hypertarget{a00302_ab2128373486246860c6e81dc6f570d44}{
\index{mln::p\_\-complex@{mln::p\_\-complex}!nfaces@{nfaces}}
\index{nfaces@{nfaces}!mln::p_complex@{mln::p\_\-complex}}
\subsubsection[{nfaces}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned D, typename G $>$ unsigned {\bf mln::p\_\-complex}$<$ D, G $>$::nfaces (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d0/d61/a00302_ab2128373486246860c6e81dc6f570d44}


Return the number of faces in the complex. 



Definition at line 247 of file p\_\-complex.hh.



Referenced by mln::p\_\-complex$<$ D, G $>$::nsites().

\hypertarget{a00302_ad398e087f3dba651c7276d2bb3ef92c4}{
\index{mln::p\_\-complex@{mln::p\_\-complex}!nfaces\_\-of\_\-dim@{nfaces\_\-of\_\-dim}}
\index{nfaces\_\-of\_\-dim@{nfaces\_\-of\_\-dim}!mln::p_complex@{mln::p\_\-complex}}
\subsubsection[{nfaces\_\-of\_\-dim}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned D, typename G $>$ unsigned {\bf mln::p\_\-complex}$<$ D, G $>$::nfaces\_\-of\_\-dim (
\begin{DoxyParamCaption}
\item[{unsigned}]{ n}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d0/d61/a00302_ad398e087f3dba651c7276d2bb3ef92c4}


Return the number of {\itshape n-\/faces\/} in the complex. 



Definition at line 255 of file p\_\-complex.hh.

\hypertarget{a00302_a79c1cf90a6dba4dc25be3f0142890dcb}{
\index{mln::p\_\-complex@{mln::p\_\-complex}!nsites@{nsites}}
\index{nsites@{nsites}!mln::p_complex@{mln::p\_\-complex}}
\subsubsection[{nsites}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned D, typename G $>$ unsigned {\bf mln::p\_\-complex}$<$ D, G $>$::nsites (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d0/d61/a00302_a79c1cf90a6dba4dc25be3f0142890dcb}


Return The number of sites of the set, i.e., the number of {\itshape faces\/}. 

(Required by the \hyperlink{a00348}{mln::Site\_\-Set} concept, since the property trait::site\_\-set::nsites::known of this site set is set to `known'.) 

Definition at line 239 of file p\_\-complex.hh.



References mln::p\_\-complex$<$ D, G $>$::nfaces().

