48 InterestFilter::operator
const Name&()
const 51 NDN_THROW(
Error(
"Please update InterestCallback to accept `const InterestFilter&'" 52 " (non-trivial InterestFilter is being used)"));
62 m_regexFilter->match(name, m_prefix.
size(), name.
size() - m_prefix.
size()));
const Name & getPrefix() const
std::ostream & operator<<(std::ostream &os, const Data &data)
bool isPrefixOf(const Name &other) const
Check if this name is a prefix of another name.
declares the set of Interests a producer can serve, which starts with a name prefix, plus an optional regular expression
bool doesMatch(const Name &name) const
Check if specified Interest name matches the filter.
const RegexPatternListMatcher & getRegexFilter() const
Represents an absolute name.
bool hasRegexFilter() const
size_t size() const
Returns the number of components.
InterestFilter(const Name &prefix)
Construct an InterestFilter to match Interests by prefix.