26 #ifndef NFD_DAEMON_TABLE_MEASUREMENTS_ACCESSOR_HPP
27 #define NFD_DAEMON_TABLE_MEASUREMENTS_ACCESSOR_HPP
50 shared_ptr<measurements::Entry>
51 get(
const Name& name);
55 shared_ptr<measurements::Entry>
60 shared_ptr<measurements::Entry>
66 shared_ptr<measurements::Entry>
80 shared_ptr<measurements::Entry>
81 filter(
const shared_ptr<measurements::Entry>& entry);
89 inline shared_ptr<measurements::Entry>
92 return this->filter(m_measurements.
get(name));
95 inline shared_ptr<measurements::Entry>
98 return this->filter(m_measurements.
get(fibEntry));
101 inline shared_ptr<measurements::Entry>
104 return this->filter(m_measurements.
get(pitEntry));
107 inline shared_ptr<measurements::Entry>
110 return this->filter(m_measurements.
getParent(child));
115 const time::nanoseconds& lifetime)
122 #endif // NFD_DAEMON_TABLE_MEASUREMENTS_ACCESSOR_HPP
shared_ptr< measurements::Entry > getParent(const measurements::Entry &child)
find or insert a Measurements entry for child's parent
represents the Strategy Choice table
shared_ptr< measurements::Entry > get(const Name &name)
find or insert a Measurements entry for name
represents a Measurements entry
allows Strategy to access portion of Measurements table under its namespace
MeasurementsAccessor(Measurements &measurements, StrategyChoice &strategyChoice, fw::Strategy *strategy)
represents a forwarding strategy
void extendLifetime(measurements::Entry &entry, const time::nanoseconds &lifetime)
extend lifetime of an entry
void extendLifetime(measurements::Entry &entry, const time::nanoseconds &lifetime)
extend lifetime of an entry
shared_ptr< measurements::Entry > get(const Name &name)
find or insert a Measurements entry for name
shared_ptr< measurements::Entry > getParent(const measurements::Entry &child)
find or insert a Measurements entry for child's parent