36 const unique_ptr<Entry> Fib::s_emptyEntry = make_unique<Entry>(
Name());
45 : m_nameTree(nameTree)
52 Fib::findLongestPrefixMatchImpl(
const K& key)
const 64 return this->findLongestPrefixMatchImpl(prefix);
70 return this->findLongestPrefixMatchImpl(pitEntry);
76 return this->findLongestPrefixMatchImpl(measurementsEntry);
89 std::pair<Entry*, bool>
94 if (entry !=
nullptr) {
95 return std::make_pair(entry,
false);
106 BOOST_ASSERT(nte !=
nullptr);
110 m_nameTree.eraseIfEmpty(nte);
119 if (nte !=
nullptr) {
128 if (nte ==
nullptr) {
129 BOOST_ASSERT(&entry == s_emptyEntry.get());
142 this->
erase(nte,
false);
147 Fib::getRange()
const std::pair< Entry *, bool > insert(const Name &prefix)
inserts a FIB entry for prefix
Entry * findExactMatch(const Name &prefix)
performs an exact match lookup
void erase(const Name &prefix)
represents a Measurements entry
void removeNextHop(const Face &face)
removes a NextHop record
fib::Entry * getFibEntry() const
Copyright (c) 2011-2015 Regents of the University of California.
const Entry & findLongestPrefixMatch(const Name &prefix) const
performs a longest prefix match
Represents an absolute name.
boost::range_iterator< Range >::type const_iterator
void removeNextHop(Entry &entry, const Face &face)
removes the NextHop record for face
NFD_ASSERT_FORWARD_ITERATOR(Fib::const_iterator)
a functor to get a table entry from a name tree entry
static bool nteHasFibEntry(const name_tree::Entry &nte)
boost::transformed_range< name_tree::GetTableEntry< Entry >, const name_tree::Range > Range
void setFibEntry(unique_ptr< fib::Entry > fibEntry)
an entry in the name tree