|ExternalRouteOrderPred (ExternalRoutes &ers)|
|bool||operator() (const OlsrTypes::ExternalID lhid, const OlsrTypes::ExternalID rhid)|
|Functor to: implement collation order on external route maps. |
Orders a sequence of OlsrTypes::ExternalID in descending order of preference for route selection.
Model of StrictWeakOrdering.
|bool ExternalRouteOrderPred::operator()||(||const OlsrTypes::ExternalID||lhid,|
Functor to: implement collation order on external route maps.
Because identifiers for these structures are normally passed around rather than the pointers themselves, it is necessary to use a functor.
Collation order: 1. Network destination, as per IPvXNet. 2. If not self originated, distance in ascending order.
|lhid||the ID of the external route on the left-hand side.|
|rhid||the ID of the external route on the right-hand side.|