bool operator() (const NextHop& nh1, const NextHop& nh2) const { if (nh1.getRouteCostAsAdjustedInteger() < nh2.getRouteCostAsAdjustedInteger()) { return true; } else if (nh1.getRouteCostAsAdjustedInteger() == nh2.getRouteCostAsAdjustedInteger()) { return nh1.getConnectingFaceUri() < nh2.getConnectingFaceUri(); } else { return false; } }
static bool nexthopRemoveCompare(const NextHop& nh1, const NextHop& nh2) { return (nh1.getConnectingFaceUri() == nh2.getConnectingFaceUri() && nh1.getRouteCostAsAdjustedInteger() == nh2.getRouteCostAsAdjustedInteger()) ; }