ndn::InterestFilterRecord Class Reference

associates an InterestFilter with Interest callback More...

#include <interest-filter-record.hpp>

Inheritance diagram for ndn::InterestFilterRecord:
[legend]
Collaboration diagram for ndn::InterestFilterRecord:
[legend]

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

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.

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

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

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.