stores a collection of producer region names More...
#include <network-region-table.hpp>
Public Member Functions | |
bool | isInProducerRegion (const Link &link) const |
determines whether an Interest has reached a producer region More... | |
stores a collection of producer region names
This table is used in forwarding to process Interests with Link objects.
NetworkRegionTable exposes a set-like API, including methods insert
, clear
, find
, size
, begin
, and end
.
Definition at line 40 of file network-region-table.hpp.
bool nfd::NetworkRegionTable::isInProducerRegion | ( | const Link & | link | ) | const |
determines whether an Interest has reached a producer region
link | the Link object on an Interest |
true | the Interest has reached a producer region |
false | the Interest has not reached a producer region |
If any delegation names in the Link object is a prefix of any region name, the Interest has reached the producer region and should be forwarded according to its Name; otherwise, the Interest should be forwarded according to the delegations.
Definition at line 32 of file network-region-table.cpp.
References ndn::Link::getDelegations().
Referenced by nfd::Forwarder::startProcessNack().