xorp

CandMprOrderPred Struct Reference

Orders a sequence of Neighbor* in descending order of MPR candidacy. More...

#include <neighborhood.hh>

List of all members.

Public Member Functions

bool operator() (const Neighbor *lhs, const Neighbor *rhs) const
 Compare two Neighbors based on their MPR candidacy.

Detailed Description

Orders a sequence of Neighbor* in descending order of MPR candidacy.

Model of StrictWeakOrdering.


Member Function Documentation

bool CandMprOrderPred::operator() ( const Neighbor lhs,
const Neighbor rhs 
) const

Compare two Neighbors based on their MPR candidacy.

It is assumed both pointers are valid for the scope of the functor.

Collation order: willingness, reachability, degree.

Returns:
true if lhs comes before rhs.

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