xorp

TwoHopLinkOrderPred Struct Reference

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

#include <neighborhood.hh>

List of all members.

Public Member Functions

 TwoHopLinkOrderPred (Neighborhood *nh)
bool operator() (const OlsrTypes::TwoHopLinkID lhid, const OlsrTypes::TwoHopLinkID rhid)
 Determine if a two-hop link is better than another two-hop link.

Public Attributes

Neighborhood_nh

Detailed Description

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

Model of StrictWeakOrdering.


Member Function Documentation

bool TwoHopLinkOrderPred::operator() ( const OlsrTypes::TwoHopLinkID  lhid,
const OlsrTypes::TwoHopLinkID  rhid 
)

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

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

Returns:
true if link lhid is better than link rhid.

The documentation for this struct was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations