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
bool isInProducerRegion(const Link &link) const
determines whether an Interest has reached a producer region
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Definition: algorithm.hpp:32