\hypertarget{a00311}{
\section{mln::p\_\-key$<$ K, P $>$ Class Template Reference}
\label{d1/d5d/a00311}\index{mln::p\_\-key@{mln::p\_\-key}}
}


Priority queue class.  




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



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

\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef p\_\-double\_\-piter$<$ \hyperlink{a00311}{self\_\-}, mln\_\-bkd\_\-eiter(\hyperlink{a00409}{util::set}$<$ K $>$), typename \hyperlink{a00320}{p\_\-set}$<$ P $>$::\hyperlink{a00311_a33e2c653cdd078db5c3da345fde1689a}{bkd\_\-piter} $>$ \hyperlink{a00311_a33e2c653cdd078db5c3da345fde1689a}{bkd\_\-piter}
\begin{DoxyCompactList}\small\item\em Backward \hyperlink{a00345}{Site\_\-Iterator} associated type. \item\end{DoxyCompactList}\item 
typedef P \hyperlink{a00311_a2a16ab1f33e275c2ff9586d6cf9198f1}{element}
\begin{DoxyCompactList}\small\item\em Element associated type. \item\end{DoxyCompactList}\item 
typedef p\_\-double\_\-piter$<$ \hyperlink{a00311}{self\_\-}, mln\_\-fwd\_\-eiter(\hyperlink{a00409}{util::set}$<$ K $>$), typename \hyperlink{a00320}{p\_\-set}$<$ P $>$::\hyperlink{a00311_a2f196ea535affe83d7cc37d6b6eef7cc}{fwd\_\-piter} $>$ \hyperlink{a00311_a2f196ea535affe83d7cc37d6b6eef7cc}{fwd\_\-piter}
\begin{DoxyCompactList}\small\item\em Forward \hyperlink{a00345}{Site\_\-Iterator} associated type. \item\end{DoxyCompactList}\item 
typedef std::pair$<$ K, P $>$ \hyperlink{a00311_ad02698bd986346bbe93b263f99ba686a}{i\_\-element}
\begin{DoxyCompactList}\small\item\em Insertion element associated type. \item\end{DoxyCompactList}\item 
typedef \hyperlink{a00311_a2f196ea535affe83d7cc37d6b6eef7cc}{fwd\_\-piter} \hyperlink{a00311_af0e6de261938fa8dcaebf9497d4ff601}{piter}
\begin{DoxyCompactList}\small\item\em \hyperlink{a00345}{Site\_\-Iterator} associated type. \item\end{DoxyCompactList}\item 
typedef p\_\-double\_\-psite$<$ \hyperlink{a00311}{self\_\-}, \hyperlink{a00320}{p\_\-set}$<$ P $>$ $>$ \hyperlink{a00311_a89455ef56a05a87c3f71c0a3adc834ed}{psite}
\begin{DoxyCompactList}\small\item\em Psite associated type. \item\end{DoxyCompactList}\item 
typedef P \hyperlink{a00311_abf161b74afa6a7a7cc7b72c4b14f4bd6}{r\_\-element}
\begin{DoxyCompactList}\small\item\em Removal element associated type. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{a00311_a44d443da2e2c125e57c4f772ca9570b4}{change\_\-key} (const K \&k, const K \&new\_\-k)
\begin{DoxyCompactList}\small\item\em Change the key {\ttfamily k} into a new value {\ttfamily new\_\-k}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename F $>$ }\\void \hyperlink{a00311_afeed0ca24b680cf499134e363affc428}{change\_\-keys} (const \hyperlink{a00034}{Function\_\-v2v}$<$ F $>$ \&f)
\begin{DoxyCompactList}\small\item\em Change the keys by applying the function {\ttfamily f}. \item\end{DoxyCompactList}\item 
void \hyperlink{a00311_a90d24fe8e9a5dee289a55e4dde7c2b42}{clear} ()
\begin{DoxyCompactList}\small\item\em Clear this site set. \item\end{DoxyCompactList}\item 
bool \hyperlink{a00311_a583d5726caab2fad8c90b43bb7a9f983}{exists\_\-key} (const K \&key) const 
\begin{DoxyCompactList}\small\item\em Test if the {\ttfamily priority} exists. \item\end{DoxyCompactList}\item 
bool \hyperlink{a00311_a7671f0343929d56c6ab56e6269f25ee2}{has} (const \hyperlink{a00311_a89455ef56a05a87c3f71c0a3adc834ed}{psite} \&) const 
\begin{DoxyCompactList}\small\item\em Test is the psite {\ttfamily p} belongs to this site set. \item\end{DoxyCompactList}\item 
bool \hyperlink{a00311_a8b0e4791fa383812b0fe1f51f101b831}{has} (const P \&p) const 
\begin{DoxyCompactList}\small\item\em Test is the psite {\ttfamily p} belongs to this site set. \item\end{DoxyCompactList}\item 
void \hyperlink{a00311_a07ec210cd6e3f0fbd8e0ae65a6db478b}{insert} (const \hyperlink{a00311_ad02698bd986346bbe93b263f99ba686a}{i\_\-element} \&k\_\-p)
\begin{DoxyCompactList}\small\item\em Insert a pair {\ttfamily k\_\-p} (key k, site p). \item\end{DoxyCompactList}\item 
void \hyperlink{a00311_a1f55e6a9981fb41251dc9fedb86720bd}{insert} (const K \&k, const P \&p)
\begin{DoxyCompactList}\small\item\em Insert a pair (key {\ttfamily k}, site {\ttfamily p}). \item\end{DoxyCompactList}\item 
bool \hyperlink{a00311_aea9b844534ffaa59e8334495718aadcf}{is\_\-valid} () const 
\begin{DoxyCompactList}\small\item\em Test this set validity so returns always true. \item\end{DoxyCompactList}\item 
const K \& \hyperlink{a00311_acf5e79cff5f5e6eac0a3a3b5a027b85e}{key} (const P \&p) const 
\begin{DoxyCompactList}\small\item\em Give the key associated with site {\ttfamily p}. \item\end{DoxyCompactList}\item 
const \hyperlink{a00409}{util::set}$<$ K $>$ \& \hyperlink{a00311_a12d833eee403c4212df906d83e584c34}{keys} () const 
\begin{DoxyCompactList}\small\item\em Give the set of keys. \item\end{DoxyCompactList}\item 
std::size\_\-t \hyperlink{a00311_a0d48e65c72c23687b51a0085b4d1bbec}{memory\_\-size} () const 
\begin{DoxyCompactList}\small\item\em Return the size of this site set in memory. \item\end{DoxyCompactList}\item 
unsigned \hyperlink{a00311_a2c5470fa00affe299d303b20e312a62b}{nsites} () const 
\begin{DoxyCompactList}\small\item\em Give the number of sites. \item\end{DoxyCompactList}\item 
const \hyperlink{a00320}{p\_\-set}$<$ P $>$ \& \hyperlink{a00311_a43136d0ecafb54f7dd84c28962b5a7db}{operator()} (const K \&key) const 
\begin{DoxyCompactList}\small\item\em Give the queue with the priority {\ttfamily priority}. \item\end{DoxyCompactList}\item 
\hyperlink{a00311_a69822265a2120c577b97b57a57d8d0ee}{p\_\-key} ()
\begin{DoxyCompactList}\small\item\em Constructor. \item\end{DoxyCompactList}\item 
void \hyperlink{a00311_ab222613b4d8db4b5fd2ddc2d7fa39d07}{remove} (const P \&p)
\begin{DoxyCompactList}\small\item\em Remove a site {\ttfamily p}. \item\end{DoxyCompactList}\item 
void \hyperlink{a00311_a5c347c39eec96e787822330533cd643a}{remove\_\-key} (const K \&k)
\begin{DoxyCompactList}\small\item\em Remove all sites with key {\ttfamily k}. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


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

Priority queue class. 

Definition at line 72 of file p\_\-key.hh.



\subsection{Member Typedef Documentation}
\hypertarget{a00311_a33e2c653cdd078db5c3da345fde1689a}{
\index{mln::p\_\-key@{mln::p\_\-key}!bkd\_\-piter@{bkd\_\-piter}}
\index{bkd\_\-piter@{bkd\_\-piter}!mln::p_key@{mln::p\_\-key}}
\subsubsection[{bkd\_\-piter}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K , typename P $>$ typedef p\_\-double\_\-piter$<${\bf self\_\-}, mln\_\-bkd\_\-eiter({\bf util::set}$<$K$>$), typename {\bf p\_\-set}$<$P$>$::{\bf bkd\_\-piter}$>$ {\bf mln::p\_\-key}$<$ K, P $>$::{\bf bkd\_\-piter}}}
\label{d1/d5d/a00311_a33e2c653cdd078db5c3da345fde1689a}


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



Definition at line 93 of file p\_\-key.hh.

\hypertarget{a00311_a2a16ab1f33e275c2ff9586d6cf9198f1}{
\index{mln::p\_\-key@{mln::p\_\-key}!element@{element}}
\index{element@{element}!mln::p_key@{mln::p\_\-key}}
\subsubsection[{element}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K , typename P $>$ typedef P {\bf mln::p\_\-key}$<$ K, P $>$::{\bf element}}}
\label{d1/d5d/a00311_a2a16ab1f33e275c2ff9586d6cf9198f1}


Element associated type. 



Definition at line 79 of file p\_\-key.hh.

\hypertarget{a00311_a2f196ea535affe83d7cc37d6b6eef7cc}{
\index{mln::p\_\-key@{mln::p\_\-key}!fwd\_\-piter@{fwd\_\-piter}}
\index{fwd\_\-piter@{fwd\_\-piter}!mln::p_key@{mln::p\_\-key}}
\subsubsection[{fwd\_\-piter}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K , typename P $>$ typedef p\_\-double\_\-piter$<${\bf self\_\-}, mln\_\-fwd\_\-eiter({\bf util::set}$<$K$>$), typename {\bf p\_\-set}$<$P$>$::{\bf fwd\_\-piter}$>$ {\bf mln::p\_\-key}$<$ K, P $>$::{\bf fwd\_\-piter}}}
\label{d1/d5d/a00311_a2f196ea535affe83d7cc37d6b6eef7cc}


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



Definition at line 88 of file p\_\-key.hh.

\hypertarget{a00311_ad02698bd986346bbe93b263f99ba686a}{
\index{mln::p\_\-key@{mln::p\_\-key}!i\_\-element@{i\_\-element}}
\index{i\_\-element@{i\_\-element}!mln::p_key@{mln::p\_\-key}}
\subsubsection[{i\_\-element}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K , typename P $>$ typedef std::pair$<$K,P$>$ {\bf mln::p\_\-key}$<$ K, P $>$::{\bf i\_\-element}}}
\label{d1/d5d/a00311_ad02698bd986346bbe93b263f99ba686a}


Insertion element associated type. 



Definition at line 118 of file p\_\-key.hh.

\hypertarget{a00311_af0e6de261938fa8dcaebf9497d4ff601}{
\index{mln::p\_\-key@{mln::p\_\-key}!piter@{piter}}
\index{piter@{piter}!mln::p_key@{mln::p\_\-key}}
\subsubsection[{piter}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K , typename P $>$ typedef {\bf fwd\_\-piter} {\bf mln::p\_\-key}$<$ K, P $>$::{\bf piter}}}
\label{d1/d5d/a00311_af0e6de261938fa8dcaebf9497d4ff601}


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



Definition at line 96 of file p\_\-key.hh.

\hypertarget{a00311_a89455ef56a05a87c3f71c0a3adc834ed}{
\index{mln::p\_\-key@{mln::p\_\-key}!psite@{psite}}
\index{psite@{psite}!mln::p_key@{mln::p\_\-key}}
\subsubsection[{psite}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K , typename P $>$ typedef p\_\-double\_\-psite$<$ {\bf self\_\-}, {\bf p\_\-set}$<$P$>$ $>$ {\bf mln::p\_\-key}$<$ K, P $>$::{\bf psite}}}
\label{d1/d5d/a00311_a89455ef56a05a87c3f71c0a3adc834ed}


Psite associated type. 



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

\hypertarget{a00311_abf161b74afa6a7a7cc7b72c4b14f4bd6}{
\index{mln::p\_\-key@{mln::p\_\-key}!r\_\-element@{r\_\-element}}
\index{r\_\-element@{r\_\-element}!mln::p_key@{mln::p\_\-key}}
\subsubsection[{r\_\-element}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K , typename P $>$ typedef P {\bf mln::p\_\-key}$<$ K, P $>$::{\bf r\_\-element}}}
\label{d1/d5d/a00311_abf161b74afa6a7a7cc7b72c4b14f4bd6}


Removal element associated type. 



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



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a00311_a69822265a2120c577b97b57a57d8d0ee}{
\index{mln::p\_\-key@{mln::p\_\-key}!p\_\-key@{p\_\-key}}
\index{p\_\-key@{p\_\-key}!mln::p_key@{mln::p\_\-key}}
\subsubsection[{p\_\-key}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K , typename P $>$ {\bf mln::p\_\-key}$<$ K, P $>$::{\bf p\_\-key} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d5d/a00311_a69822265a2120c577b97b57a57d8d0ee}


Constructor. 



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



\subsection{Member Function Documentation}
\hypertarget{a00311_a44d443da2e2c125e57c4f772ca9570b4}{
\index{mln::p\_\-key@{mln::p\_\-key}!change\_\-key@{change\_\-key}}
\index{change\_\-key@{change\_\-key}!mln::p_key@{mln::p\_\-key}}
\subsubsection[{change\_\-key}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K , typename P $>$ void {\bf mln::p\_\-key}$<$ K, P $>$::change\_\-key (
\begin{DoxyParamCaption}
\item[{const K \&}]{ k, }
\item[{const K \&}]{ new\_\-k}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d5d/a00311_a44d443da2e2c125e57c4f772ca9570b4}


Change the key {\ttfamily k} into a new value {\ttfamily new\_\-k}. 



Definition at line 382 of file p\_\-key.hh.



References mln::p\_\-set$<$ P $>$::nsites().

\hypertarget{a00311_afeed0ca24b680cf499134e363affc428}{
\index{mln::p\_\-key@{mln::p\_\-key}!change\_\-keys@{change\_\-keys}}
\index{change\_\-keys@{change\_\-keys}!mln::p_key@{mln::p\_\-key}}
\subsubsection[{change\_\-keys}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K , typename P $>$ template$<$typename F $>$ void {\bf mln::p\_\-key}$<$ K, P $>$::change\_\-keys (
\begin{DoxyParamCaption}
\item[{const {\bf Function\_\-v2v}$<$ F $>$ \&}]{ f}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d5d/a00311_afeed0ca24b680cf499134e363affc428}


Change the keys by applying the function {\ttfamily f}. 



Definition at line 428 of file p\_\-key.hh.



References mln::util::set$<$ T $>$::insert().

\hypertarget{a00311_a90d24fe8e9a5dee289a55e4dde7c2b42}{
\index{mln::p\_\-key@{mln::p\_\-key}!clear@{clear}}
\index{clear@{clear}!mln::p_key@{mln::p\_\-key}}
\subsubsection[{clear}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K , typename P $>$ void {\bf mln::p\_\-key}$<$ K, P $>$::clear (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d5d/a00311_a90d24fe8e9a5dee289a55e4dde7c2b42}


Clear this site set. 



Definition at line 462 of file p\_\-key.hh.

\hypertarget{a00311_a583d5726caab2fad8c90b43bb7a9f983}{
\index{mln::p\_\-key@{mln::p\_\-key}!exists\_\-key@{exists\_\-key}}
\index{exists\_\-key@{exists\_\-key}!mln::p_key@{mln::p\_\-key}}
\subsubsection[{exists\_\-key}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K , typename P $>$ bool {\bf mln::p\_\-key}$<$ K, P $>$::exists\_\-key (
\begin{DoxyParamCaption}
\item[{const K \&}]{ key}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d5d/a00311_a583d5726caab2fad8c90b43bb7a9f983}


Test if the {\ttfamily priority} exists. 



Definition at line 520 of file p\_\-key.hh.



Referenced by mln::p\_\-key$<$ K, P $>$::operator()().

\hypertarget{a00311_a8b0e4791fa383812b0fe1f51f101b831}{
\index{mln::p\_\-key@{mln::p\_\-key}!has@{has}}
\index{has@{has}!mln::p_key@{mln::p\_\-key}}
\subsubsection[{has}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K , typename P $>$ bool {\bf mln::p\_\-key}$<$ K, P $>$::has (
\begin{DoxyParamCaption}
\item[{const P \&}]{ p}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d5d/a00311_a8b0e4791fa383812b0fe1f51f101b831}


Test is the psite {\ttfamily p} belongs to this site set. 



Definition at line 227 of file p\_\-key.hh.

\hypertarget{a00311_a7671f0343929d56c6ab56e6269f25ee2}{
\index{mln::p\_\-key@{mln::p\_\-key}!has@{has}}
\index{has@{has}!mln::p_key@{mln::p\_\-key}}
\subsubsection[{has}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K , typename P $>$ bool {\bf mln::p\_\-key}$<$ K, P $>$::has (
\begin{DoxyParamCaption}
\item[{const {\bf psite} \&}]{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d5d/a00311_a7671f0343929d56c6ab56e6269f25ee2}


Test is the psite {\ttfamily p} belongs to this site set. 



Definition at line 217 of file p\_\-key.hh.



Referenced by mln::p\_\-key$<$ K, P $>$::insert().

\hypertarget{a00311_a07ec210cd6e3f0fbd8e0ae65a6db478b}{
\index{mln::p\_\-key@{mln::p\_\-key}!insert@{insert}}
\index{insert@{insert}!mln::p_key@{mln::p\_\-key}}
\subsubsection[{insert}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K , typename P $>$ void {\bf mln::p\_\-key}$<$ K, P $>$::insert (
\begin{DoxyParamCaption}
\item[{const {\bf i\_\-element} \&}]{ k\_\-p}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d5d/a00311_a07ec210cd6e3f0fbd8e0ae65a6db478b}


Insert a pair {\ttfamily k\_\-p} (key k, site p). 



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

\hypertarget{a00311_a1f55e6a9981fb41251dc9fedb86720bd}{
\index{mln::p\_\-key@{mln::p\_\-key}!insert@{insert}}
\index{insert@{insert}!mln::p_key@{mln::p\_\-key}}
\subsubsection[{insert}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K , typename P $>$ void {\bf mln::p\_\-key}$<$ K, P $>$::insert (
\begin{DoxyParamCaption}
\item[{const K \&}]{ k, }
\item[{const P \&}]{ p}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d5d/a00311_a1f55e6a9981fb41251dc9fedb86720bd}


Insert a pair (key {\ttfamily k}, site {\ttfamily p}). 



Definition at line 268 of file p\_\-key.hh.



References mln::p\_\-key$<$ K, P $>$::has().

\hypertarget{a00311_aea9b844534ffaa59e8334495718aadcf}{
\index{mln::p\_\-key@{mln::p\_\-key}!is\_\-valid@{is\_\-valid}}
\index{is\_\-valid@{is\_\-valid}!mln::p_key@{mln::p\_\-key}}
\subsubsection[{is\_\-valid}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K , typename P $>$ bool {\bf mln::p\_\-key}$<$ K, P $>$::is\_\-valid (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d5d/a00311_aea9b844534ffaa59e8334495718aadcf}


Test this set validity so returns always true. 



Definition at line 236 of file p\_\-key.hh.

\hypertarget{a00311_acf5e79cff5f5e6eac0a3a3b5a027b85e}{
\index{mln::p\_\-key@{mln::p\_\-key}!key@{key}}
\index{key@{key}!mln::p_key@{mln::p\_\-key}}
\subsubsection[{key}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K , typename P $>$ const K \& {\bf mln::p\_\-key}$<$ K, P $>$::key (
\begin{DoxyParamCaption}
\item[{const P \&}]{ p}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d5d/a00311_acf5e79cff5f5e6eac0a3a3b5a027b85e}


Give the key associated with site {\ttfamily p}. 



Definition at line 501 of file p\_\-key.hh.

\hypertarget{a00311_a12d833eee403c4212df906d83e584c34}{
\index{mln::p\_\-key@{mln::p\_\-key}!keys@{keys}}
\index{keys@{keys}!mln::p_key@{mln::p\_\-key}}
\subsubsection[{keys}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K , typename P $>$ const {\bf util::set}$<$ K $>$ \& {\bf mln::p\_\-key}$<$ K, P $>$::keys (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d5d/a00311_a12d833eee403c4212df906d83e584c34}


Give the set of keys. 



Definition at line 511 of file p\_\-key.hh.

\hypertarget{a00311_a0d48e65c72c23687b51a0085b4d1bbec}{
\index{mln::p\_\-key@{mln::p\_\-key}!memory\_\-size@{memory\_\-size}}
\index{memory\_\-size@{memory\_\-size}!mln::p_key@{mln::p\_\-key}}
\subsubsection[{memory\_\-size}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K , typename P $>$ std::size\_\-t {\bf mln::p\_\-key}$<$ K, P $>$::memory\_\-size (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d5d/a00311_a0d48e65c72c23687b51a0085b4d1bbec}


Return the size of this site set in memory. 



Definition at line 475 of file p\_\-key.hh.

\hypertarget{a00311_a2c5470fa00affe299d303b20e312a62b}{
\index{mln::p\_\-key@{mln::p\_\-key}!nsites@{nsites}}
\index{nsites@{nsites}!mln::p_key@{mln::p\_\-key}}
\subsubsection[{nsites}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K , typename P $>$ unsigned {\bf mln::p\_\-key}$<$ K, P $>$::nsites (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d5d/a00311_a2c5470fa00affe299d303b20e312a62b}


Give the number of sites. 



Definition at line 245 of file p\_\-key.hh.

\hypertarget{a00311_a43136d0ecafb54f7dd84c28962b5a7db}{
\index{mln::p\_\-key@{mln::p\_\-key}!operator()@{operator()}}
\index{operator()@{operator()}!mln::p_key@{mln::p\_\-key}}
\subsubsection[{operator()}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K , typename P $>$ const {\bf p\_\-set}$<$ P $>$ \& {\bf mln::p\_\-key}$<$ K, P $>$::operator() (
\begin{DoxyParamCaption}
\item[{const K \&}]{ key}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d5d/a00311_a43136d0ecafb54f7dd84c28962b5a7db}


Give the queue with the priority {\ttfamily priority}. 

This method always works: if the priority is not in this set, an empty queue is returned. 

Definition at line 489 of file p\_\-key.hh.



References mln::p\_\-key$<$ K, P $>$::exists\_\-key().

\hypertarget{a00311_ab222613b4d8db4b5fd2ddc2d7fa39d07}{
\index{mln::p\_\-key@{mln::p\_\-key}!remove@{remove}}
\index{remove@{remove}!mln::p_key@{mln::p\_\-key}}
\subsubsection[{remove}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K , typename P $>$ void {\bf mln::p\_\-key}$<$ K, P $>$::remove (
\begin{DoxyParamCaption}
\item[{const P \&}]{ p}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d5d/a00311_ab222613b4d8db4b5fd2ddc2d7fa39d07}


Remove a site {\ttfamily p}. 



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

\hypertarget{a00311_a5c347c39eec96e787822330533cd643a}{
\index{mln::p\_\-key@{mln::p\_\-key}!remove\_\-key@{remove\_\-key}}
\index{remove\_\-key@{remove\_\-key}!mln::p_key@{mln::p\_\-key}}
\subsubsection[{remove\_\-key}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K , typename P $>$ void {\bf mln::p\_\-key}$<$ K, P $>$::remove\_\-key (
\begin{DoxyParamCaption}
\item[{const K \&}]{ k}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d5d/a00311_a5c347c39eec96e787822330533cd643a}


Remove all sites with key {\ttfamily k}. 



Definition at line 351 of file p\_\-key.hh.



References mln::p\_\-set$<$ P $>$::nsites().

