\hypertarget{structTwoHopLinkOrderPred}{
\section{TwoHopLinkOrderPred Struct Reference}
\label{structTwoHopLinkOrderPred}\index{TwoHopLinkOrderPred@{TwoHopLinkOrderPred}}
}


Orders a sequence of \hyperlink{structOlsrTypes_a5341e986890944c45a8362cd9d8916e7}{OlsrTypes::TwoHopLinkID} in descending order of link preference.  




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

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{structTwoHopLinkOrderPred_aea4902d5bd1cbeb001af3f91b1efadc2}{
{\bfseries TwoHopLinkOrderPred} (\hyperlink{classNeighborhood}{Neighborhood} $\ast$nh)}
\label{structTwoHopLinkOrderPred_aea4902d5bd1cbeb001af3f91b1efadc2}

\item 
bool \hyperlink{structTwoHopLinkOrderPred_a8e594ab973d088d3f44c4b0088d40005}{operator()} (const \hyperlink{structOlsrTypes_a5341e986890944c45a8362cd9d8916e7}{OlsrTypes::TwoHopLinkID} lhid, const \hyperlink{structOlsrTypes_a5341e986890944c45a8362cd9d8916e7}{OlsrTypes::TwoHopLinkID} rhid)
\begin{DoxyCompactList}\small\item\em Determine if a two-\/hop link is better than another two-\/hop link. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{structTwoHopLinkOrderPred_a9f88313db87e5054979b08f16c05b660}{
\hyperlink{classNeighborhood}{Neighborhood} $\ast$ {\bfseries \_\-nh}}
\label{structTwoHopLinkOrderPred_a9f88313db87e5054979b08f16c05b660}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Orders a sequence of \hyperlink{structOlsrTypes_a5341e986890944c45a8362cd9d8916e7}{OlsrTypes::TwoHopLinkID} in descending order of link preference. Model of StrictWeakOrdering. 

\subsection{Member Function Documentation}
\hypertarget{structTwoHopLinkOrderPred_a8e594ab973d088d3f44c4b0088d40005}{
\index{TwoHopLinkOrderPred@{TwoHopLinkOrderPred}!operator()@{operator()}}
\index{operator()@{operator()}!TwoHopLinkOrderPred@{TwoHopLinkOrderPred}}
\subsubsection[{operator()}]{\setlength{\rightskip}{0pt plus 5cm}bool TwoHopLinkOrderPred::operator() (
\begin{DoxyParamCaption}
\item[{const {\bf OlsrTypes::TwoHopLinkID}}]{lhid, }
\item[{const {\bf OlsrTypes::TwoHopLinkID}}]{rhid}
\end{DoxyParamCaption}
)}}
\label{structTwoHopLinkOrderPred_a8e594ab973d088d3f44c4b0088d40005}


Determine if a two-\/hop link is better than another two-\/hop link. 

Collation order: most recently updated, highest ID. TODO: Use ETX measurements.

\begin{DoxyReturn}{Returns}
true if link lhid is better than link rhid. 
\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}
