represents a FIB entry More...
#include <fib-entry.hpp>
Public Member Functions | |
Entry (const Name &prefix) | |
const Name & | getPrefix () const |
const NextHopList & | getNextHops () const |
bool | hasNextHops () const |
bool | hasNextHop (const Face &face) const |
void | addNextHop (Face &face, uint64_t cost) |
adds a NextHop record More... | |
void | removeNextHop (const Face &face) |
removes a NextHop record More... | |
Friends | |
class | name_tree::Entry |
represents a FIB entry
Definition at line 51 of file fib-entry.hpp.
|
explicit |
Definition at line 31 of file fib-entry.cpp.
|
inline |
Definition at line 58 of file fib-entry.hpp.
Referenced by nfd::measurements::Measurements::get(), nfd::fw::asf::AsfMeasurements::getOrCreateNamespaceInfo(), nfd::name_tree::NameTree::lookup(), nfd::fw::Strategy::lookupFib(), and nfd::fw::asf::ProbingModule::scheduleProbe().
|
inline |
Definition at line 64 of file fib-entry.hpp.
Referenced by nfd::fw::BestRouteStrategyBase::afterReceiveInterest(), nfd::fw::NccStrategy::afterReceiveInterest(), nfd::fw::MulticastStrategy::afterReceiveInterest(), nfd::fw::asf::AsfStrategy::afterReceiveInterest(), nfd::fw::BestRouteStrategy2::afterReceiveInterest(), nfd::fw::NccStrategy::doPropagate(), and nfd::fw::asf::ProbingModule::getFaceToProbe().
|
inline |
Definition at line 72 of file fib-entry.hpp.
Referenced by nfd::fib::Fib::removeNextHop().
bool nfd::fib::Entry::hasNextHop | ( | const Face & | face | ) | const |
face
Definition at line 47 of file fib-entry.cpp.
Referenced by nfd::fw::NccStrategy::afterReceiveInterest(), and nfd::fw::NccStrategy::doPropagate().
void nfd::fib::Entry::addNextHop | ( | Face & | face, |
uint64_t | cost | ||
) |
adds a NextHop record
If a NextHop record for face
already exists, its cost is updated.
Definition at line 53 of file fib-entry.cpp.
void nfd::fib::Entry::removeNextHop | ( | const Face & | face | ) |
removes a NextHop record
If no NextHop record for face exists, do nothing.
Definition at line 66 of file fib-entry.cpp.
Referenced by nfd::fib::Fib::removeNextHop().
|
friend |
Definition at line 113 of file fib-entry.hpp.