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

#include <interest-filter-record.hpp>

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

Public Types

typedef function< void(const InterestFilter &, const Interest &)> InterestCallback
 

Public Member Functions

 InterestFilterRecord (const InterestFilter &filter, const InterestCallback &afterInterest)
 
bool doesMatch (const Name &name) const
 Check if Interest name matches the filter. More...
 
void invokeInterestCallback (const Interest &interest) const
 invokes the InterestCallback More...
 
const InterestFiltergetFilter () const
 

Detailed Description

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

Member Typedef Documentation

§ InterestCallback

typedef function<void (const InterestFilter&, const Interest&)> ndn::InterestFilterRecord::InterestCallback

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

Constructor & Destructor Documentation

§ InterestFilterRecord()

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

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

Member Function Documentation

§ doesMatch()

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

Check if Interest name matches the filter.

Parameters
nameInterest Name

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

References ndn::InterestFilter::doesMatch().

§ invokeInterestCallback()

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

invokes the InterestCallback

Note
If the DataCallback is an empty function, this method does nothing.

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

§ getFilter()

const InterestFilter& ndn::InterestFilterRecord::getFilter ( ) const
inline

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


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