\hypertarget{a00301}{
\section{mln::p\_\-centered$<$ W $>$ Class Template Reference}
\label{da/d50/a00301}\index{mln::p\_\-centered@{mln::p\_\-centered}}
}


\hyperlink{a00343}{Site} set corresponding to a window centered on a site.  




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



Inherits site\_\-set\_\-base\_\-$<$ W::psite, p\_\-centered$<$ W $>$ $>$, and mlc\_\-is\_\-aW.

\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef p\_\-centered\_\-piter$<$ W $>$ \hyperlink{a00301_a47a32e0cb5ad063fa725b119912a0383}{bkd\_\-piter}
\begin{DoxyCompactList}\small\item\em Backward \hyperlink{a00345}{Site\_\-Iterator} associated type. \item\end{DoxyCompactList}\item 
typedef \hyperlink{a00301_a8085d91c1e86fbcb3aacf2a288f30cf5}{psite} \hyperlink{a00301_a7e65d9ff24cf7e0d9cd72c679575c32f}{element}
\begin{DoxyCompactList}\small\item\em Element associated type. \item\end{DoxyCompactList}\item 
typedef p\_\-centered\_\-piter$<$ W $>$ \hyperlink{a00301_acb2179a7e56fa724b512edf28bd8df0b}{fwd\_\-piter}
\begin{DoxyCompactList}\small\item\em Forward \hyperlink{a00345}{Site\_\-Iterator} associated type. \item\end{DoxyCompactList}\item 
typedef \hyperlink{a00301_acb2179a7e56fa724b512edf28bd8df0b}{fwd\_\-piter} \hyperlink{a00301_a6d8d6d03b10e72ab65b2b754ba91a828}{piter}
\begin{DoxyCompactList}\small\item\em \hyperlink{a00345}{Site\_\-Iterator} associated type. \item\end{DoxyCompactList}\item 
typedef W::psite \hyperlink{a00301_a8085d91c1e86fbcb3aacf2a288f30cf5}{psite}
\begin{DoxyCompactList}\small\item\em Psite associated type. \item\end{DoxyCompactList}\item 
typedef W::site \hyperlink{a00301_afff393e733511bf891eead5aad710766}{site}
\begin{DoxyCompactList}\small\item\em \hyperlink{a00343}{Site} associated type. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
const W::psite \& \hyperlink{a00301_ad3743cb3deb640480cee8561d3f7f7c2}{center} () const 
\begin{DoxyCompactList}\small\item\em Give the center of this site set. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename P $>$ }\\bool \hyperlink{a00301_aa806c6708970e9bdea9c40ea618af765}{has} (const P \&p) const 
\begin{DoxyCompactList}\small\item\em Test if {\ttfamily p} belongs to the box. \item\end{DoxyCompactList}\item 
bool \hyperlink{a00301_a8822fd172422a3f2ef32812c4b889bcd}{is\_\-valid} () const 
\begin{DoxyCompactList}\small\item\em Test if this site set is initialized. \item\end{DoxyCompactList}\item 
std::size\_\-t \hyperlink{a00301_a9dd2587c3687816340a124290b94a7ba}{memory\_\-size} () const 
\begin{DoxyCompactList}\small\item\em Return the size of this site set in memory. \item\end{DoxyCompactList}\item 
\hyperlink{a00301_a90a39426f12aff7c1acd56554d695c9f}{p\_\-centered} (const W \&win, const typename W::psite \&c)
\begin{DoxyCompactList}\small\item\em Constructor from a window {\ttfamily win} and a center {\ttfamily c}. \item\end{DoxyCompactList}\item 
\hyperlink{a00301_a3c49efe15dbab7bd13c2a0d221bbd143}{p\_\-centered} ()
\begin{DoxyCompactList}\small\item\em Constructor without argument. \item\end{DoxyCompactList}\item 
const W \& \hyperlink{a00301_a47f4a08f657eae31515b6a7e9a06741a}{window} () const 
\begin{DoxyCompactList}\small\item\em Give the window this site set is defined upon. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


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

