An InterestFilterTable is an internal class to hold a list of entries with an interest Filter and its OnInterestCallback.
More...
#include <interest-filter-table.hpp>
An InterestFilterTable is an internal class to hold a list of entries with an interest Filter and its OnInterestCallback.
void ndn::InterestFilterTable::getMatchedFilters |
( |
const Interest & |
interest, |
|
|
std::vector< ptr_lib::shared_ptr< Entry > > & |
matchedFilters |
|
) |
| |
Find all entries from the interest filter table where the interest conforms to the entry's filter, and add to the matchedFilters list.
- Parameters
-
interest | The interest which may match the filter in multiple entries. |
matchedFilters | Add each matching InterestFilterTable.Entry from the interest filter table. The caller should pass in a reference to an empty vector. |
void ndn::InterestFilterTable::setInterestFilter |
( |
uint64_t |
interestFilterId, |
|
|
const ptr_lib::shared_ptr< const InterestFilter > & |
filterCopy, |
|
|
const OnInterestCallback & |
onInterest, |
|
|
Face * |
face |
|
) |
| |
|
inline |
Add a new entry to the table.
- Parameters
-
interestFilterId | The ID from Node.getNextEntryId(). |
filter | The InterestFilter for this entry. |
onInterest | The callback to call. |
face | The face on which was called registerPrefix or setInterestFilter which is passed to the onInterest callback. |
void ndn::InterestFilterTable::unsetInterestFilter |
( |
uint64_t |
interestFilterId | ) |
|
Remove the interest filter entry which has the interestFilterId from the interest filter table.
This does not affect another interest filter with a different interestFilterId, even if it has the same prefix name. If there is no entry with the interestFilterId, do nothing.
- Parameters
-
interestFilterId | The ID returned from setInterestFilter. |
The documentation for this class was generated from the following files: