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);
63 findLongestPrefixMatch(
const Name& prefix)
const;
70 findLongestPrefixMatch(
const pit::Entry& pitEntry)
const;
82 findExactMatch(
const Name& prefix);
90 std::pair<Entry*, bool>
91 insert(
const Name& prefix);
94 erase(
const Name& prefix);
97 erase(
const Entry& entry);
102 removeNextHop(
Entry& entry,
const Face& face);
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
represents a Measurements entry
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
boost::iterator_range< Iterator > Range
a Forward Range of name tree entries