\hyperlink{a00343}{Site} set corresponding to a window centered on a site. 

Definition at line 77 of file p\_\-centered.hh.



\subsection{Member Typedef Documentation}
\hypertarget{a00301_a47a32e0cb5ad063fa725b119912a0383}{
\index{mln::p\_\-centered@{mln::p\_\-centered}!bkd\_\-piter@{bkd\_\-piter}}
\index{bkd\_\-piter@{bkd\_\-piter}!mln::p_centered@{mln::p\_\-centered}}
\subsubsection[{bkd\_\-piter}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename W$>$ typedef p\_\-centered\_\-piter$<$W$>$ {\bf mln::p\_\-centered}$<$ W $>$::{\bf bkd\_\-piter}}}
\label{da/d50/a00301_a47a32e0cb5ad063fa725b119912a0383}


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



Definition at line 97 of file p\_\-centered.hh.

\hypertarget{a00301_a7e65d9ff24cf7e0d9cd72c679575c32f}{
\index{mln::p\_\-centered@{mln::p\_\-centered}!element@{element}}
\index{element@{element}!mln::p_centered@{mln::p\_\-centered}}
\subsubsection[{element}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename W$>$ typedef {\bf psite} {\bf mln::p\_\-centered}$<$ W $>$::{\bf element}}}
\label{da/d50/a00301_a7e65d9ff24cf7e0d9cd72c679575c32f}


Element associated type. 



Definition at line 90 of file p\_\-centered.hh.

\hypertarget{a00301_acb2179a7e56fa724b512edf28bd8df0b}{
\index{mln::p\_\-centered@{mln::p\_\-centered}!fwd\_\-piter@{fwd\_\-piter}}
\index{fwd\_\-piter@{fwd\_\-piter}!mln::p_centered@{mln::p\_\-centered}}
\subsubsection[{fwd\_\-piter}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename W$>$ typedef p\_\-centered\_\-piter$<$W$>$ {\bf mln::p\_\-centered}$<$ W $>$::{\bf fwd\_\-piter}}}
\label{da/d50/a00301_acb2179a7e56fa724b512edf28bd8df0b}


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



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

\hypertarget{a00301_a6d8d6d03b10e72ab65b2b754ba91a828}{
\index{mln::p\_\-centered@{mln::p\_\-centered}!piter@{piter}}
\index{piter@{piter}!mln::p_centered@{mln::p\_\-centered}}
\subsubsection[{piter}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename W$>$ typedef {\bf fwd\_\-piter} {\bf mln::p\_\-centered}$<$ W $>$::{\bf piter}}}
\label{da/d50/a00301_a6d8d6d03b10e72ab65b2b754ba91a828}


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



Definition at line 100 of file p\_\-centered.hh.

\hypertarget{a00301_a8085d91c1e86fbcb3aacf2a288f30cf5}{
\index{mln::p\_\-centered@{mln::p\_\-centered}!psite@{psite}}
\index{psite@{psite}!mln::p_centered@{mln::p\_\-centered}}
\subsubsection[{psite}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename W$>$ typedef W ::{\bf psite} {\bf mln::p\_\-centered}$<$ W $>$::{\bf psite}}}
\label{da/d50/a00301_a8085d91c1e86fbcb3aacf2a288f30cf5}


Psite associated type. 



Definition at line 83 of file p\_\-centered.hh.

\hypertarget{a00301_afff393e733511bf891eead5aad710766}{
\index{mln::p\_\-centered@{mln::p\_\-centered}!site@{site}}
\index{site@{site}!mln::p_centered@{mln::p\_\-centered}}
\subsubsection[{site}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename W$>$ typedef W ::{\bf site} {\bf mln::p\_\-centered}$<$ W $>$::{\bf site}}}
\label{da/d50/a00301_afff393e733511bf891eead5aad710766}


