26 #ifndef NFD_DAEMON_TABLE_FIB_HPP
27 #define NFD_DAEMON_TABLE_FIB_HPP
32 #include <boost/range/adaptor/transformed.hpp>
36 namespace measurements {
47 class Fib : noncopyable
51 Fib(NameTree& nameTree);
90 std::pair<Entry*, bool>
91 insert(
const Name& prefix);
94 erase(
const Name& prefix);
116 return this->getRange().begin();
125 return this->getRange().end();
133 findLongestPrefixMatchImpl(
const K& key)
const;
142 NameTree& m_nameTree;
150 static const unique_ptr<Entry> s_emptyEntry;
159 #endif // NFD_DAEMON_TABLE_FIB_HPP
Entry * findExactMatch(const Name &prefix)
performs an exact match lookup
void erase(const Name &prefix)
represents a Measurements entry
std::pair< Entry *, bool > insert(const Name &prefix)
inserts a FIB entry for prefix
represents the Forwarding Information Base (FIB)
boost::transformed_range< name_tree::GetTableEntry< Entry >, const name_tree::Range > Range
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
const_iterator begin() const
const_iterator end() const
an entry in the name tree
boost::range_iterator< Range >::type const_iterator
void removeNextHop(Entry &entry, const Face &face)
removes the NextHop record for face
boost::iterator_range< Iterator > Range
a Forward Range of name tree entries
const Entry & findLongestPrefixMatch(const Name &prefix) const
performs a longest prefix match