26 #ifndef NFD_DAEMON_TABLE_NAME_TREE_HPP 27 #define NFD_DAEMON_TABLE_NAME_TREE_HPP 78 template<
typename EntryT>
142 findExactMatch(
const Name& name,
size_t prefixLen = std::numeric_limits<size_t>::max())
const;
167 template<
typename EntryT>
173 BOOST_ASSERT(nte !=
nullptr);
280 #endif // NFD_DAEMON_TABLE_NAME_TREE_HPP static size_t getMaxDepth()
Maximum depth of the name tree.
function< std::pair< bool, bool >const Entry &entry)> EntrySubTreeSelector
a predicate to accept or reject an Entry and its children
an EntrySelector that accepts every Entry
an EntrySubTreeSelector that accepts every Entry and its children
a hashtable for fast exact name lookup
represents a Measurements entry
Entry * findExactMatch(const Name &name, size_t prefixLen=std::numeric_limits< size_t >::max()) const
exact match lookup
Copyright (c) 2011-2015 Regents of the University of California.
size_t getNBuckets() const
const_iterator end() const
Entry & lookup(const Name &name, bool enforceMaxDepth=false)
find or insert an entry with specified name
Range partialEnumerate(const Name &prefix, const EntrySubTreeSelector &entrySubTreeSelector=AnyEntrySubTree()) const
enumerate all entries under a prefix
Entry * getEntry(const EntryT &tableEntry) const
Entry * findLongestPrefixMatch(const EntryT &tableEntry, const EntrySelector &entrySelector=AnyEntry()) const
equivalent to .findLongestPrefixMatch(getEntry(tableEntry)->getName(), entrySelector) ...
static Entry * get(const ENTRY &tableEntry)
Represents an absolute name.
represents a Strategy Choice entry
function< bool(const Entry &entry)> EntrySelector
a predicate to accept or reject an Entry in find operations
NameTree(size_t nBuckets=1024)
size_t eraseIfEmpty(Entry *entry, bool canEraseAncestors=true)
delete the entry if it is empty
a common index structure for FIB, PIT, StrategyChoice, and Measurements
boost::iterator_range< Iterator > Range
a Forward Range of name tree entries
const_iterator begin() const
size_t getNBuckets() const
Range fullEnumerate(const EntrySelector &entrySelector=AnyEntry()) const
enumerate all entries
Range findAllMatches(const Name &name, const EntrySelector &entrySelector=AnyEntry()) const
all-prefixes match lookup
Entry * findLongestPrefixMatch(const Name &name, const EntrySelector &entrySelector=AnyEntry()) const
longest prefix matching
enumeration operation implementation
an entry in the name tree