\hypertarget{structLinkOrderPred}{
\section{LinkOrderPred Struct Reference}
\label{structLinkOrderPred}\index{LinkOrderPred@{LinkOrderPred}}
}


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




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

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

\item 
bool \hyperlink{structLinkOrderPred_a931b3f2a948900768ea705ebfc694780}{operator()} (const \hyperlink{structOlsrTypes_a5c8f1d4f06caa7b0cb4b05f7aef7b67f}{OlsrTypes::LogicalLinkID} lhid, const \hyperlink{structOlsrTypes_a5c8f1d4f06caa7b0cb4b05f7aef7b67f}{OlsrTypes::LogicalLinkID} rhid)
\begin{DoxyCompactList}\small\item\em Determine if \hyperlink{protocolthe-p}{the} left-\/hand link comes before \hyperlink{protocolthe-p}{the} \hyperlink{protocolthe-p}{the} right-\/hand link. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{structLinkOrderPred_ab38d768e1a834acdc65975792852714b}{
\hyperlink{classNeighborhood}{Neighborhood} $\ast$ {\bfseries \_\-nh}}
\label{structLinkOrderPred_ab38d768e1a834acdc65975792852714b}

\end{DoxyCompactItemize}


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

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


Determine if \hyperlink{protocolthe-p}{the} left-\/hand link comes before \hyperlink{protocolthe-p}{the} \hyperlink{protocolthe-p}{the} right-\/hand link. 

Collation order: symmetric, most recently updated, highest ID.

TODO: This is a candidate for moving into class Link. TODO: ETX metrics, collation order will be: Anything !is\_\-pending is above anything is\_\-pending Then order in ascending near\_\-etx(). Then order in ascending far\_\-etx(). A change in \hyperlink{protocolthe-p}{the} best link means a change in routes, unless we dampen flap somehow.

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