26 #ifndef NFD_DAEMON_TABLE_MEASUREMENTS_HPP 27 #define NFD_DAEMON_TABLE_MEASUREMENTS_HPP 42 namespace measurements {
87 static constexpr
size_t 99 get(
const Name& name);
116 getParent(
const Entry& child);
121 findLongestPrefixMatch(
const Name& name,
127 findLongestPrefixMatch(
const pit::Entry& pitEntry,
133 findExactMatch(
const Name& name)
const;
135 static time::nanoseconds
146 extendLifetime(
Entry& entry,
const time::nanoseconds& lifetime);
156 cleanup(
Entry& entry);
165 findLongestPrefixMatchImpl(
const K& key,
const EntryPredicate& pred)
const;
178 #endif // NFD_DAEMON_TABLE_MEASUREMENTS_HPP
A common index structure for FIB, PIT, StrategyChoice, and Measurements.
Represents a Measurements entry.
bool operator()(const Entry &entry) const
static constexpr size_t getMaxDepth()
maximum depth of a Measurements entry
static constexpr size_t getMaxDepth()
Maximum depth of the name tree.
An EntryPredicate that accepts an entry if it has StrategyInfo of type T.
bool operator()(const Entry &) const
std::function< bool(const Entry &)> EntryPredicate
A predicate that accepts or rejects an entry.
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
T * getStrategyInfo() const
Get a StrategyInfo item.
An entry in the name tree.
static time::nanoseconds getInitialLifetime()
An EntryPredicate that accepts any entry.