26 #ifndef NFD_DAEMON_TABLE_MEASUREMENTS_HPP
27 #define NFD_DAEMON_TABLE_MEASUREMENTS_HPP
42 namespace measurements {
84 get(
const Name& name);
106 const EntryPredicate& pred =
AnyEntry())
const;
112 const EntryPredicate& pred =
AnyEntry())
const;
119 static time::nanoseconds
134 cleanup(
Entry& entry);
143 findLongestPrefixMatchImpl(
const K& key,
const EntryPredicate& pred)
const;
146 NameTree& m_nameTree;
150 inline time::nanoseconds
153 return time::seconds(4);
168 #endif // NFD_DAEMON_TABLE_MEASUREMENTS_HPP
represents a Measurements entry
Entry * findLongestPrefixMatch(const Name &name, const EntryPredicate &pred=AnyEntry()) const
perform a longest prefix match for name
std::function< bool(const Entry &)> EntryPredicate
a predicate that accepts or rejects an entry
Entry * findExactMatch(const Name &name) const
perform an exact match
an EntryPredicate that accepts an entry if it has StrategyInfo of type T
Entry * getParent(const Entry &child)
find or insert a Measurements entry for child's parent
bool operator()(const Entry &entry) const
represents the Measurements table
static time::nanoseconds getInitialLifetime()
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Measurements(NameTree &nametree)
an entry in the name tree
T * getStrategyInfo() const
get a StrategyInfo item
an EntryPredicate that accepts any entry
bool operator()(const Entry &entry) const
void extendLifetime(Entry &entry, const time::nanoseconds &lifetime)
extend lifetime of an entry