26 #ifndef NFD_DAEMON_TABLE_MEASUREMENTS_ACCESSOR_HPP 27 #define NFD_DAEMON_TABLE_MEASUREMENTS_ACCESSOR_HPP 38 namespace measurements {
56 get(
const Name& name);
71 getParent(
const Entry& child);
76 findLongestPrefixMatch(
const Name& name,
83 findLongestPrefixMatch(
const pit::Entry& pitEntry,
90 findExactMatch(
const Name& name)
const;
97 extendLifetime(
Entry& entry,
const time::nanoseconds& lifetime);
104 filter(
Entry* entry)
const;
107 filter(
Entry& entry)
const;
111 const StrategyChoice& m_strategyChoice;
116 MeasurementsAccessor::filter(
Entry& entry)
const 118 return this->filter(&entry);
122 MeasurementsAccessor::get(
const Name& name)
124 return this->filter(m_measurements.get(name));
130 return this->filter(m_measurements.get(fibEntry));
136 return this->filter(m_measurements.get(pitEntry));
140 MeasurementsAccessor::getParent(
const Entry& child)
142 return this->filter(m_measurements.getParent(child));
146 MeasurementsAccessor::findLongestPrefixMatch(
const Name& name,
149 return this->filter(m_measurements.findLongestPrefixMatch(name, pred));
153 MeasurementsAccessor::findLongestPrefixMatch(
const pit::Entry& pitEntry,
156 return this->filter(m_measurements.findLongestPrefixMatch(pitEntry, pred));
160 MeasurementsAccessor::findExactMatch(
const Name& name)
const 162 return this->filter(m_measurements.findExactMatch(name));
166 MeasurementsAccessor::extendLifetime(
Entry& entry,
const time::nanoseconds& lifetime)
168 m_measurements.extendLifetime(entry, lifetime);
177 #endif // NFD_DAEMON_TABLE_MEASUREMENTS_ACCESSOR_HPP represents a Measurements entry
std::function< bool(const Entry &)> EntryPredicate
a predicate that accepts or rejects an entry
represents the Measurements table
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
allows Strategy to access portion of Measurements table under its namespace
represents a forwarding strategy
an EntryPredicate that accepts any entry