NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: 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
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
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
bool isInProducerRegion(const Link &link) const
determines whether an Interest has reached a producer region
Name abstraction to represent an absolute name.
Definition: name.hpp:46