associates an InterestFilter with Interest callback More...
#include <interest-filter-record.hpp>
Public Member Functions | |
InterestFilterRecord (const InterestFilter &filter, const InterestCallback &interestCallback) | |
Construct an Interest filter record. More... | |
const InterestFilter & | getFilter () 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... | |
Public Member Functions inherited from ndn::RecordBase< InterestFilterRecord > | |
RecordId | getId () const |
Additional Inherited Members | |
Protected Member Functions inherited from ndn::RecordBase< InterestFilterRecord > | |
~RecordBase ()=default | |
void | deleteSelf () |
Delete this record from the container. More... | |
associates an InterestFilter with Interest callback
Definition at line 39 of file interest-filter-record.hpp.
|
inline |
Construct an Interest filter record.
filter | an InterestFilter that represents what Interest should invoke the callback |
interestCallback | invoked when matching Interest is received |
Definition at line 48 of file interest-filter-record.hpp.
|
inline |
Definition at line 56 of file interest-filter-record.hpp.
Referenced by ndn::Face::Impl::asyncUnsetInterestFilter(), and ndn::Face::Impl::dispatchInterest().
|
inline |
Check if Interest name matches the filter.
Definition at line 66 of file interest-filter-record.hpp.
References ndn::InterestFilter::allowsLoopback(), ndn::InterestFilter::doesMatch(), ndn::FORWARDER, ndn::PendingInterest::getInterest(), and ndn::PendingInterest::getOrigin().
Referenced by ndn::Face::Impl::dispatchInterest().
|
inline |
invokes the InterestCallback
Definition at line 77 of file interest-filter-record.hpp.
Referenced by ndn::Face::Impl::dispatchInterest().