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::fw::asf::AsfStrategy::afterReceiveInterest(), nfd::fw::asf::AsfStrategy::afterReceiveNack(), nfd::fw::asf::AsfMeasurements::getOrCreateNamespaceInfo(), nfd::fw::asf::getValueForSorting(), 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::MulticastStrategy::afterReceiveInterest(), nfd::fw::NccStrategy::afterReceiveInterest(), nfd::fw::BestRouteStrategy::afterReceiveInterest(), nfd::fw::asf::AsfStrategy::afterReceiveInterest(), nfd::fw::AccessStrategy::afterReceiveInterest(), nfd::fw::BestRouteStrategy2::afterReceiveInterest(), nfd::fw::NccStrategy::doPropagate(), nfd::fw::asf::ProbingModule::getFaceToProbe(), and nfd::fw::asf::getValueForSorting().
|
inline |
Definition at line 72 of file fib-entry.hpp.
Referenced by nfd::FibManager::FibManager(), nfd::fw::Strategy::lookupFib(), and 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(), nfd::fw::AccessStrategy::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.
Referenced by nfd::FibManager::FibManager().
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.
References nfd::fib::NextHop::getCost().
Referenced by nfd::FibManager::FibManager(), and nfd::fib::Fib::removeNextHop().
|
friend |
Definition at line 113 of file fib-entry.hpp.