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

associates an InterestFilter with Interest callback More...

#include <interest-filter-record.hpp>

Inheritance diagram for ndn::InterestFilterRecord:
Collaboration diagram for ndn::InterestFilterRecord:

Public Member Functions

 InterestFilterRecord (const InterestFilter &filter, const InterestCallback &interestCallback)
 Construct an Interest filter record. More...
 
const InterestFiltergetFilter () const
 
bool doesMatch (const PendingInterest &entry) const
 Check if Interest name matches the filter. More...
 
void invokeInterestCallback (const Interest &interest) const
 invokes the InterestCallback More...
 

Detailed Description

associates an InterestFilter with Interest callback

Definition at line 32 of file interest-filter-record.hpp.

Constructor & Destructor Documentation

◆ InterestFilterRecord()

ndn::InterestFilterRecord::InterestFilterRecord ( const InterestFilter filter,
const InterestCallback interestCallback 
)
inline

Construct an Interest filter record.

Parameters
filteran InterestFilter that represents what Interest should invoke the callback
interestCallbackinvoked when matching Interest is received

Definition at line 41 of file interest-filter-record.hpp.

Member Function Documentation

◆ getFilter()

const InterestFilter& ndn::InterestFilterRecord::getFilter ( ) const
inline
Returns
the filter

Definition at line 52 of file interest-filter-record.hpp.

◆ doesMatch()

bool ndn::InterestFilterRecord::doesMatch ( const PendingInterest entry) const
inline

◆ invokeInterestCallback()

void ndn::InterestFilterRecord::invokeInterestCallback ( const Interest interest) const
inline

invokes the InterestCallback

Note
This method does nothing if the Interest callback is empty

Definition at line 73 of file interest-filter-record.hpp.


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