struct LinkOrderPred

Orders a sequence of OlsrTypes::LogicalLinkID in descending order of link preference. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods

Public Members


Detailed Description

Model of StrictWeakOrdering.

Neighborhood* _nh

_nh

inline  LinkOrderPred (Neighborhood* nh)

LinkOrderPred

bool  operator() (const OlsrTypes::LogicalLinkID lhid, const OlsrTypes::LogicalLinkID rhid)

operator()

Determine if the left-hand link comes before the 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 the best link means a change in routes, unless we dampen flap somehow.

Returns: true if link lhs is better than link rhs.


Generated by: bms on anglepoise.lon.incunabulum.net on Wed Jul 23 10:06:13 2008, using kdoc 2.0a54+XORP.