26 #ifndef NFD_DAEMON_TABLE_MEASUREMENTS_ACCESSOR_HPP 27 #define NFD_DAEMON_TABLE_MEASUREMENTS_ACCESSOR_HPP 38 namespace measurements {
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));
177 #endif // NFD_DAEMON_TABLE_MEASUREMENTS_ACCESSOR_HPP Entry * findExactMatch(const Name &name) const
perform an exact match
std::function< bool(const Entry &)> EntryPredicate
a predicate that accepts or rejects an entry
Entry * findLongestPrefixMatch(const Name &name, const EntryPredicate &pred=AnyEntry()) const
perform a longest prefix match for name
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
represents a Measurements entry
Entry * getParent(const Entry &child)
find or insert a parent entry
Copyright (c) 2011-2015 Regents of the University of California.
void extendLifetime(Entry &entry, const time::nanoseconds &lifetime)
extend lifetime of an entry
an EntryPredicate that accepts any entry
Represents an absolute name.
represents a forwarding strategy
allows Strategy to access portion of Measurements table under its namespace
represents the Strategy Choice table
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
Entry & get(const Name &name)
find or insert an entry by name
Entry * getParent(const Entry &child)
find or insert a Measurements entry for child's parent