NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::NetworkRegionTable Class Reference

stores a collection of producer region names More...

#include <network-region-table.hpp>

Inheritance diagram for nfd::NetworkRegionTable:
Collaboration diagram for nfd::NetworkRegionTable:

Public Member Functions

bool isInProducerRegion (const DelegationList &forwardingHint) const
 determines whether an Interest has reached a producer region More...
 

Detailed Description

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.

Member Function Documentation

◆ isInProducerRegion()

bool nfd::NetworkRegionTable::isInProducerRegion ( const DelegationList forwardingHint) const

determines whether an Interest has reached a producer region

Parameters
forwardingHintforwarding hint of an Interest
Return values
truethe Interest has reached a producer region
falsethe Interest has not reached a producer region

If any delegation name in the forwarding hint 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 forwarding hint.

Definition at line 31 of file network-region-table.cpp.

Referenced by nfd::fw::Strategy::lookupFib().


The documentation for this class was generated from the following files: