represents the FIB More...
#include <fib.hpp>
Classes | |
class | const_iterator |
Public Member Functions | |
Fib (NameTree &nameTree) | |
~Fib () | |
size_t | size () const |
shared_ptr< fib::Entry > | findLongestPrefixMatch (const Name &prefix) const |
performs a longest prefix match More... | |
shared_ptr< fib::Entry > | findLongestPrefixMatch (const pit::Entry &pitEntry) const |
performs a longest prefix match More... | |
shared_ptr< fib::Entry > | findLongestPrefixMatch (const measurements::Entry &measurementsEntry) const |
performs a longest prefix match More... | |
shared_ptr< fib::Entry > | findExactMatch (const Name &prefix) const |
std::pair< shared_ptr< fib::Entry >, bool > | insert (const Name &prefix) |
inserts a FIB entry for prefix If an entry for exact same prefix exists, that entry is returned. More... | |
void | erase (const Name &prefix) |
void | erase (const fib::Entry &entry) |
void | removeNextHopFromAllEntries (shared_ptr< Face > face) |
removes the NextHop record for face in all entrites More... | |
const_iterator | begin () const |
returns an iterator pointing to the first FIB entry More... | |
const_iterator | end () const |
returns an iterator referring to the past-the-end FIB entry More... | |
|
inline |
Definition at line 166 of file fib.hpp.
Referenced by nfd::StatusServer::StatusServer().
shared_ptr< fib::Entry > nfd::Fib::findLongestPrefixMatch | ( | const Name & | prefix | ) | const |
performs a longest prefix match
Definition at line 66 of file fib.cpp.
References nfd::NameTree::findLongestPrefixMatch(), and nfd::predicate_NameTreeEntry_hasFibEntry().
Referenced by findLongestPrefixMatch(), and nfd::Forwarder::~Forwarder().
shared_ptr< fib::Entry > nfd::Fib::findLongestPrefixMatch | ( | const pit::Entry & | pitEntry | ) | const |
performs a longest prefix match
Definition at line 91 of file fib.cpp.
References findLongestPrefixMatch(), and nfd::NameTree::get().
shared_ptr< fib::Entry > nfd::Fib::findLongestPrefixMatch | ( | const measurements::Entry & | measurementsEntry | ) | const |
performs a longest prefix match
Definition at line 101 of file fib.cpp.
References findLongestPrefixMatch(), and nfd::NameTree::get().
shared_ptr< fib::Entry > nfd::Fib::findExactMatch | ( | const Name & | prefix | ) | const |
Definition at line 111 of file fib.cpp.
References nfd::NameTree::findExactMatch().
Referenced by nfd::FibManager::onFibRequest().
std::pair< shared_ptr< fib::Entry >, bool > nfd::Fib::insert | ( | const Name & | prefix | ) |
inserts a FIB entry for prefix If an entry for exact same prefix exists, that entry is returned.
Definition at line 120 of file fib.cpp.
References erase(), nfd::NameTree::eraseEntryIfEmpty(), and nfd::NameTree::lookup().
Referenced by nfd::FibManager::onFibRequest().
void nfd::Fib::erase | ( | const Name & | prefix | ) |
Definition at line 141 of file fib.cpp.
References nfd::NameTree::findExactMatch().
Referenced by erase(), insert(), nfd::FibManager::onFibRequest(), and removeNextHopFromAllEntries().
void nfd::Fib::erase | ( | const fib::Entry & | entry | ) |
Definition at line 150 of file fib.cpp.
References erase(), and nfd::NameTree::get().
void nfd::Fib::removeNextHopFromAllEntries | ( | shared_ptr< Face > | face | ) |
removes the NextHop record for face in all entrites
This is usually invoked when face goes away. Removing the last NextHop in a FIB entry will erase the FIB entry.
Definition at line 159 of file fib.cpp.
References erase(), nfd::NameTree::fullEnumerate(), and nfd::predicate_NameTreeEntry_hasFibEntry().
Referenced by nfd::FaceTable::addReserved().
Fib::const_iterator nfd::Fib::begin | ( | ) | const |
returns an iterator pointing to the first FIB entry
Definition at line 180 of file fib.cpp.
References nfd::NameTree::fullEnumerate(), and nfd::predicate_NameTreeEntry_hasFibEntry().
Referenced by nfd::FibEnumerationPublisher::generate().
|
inline |
returns an iterator referring to the past-the-end FIB entry
Definition at line 172 of file fib.hpp.
Referenced by nfd::FibEnumerationPublisher::generate().