allows Strategy to access portion of Measurements table under its namespace More...
#include <measurements-accessor.hpp>
Public Member Functions | |
MeasurementsAccessor (Measurements &measurements, StrategyChoice &strategyChoice, fw::Strategy *strategy) | |
~MeasurementsAccessor () | |
shared_ptr< measurements::Entry > | get (const Name &name) |
find or insert a Measurements entry for name More... | |
shared_ptr< measurements::Entry > | get (const fib::Entry &fibEntry) |
find or insert a Measurements entry for fibEntry->getPrefix() More... | |
shared_ptr< measurements::Entry > | get (const pit::Entry &pitEntry) |
find or insert a Measurements entry for pitEntry->getName() More... | |
shared_ptr< measurements::Entry > | getParent (const measurements::Entry &child) |
find or insert a Measurements entry for child's parent More... | |
void | extendLifetime (measurements::Entry &entry, const time::nanoseconds &lifetime) |
extend lifetime of an entry More... | |
allows Strategy to access portion of Measurements table under its namespace
Definition at line 40 of file measurements-accessor.hpp.
nfd::MeasurementsAccessor::MeasurementsAccessor | ( | Measurements & | measurements, |
StrategyChoice & | strategyChoice, | ||
fw::Strategy * | strategy | ||
) |
Definition at line 32 of file measurements-accessor.cpp.
nfd::MeasurementsAccessor::~MeasurementsAccessor | ( | ) |
Definition at line 41 of file measurements-accessor.cpp.
|
inline |
extend lifetime of an entry
The entry will be kept until at least now()+lifetime.
Definition at line 114 of file measurements-accessor.hpp.
References nfd::Measurements::extendLifetime().
Referenced by nfd::fw::NccStrategy::beforeSatisfyInterest(), and nfd::fw::NccStrategy::timeoutOnBestFace().
|
inline |
find or insert a Measurements entry for name
Definition at line 90 of file measurements-accessor.hpp.
References nfd::Measurements::get().
Referenced by nfd::fw::NccStrategy::beforeSatisfyInterest(), nfd::fw::NccStrategy::getMeasurementsEntryInfo(), and nfd::fw::NccStrategy::timeoutOnBestFace().
|
inline |
find or insert a Measurements entry for fibEntry->getPrefix()
Definition at line 96 of file measurements-accessor.hpp.
References nfd::Measurements::get().
|
inline |
find or insert a Measurements entry for pitEntry->getName()
Definition at line 102 of file measurements-accessor.hpp.
References nfd::Measurements::get().
|
inline |
find or insert a Measurements entry for child's parent
nullptr | if child is the root entry |
Definition at line 108 of file measurements-accessor.hpp.
References nfd::Measurements::getParent().
Referenced by nfd::fw::NccStrategy::beforeSatisfyInterest(), nfd::fw::NccStrategy::getMeasurementsEntryInfo(), and nfd::fw::NccStrategy::timeoutOnBestFace().