#include <fib-nexthop.hpp>
Public Member Functions | |
FibNextHop (int cost, int nhId, int costDelta=-1, NextHopType type=NextHopType::DISABLED) | |
int | getNexthopId () const |
int | getCost () const |
int | getCostDelta () const |
NextHopType | getType () const |
void | setType (const NextHopType &newType) |
void | setCost (int newCost, int newCostDelta) |
Static Public Attributes | |
static constexpr int | MAX_COST = 1 * 1000 * 1000 |
Friends | |
bool | operator< (const FibNextHop &own, const FibNextHop &other) |
bool | operator== (const FibNextHop &own, const FibNextHop &other) |
bool | operator!= (const FibNextHop &own, const FibNextHop &other) |
std::ostream & | operator<< (std::ostream &, const FibNextHop &fib) |
Definition at line 36 of file fib-nexthop.hpp.
ns3::ndn::FibNextHop::FibNextHop | ( | int | cost, |
int | nhId, | ||
int | costDelta = -1 , |
||
NextHopType | type = NextHopType::DISABLED |
||
) |
nhId | The nexthop id. |
cost | The link cost of a nexthop. has to be larger than 0! |
costDelta | The cost difference (relative to the shortest path nexthop) |
type | The nexthop type |
Definition at line 31 of file fib-nexthop.cpp.
References MAX_COST.
|
inline |
Definition at line 50 of file fib-nexthop.hpp.
Referenced by ns3::ndn::AbstractFib::checkFib(), ns3::ndn::AbstractFib::insert(), std::hash< FibNextHop >::operator()(), ns3::ndn::operator<<(), ns3::ndn::removeDeadEnds(), and ns3::ndn::removeLoops().
|
inline |
Definition at line 56 of file fib-nexthop.hpp.
Referenced by ns3::ndn::AbstractFib::checkFib(), and std::hash< FibNextHop >::operator()().
|
inline |
Definition at line 62 of file fib-nexthop.hpp.
|
inline |
Definition at line 68 of file fib-nexthop.hpp.
Referenced by ns3::ndn::AbstractFib::checkFib(), and ns3::ndn::AbstractFib::insert().
|
inline |
Definition at line 75 of file fib-nexthop.hpp.
References ns3::ndn::DISABLED.
|
inline |
Definition at line 83 of file fib-nexthop.hpp.
|
friend |
Definition at line 94 of file fib-nexthop.hpp.
|
friend |
Definition at line 103 of file fib-nexthop.hpp.
|
friend |
Definition at line 117 of file fib-nexthop.hpp.
|
friend |
Definition at line 57 of file fib-nexthop.cpp.
|
static |
Definition at line 38 of file fib-nexthop.hpp.
Referenced by ns3::ndn::AbstractFib::checkFib(), and FibNextHop().