NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
network-region-table.cpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#include "
network-region-table.hpp
"
27
#include <boost/range/adaptor/map.hpp>
28
29
namespace
nfd
{
30
31
bool
32
NetworkRegionTable::isInProducerRegion
(
const
Link
& link)
const
33
{
34
for
(
const
Name
& regionName : *
this
) {
35
for
(
const
Name
& delegationName : boost::adaptors::values(link.
getDelegations
())) {
36
if
(delegationName.isPrefixOf(regionName)) {
37
return
true
;
38
}
39
}
40
}
41
return
false
;
42
}
43
44
}
// namespace nfd
ndn::Link
represents a Link instance
Definition:
link.hpp:34
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
nfd::NetworkRegionTable::isInProducerRegion
bool isInProducerRegion(const Link &link) const
determines whether an Interest has reached a producer region
Definition:
network-region-table.cpp:32
ndn::Name
Name abstraction to represent an absolute name.
Definition:
name.hpp:46
ndn::Link::getDelegations
const DelegationSet & getDelegations() const
Get the pairs of <Name, Preference>
Definition:
link.cpp:77
network-region-table.hpp
ndnSIM
NFD
daemon
table
network-region-table.cpp
Generated on Sat Nov 12 2016 16:02:54 for ndnSIM by
1.8.12