NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: 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 Name &name) 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 33 of file interest-filter-record.hpp.

Constructor & Destructor Documentation

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 42 of file interest-filter-record.hpp.

Member Function Documentation

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

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

bool ndn::InterestFilterRecord::doesMatch ( const Name name) const
inline

Check if Interest name matches the filter.

Parameters
nameInterest Name

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

References ndn::InterestFilter::doesMatch().

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: