\hypertarget{structCandMprOrderPred}{
\section{CandMprOrderPred Struct Reference}
\label{structCandMprOrderPred}\index{CandMprOrderPred@{CandMprOrderPred}}
}


Orders a sequence of Neighbor$\ast$ in descending order of MPR candidacy.  




{\ttfamily \#include $<$neighborhood.hh$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{structCandMprOrderPred_a0e7a84cb4d23d2481b2f8390eee723d8}{operator()} (const \hyperlink{classNeighbor}{Neighbor} $\ast$lhs, const \hyperlink{classNeighbor}{Neighbor} $\ast$rhs) const 
\begin{DoxyCompactList}\small\item\em Compare two Neighbors based on their MPR candidacy. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Orders a sequence of Neighbor$\ast$ in descending order of MPR candidacy. Model of StrictWeakOrdering. 

\subsection{Member Function Documentation}
\hypertarget{structCandMprOrderPred_a0e7a84cb4d23d2481b2f8390eee723d8}{
\index{CandMprOrderPred@{CandMprOrderPred}!operator()@{operator()}}
\index{operator()@{operator()}!CandMprOrderPred@{CandMprOrderPred}}
\subsubsection[{operator()}]{\setlength{\rightskip}{0pt plus 5cm}bool CandMprOrderPred::operator() (
\begin{DoxyParamCaption}
\item[{const {\bf Neighbor} $\ast$}]{lhs, }
\item[{const {\bf Neighbor} $\ast$}]{rhs}
\end{DoxyParamCaption}
) const}}
\label{structCandMprOrderPred_a0e7a84cb4d23d2481b2f8390eee723d8}


Compare two Neighbors based on their MPR candidacy. 

It is assumed both pointers are valid for \hyperlink{protocolthe-p}{the} scope of \hyperlink{protocolthe-p}{the} functor.

Collation order: willingness, reachability, degree.

\begin{DoxyReturn}{Returns}
true if lhs comes before rhs. 
\end{DoxyReturn}


The documentation for this struct was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/contrib/olsr/neighborhood.hh\item 
/home/greearb/git/xorp.ct.github/xorp/contrib/olsr/neighborhood.cc\end{DoxyCompactItemize}
