Associates an InterestFilter with an Interest callback. More...
#include <interest-filter-record.hpp>


Public Member Functions | |
| InterestFilterRecord (const InterestFilter &filter, const InterestCallback &callback) | |
| 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::detail::RecordBase< InterestFilterRecord > | |
| RecordId | getId () const |
Additional Inherited Members | |
Protected Member Functions inherited from ndn::detail::RecordBase< InterestFilterRecord > | |
| ~RecordBase ()=default | |
| void | deleteSelf () |
| Delete this record from the container. More... | |
Associates an InterestFilter with an Interest callback.
Definition at line 33 of file interest-filter-record.hpp.
|
inline |
Construct an Interest filter record.
| filter | an InterestFilter that represents what Interest should invoke the callback |
| callback | invoked when matching Interest is received |
Definition at line 42 of file interest-filter-record.hpp.
|
inline |
Definition at line 49 of file interest-filter-record.hpp.
Referenced by ndn::Face::Impl::shutdown().
|
inline |
Check if Interest name matches the filter.
Definition at line 59 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::shutdown().
|
inline |
invokes the InterestCallback
Definition at line 70 of file interest-filter-record.hpp.
Referenced by ndn::Face::Impl::shutdown().