\hypertarget{structExternalRouteOrderPred}{
\section{ExternalRouteOrderPred Struct Reference}
\label{structExternalRouteOrderPred}\index{ExternalRouteOrderPred@{ExternalRouteOrderPred}}
}


Orders a sequence of \hyperlink{structOlsrTypes_a8f9558c89c7067886dac838b22385ad9}{OlsrTypes::ExternalID} in descending order of preference for route selection.  




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

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{structExternalRouteOrderPred_ae0daeb0b642a3237ab127a7f171d7e61}{
{\bfseries ExternalRouteOrderPred} (\hyperlink{classExternalRoutes}{ExternalRoutes} \&ers)}
\label{structExternalRouteOrderPred_ae0daeb0b642a3237ab127a7f171d7e61}

\item 
bool \hyperlink{structExternalRouteOrderPred_a2ee0bc74ed33485ec6326cd5e0b2e091}{operator()} (const \hyperlink{structOlsrTypes_a8f9558c89c7067886dac838b22385ad9}{OlsrTypes::ExternalID} lhid, const \hyperlink{structOlsrTypes_a8f9558c89c7067886dac838b22385ad9}{OlsrTypes::ExternalID} rhid)
\begin{DoxyCompactList}\small\item\em Functor to: implement collation order on external route maps. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{structExternalRouteOrderPred_a965b0498f4fab23ce4b70800c33951a1}{
\hyperlink{classExternalRoutes}{ExternalRoutes} \& {\bfseries \_\-ers}}
\label{structExternalRouteOrderPred_a965b0498f4fab23ce4b70800c33951a1}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Orders a sequence of \hyperlink{structOlsrTypes_a8f9558c89c7067886dac838b22385ad9}{OlsrTypes::ExternalID} in descending order of preference for route selection. Model of StrictWeakOrdering. 

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


Functor to: implement collation order on external route maps. 

12.6: The distance to \hyperlink{protocolthe-p}{the} last-\/hop, as measured from \hyperlink{protocolthe-p}{the} HNA message, is used as \hyperlink{protocolthe-p}{the} current discriminator; this is what's specified in \hyperlink{protocolthe-p}{the} RFC.

Because identifiers for these structures are normally passed around rather than \hyperlink{protocolthe-p}{the} pointers themselves, it is necessary to use a functor.

Collation order: 1. Network destination, as per \hyperlink{classIPvXNet}{IPvXNet}. 2. If not self originated, distance in ascending order.


\begin{DoxyParams}{Parameters}
{\em lhid} & \hyperlink{protocolthe-p}{the} ID of \hyperlink{protocolthe-p}{the} external route on \hyperlink{protocolthe-p}{the} left-\/hand side. \\
\hline
{\em rhid} & \hyperlink{protocolthe-p}{the} ID of \hyperlink{protocolthe-p}{the} external route on \hyperlink{protocolthe-p}{the} right-\/hand side. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if lhid comes before 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/external.hh\item 
/home/greearb/git/xorp.ct.github/xorp/contrib/olsr/external.cc\end{DoxyCompactItemize}