\hyperlink{a00343}{Site} associated type. 



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



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a00301_a3c49efe15dbab7bd13c2a0d221bbd143}{
\index{mln::p\_\-centered@{mln::p\_\-centered}!p\_\-centered@{p\_\-centered}}
\index{p\_\-centered@{p\_\-centered}!mln::p_centered@{mln::p\_\-centered}}
\subsubsection[{p\_\-centered}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename W $>$ {\bf mln::p\_\-centered}$<$ W $>$::{\bf p\_\-centered} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{da/d50/a00301_a3c49efe15dbab7bd13c2a0d221bbd143}


Constructor without argument. 



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

\hypertarget{a00301_a90a39426f12aff7c1acd56554d695c9f}{
\index{mln::p\_\-centered@{mln::p\_\-centered}!p\_\-centered@{p\_\-centered}}
\index{p\_\-centered@{p\_\-centered}!mln::p_centered@{mln::p\_\-centered}}
\subsubsection[{p\_\-centered}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename W $>$ {\bf mln::p\_\-centered}$<$ W $>$::{\bf p\_\-centered} (
\begin{DoxyParamCaption}
\item[{const W \&}]{ win, }
\item[{const typename W::psite \&}]{ c}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{da/d50/a00301_a90a39426f12aff7c1acd56554d695c9f}


Constructor from a window {\ttfamily win} and a center {\ttfamily c}. 



Definition at line 188 of file p\_\-centered.hh.



References mln::p\_\-centered$<$ W $>$::is\_\-valid().



\subsection{Member Function Documentation}
\hypertarget{a00301_ad3743cb3deb640480cee8561d3f7f7c2}{
\index{mln::p\_\-centered@{mln::p\_\-centered}!center@{center}}
\index{center@{center}!mln::p_centered@{mln::p\_\-centered}}
\subsubsection[{center}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename W $>$ const W::psite \& {\bf mln::p\_\-centered}$<$ W $>$::center (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{da/d50/a00301_ad3743cb3deb640480cee8561d3f7f7c2}


Give the center of this site set. 



Definition at line 216 of file p\_\-centered.hh.

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


Test if {\ttfamily p} belongs to the box. 



Definition at line 199 of file p\_\-centered.hh.



References mln::p\_\-centered$<$ W $>$::is\_\-valid().

\hypertarget{a00301_a8822fd172422a3f2ef32812c4b889bcd}{
\index{mln::p\_\-centered@{mln::p\_\-centered}!is\_\-valid@{is\_\-valid}}
\index{is\_\-valid@{is\_\-valid}!mln::p_centered@{mln::p\_\-centered}}
\subsubsection[{is\_\-valid}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename W $>$ bool {\bf mln::p\_\-centered}$<$ W $>$::is\_\-valid (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{da/d50/a00301_a8822fd172422a3f2ef32812c4b889bcd}


Test if this site set is initialized. 



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



Referenced by mln::p\_\-centered$<$ W $>$::has(), and mln::p\_\-centered$<$ W $>$::p\_\-centered().

\hypertarget{a00301_a9dd2587c3687816340a124290b94a7ba}{
\index{mln::p\_\-centered@{mln::p\_\-centered}!memory\_\-size@{memory\_\-size}}
\index{memory\_\-size@{memory\_\-size}!mln::p_centered@{mln::p\_\-centered}}
\subsubsection[{memory\_\-size}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename W $>$ std::size\_\-t {\bf mln::p\_\-centered}$<$ W $>$::memory\_\-size (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{da/d50/a00301_a9dd2587c3687816340a124290b94a7ba}


Return the size of this site set in memory. 



Definition at line 208 of file p\_\-centered.hh.

\hypertarget{a00301_a47f4a08f657eae31515b6a7e9a06741a}{
\index{mln::p\_\-centered@{mln::p\_\-centered}!window@{window}}
\index{window@{window}!mln::p_centered@{mln::p\_\-centered}}
\subsubsection[{window}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename W $>$ const W \& {\bf mln::p\_\-centered}$<$ W $>$::{\bf window} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{da/d50/a00301_a47f4a08f657eae31515b6a7e9a06741a}


Give the window this site set is defined upon. 



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

