26 #ifndef NFD_DAEMON_TABLE_FIB_HPP 27 #define NFD_DAEMON_TABLE_FIB_HPP 34 #include <boost/range/adaptor/transformed.hpp> 38 namespace measurements {
49 class Fib : noncopyable
89 static constexpr
size_t 99 std::pair<Entry*, bool>
130 return this->getRange().begin();
139 return this->getRange().end();
147 findLongestPrefixMatchImpl(
const K& key)
const;
155 eraseIfEmpty(
Entry& entry);
169 static const unique_ptr<Entry> s_emptyEntry;
178 #endif // NFD_DAEMON_TABLE_FIB_HPP void removeNextHopByFace(Entry &entry, const Face &face)
removes the NextHop record for face for any endpointId
std::pair< Entry *, bool > insert(const Name &prefix)
find or insert a FIB entry
Entry * findExactMatch(const Name &prefix)
performs an exact match lookup
void erase(const Name &prefix)
generalization of a network interface
const_iterator end() const
static constexpr size_t getMaxDepth()
Maximum number of components in a FIB entry prefix.
const Entry & findLongestPrefixMatch(const Name &prefix) const
performs a longest prefix match
represents a Measurements entry
void removeNextHop(Entry &entry, const Face &face, uint64_t endpointId)
removes the NextHop record for face with a given endpointId
Copyright (c) 2011-2015 Regents of the University of California.
represents the Forwarding Information Base (FIB)
const_iterator begin() const
Represents an absolute name.
boost::range_iterator< Range >::type const_iterator
static const int FIB_MAX_DEPTH
Maximum number of components in a FIB entry prefix.
a common index structure for FIB, PIT, StrategyChoice, and Measurements
boost::iterator_range< Iterator > Range
a Forward Range of name tree entries
boost::transformed_range< name_tree::GetTableEntry< Entry >, const name_tree::Range > Range
an entry in the name tree