26 #ifndef NFD_DAEMON_TABLE_MEASUREMENTS_ACCESSOR_HPP
27 #define NFD_DAEMON_TABLE_MEASUREMENTS_ACCESSOR_HPP
38 namespace measurements {
56 get(
const Name& name);
104 filter(
Entry* entry)
const;
107 filter(
Entry& entry)
const;
116 MeasurementsAccessor::filter(
Entry& entry)
const
118 return this->filter(&entry);
124 return this->filter(m_measurements.
get(name));
130 return this->filter(m_measurements.
get(fibEntry));
136 return this->filter(m_measurements.
get(pitEntry));
142 return this->filter(m_measurements.
getParent(child));
Represents a forwarding strategy.
An EntryPredicate that accepts any entry.
Represents a Measurements entry.
allows Strategy to access portion of Measurements table under its namespace
void extendLifetime(Entry &entry, const time::nanoseconds &lifetime)
extend lifetime of an entry
Entry * findLongestPrefixMatch(const Name &name, const EntryPredicate &pred=AnyEntry()) const
perform a longest prefix match for name
Entry * getParent(const Entry &child)
find or insert a Measurements entry for child's parent
MeasurementsAccessor(Measurements &measurements, const StrategyChoice &strategyChoice, const fw::Strategy &strategy)
Entry * get(const Name &name)
find or insert a Measurements entry for name
Entry * findExactMatch(const Name &name) const
perform an exact match
void extendLifetime(Entry &entry, const time::nanoseconds &lifetime)
Extend lifetime of an entry.
Entry * getParent(const Entry &child)
Find or insert a parent entry.
Entry & get(const Name &name)
Find or insert an entry by name.
Entry * findExactMatch(const Name &name) const
Perform an exact match.
Entry * findLongestPrefixMatch(const Name &name, const EntryPredicate &pred=AnyEntry()) const
Perform a longest prefix match for name.
Represents the Strategy Choice table.
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,...