NFD: Named Data Networking Forwarding Daemon 0.7.1 documentation
measurements-accessor.cpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#include "
measurements-accessor.hpp
"
27
28
namespace
nfd
{
29
namespace
measurements {
30
31
using
fw::Strategy;
32
33
MeasurementsAccessor::MeasurementsAccessor
(
Measurements
& measurements,
34
const
StrategyChoice
& strategyChoice,
35
const
Strategy
& strategy)
36
: m_measurements(measurements)
37
, m_strategyChoice(strategyChoice)
38
, m_strategy(&strategy)
39
{
40
}
41
42
MeasurementsAccessor::~MeasurementsAccessor
()
43
{
44
}
45
46
Entry
*
47
MeasurementsAccessor::filter(
Entry
* entry)
const
48
{
49
if
(entry ==
nullptr
) {
50
return
entry;
51
}
52
53
Strategy
& effectiveStrategy = m_strategyChoice.
findEffectiveStrategy
(*entry);
54
if
(&effectiveStrategy == m_strategy) {
55
return
entry;
56
}
57
return
nullptr
;
58
}
59
60
}
// namespace measurements
61
}
// namespace nfd
nfd::measurements::MeasurementsAccessor::~MeasurementsAccessor
~MeasurementsAccessor()
Definition:
measurements-accessor.cpp:42
nfd::measurements::Entry
Represents a Measurements entry.
Definition:
measurements-entry.hpp:41
nfd::strategy_choice::StrategyChoice
Represents the Strategy Choice table.
Definition:
strategy-choice.hpp:51
nfd::strategy_choice::StrategyChoice::findEffectiveStrategy
fw::Strategy & findEffectiveStrategy(const Name &prefix) const
Get effective strategy for prefix.
Definition:
strategy-choice.cpp:191
nfd::measurements::Measurements
The Measurements table.
Definition:
measurements.hpp:79
measurements-accessor.hpp
nfd
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Definition:
algorithm.hpp:32
nfd::measurements::MeasurementsAccessor::MeasurementsAccessor
MeasurementsAccessor(Measurements &measurements, const StrategyChoice &strategyChoice, const fw::Strategy &strategy)
Definition:
measurements-accessor.cpp:33
nfd::fw::Strategy
Represents a forwarding strategy.
Definition:
strategy.hpp:37
daemon
table
measurements-accessor.cpp
Generated on Thu Oct 8 2020 17:06:00 for NFD: Named Data Networking Forwarding Daemon by
1.8.13