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 (shared_ptr< Face > face) const |
void | addNextHop (shared_ptr< Face > face, uint64_t cost) |
adds a NextHop record More... | |
void | removeNextHop (shared_ptr< Face > face) |
removes a NextHop record More... | |
Friends | |
class | nfd::NameTree |
class | nfd::name_tree::Entry |
represents a FIB entry
Definition at line 53 of file fib-entry.hpp.
|
explicit |
Definition at line 31 of file fib-entry.cpp.
|
inline |
Definition at line 115 of file fib-entry.hpp.
Referenced by nfd::Measurements::get().
|
inline |
Definition at line 121 of file fib-entry.hpp.
|
inline |
Definition at line 127 of file fib-entry.hpp.
References ndn::Name::empty().
bool nfd::fib::Entry::hasNextHop | ( | shared_ptr< Face > | face | ) | const |
Definition at line 46 of file fib-entry.cpp.
void nfd::fib::Entry::addNextHop | ( | shared_ptr< Face > | face, |
uint64_t | cost | ||
) |
adds a NextHop record
If a NextHop record for face already exists, its cost is updated.
Definition at line 52 of file fib-entry.cpp.
void nfd::fib::Entry::removeNextHop | ( | shared_ptr< Face > | face | ) |
removes a NextHop record
If no NextHop record for face exists, do nothing.
Definition at line 68 of file fib-entry.cpp.
References nfd::fib::NextHop::getCost().
|
friend |
Definition at line 109 of file fib-entry.hpp.
|
friend |
Definition at line 110 of file fib-entry.hpp.