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::ForwarderStatusManager::ForwarderStatusManager().
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::startProcessNack().
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::findLongestPrefixMatch().
shared_ptr< fib::Entry > nfd::Fib::findLongestPrefixMatch | ( | const measurements::Entry & | measurementsEntry | ) | const |
performs a longest prefix match
Definition at line 99 of file fib.cpp.
References findLongestPrefixMatch(), and nfd::NameTree::get().
shared_ptr< fib::Entry > nfd::Fib::findExactMatch | ( | const Name & | prefix | ) | const |
Definition at line 109 of file fib.cpp.
References nfd::NameTree::findExactMatch().
Referenced by nfd::FibManager::FibManager().
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 118 of file fib.cpp.
References erase(), nfd::NameTree::eraseEntryIfEmpty(), and nfd::NameTree::lookup().
Referenced by nfd::FibManager::FibManager().
void nfd::Fib::erase | ( | const Name & | prefix | ) |
Definition at line 139 of file fib.cpp.
References nfd::NameTree::findExactMatch().
Referenced by erase(), nfd::FibManager::FibManager(), insert(), and removeNextHopFromAllEntries().
void nfd::Fib::erase | ( | const fib::Entry & | entry | ) |
Definition at line 148 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 157 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 178 of file fib.cpp.
References nfd::NameTree::fullEnumerate(), and nfd::predicate_NameTreeEntry_hasFibEntry().
|
inline |