48 InterestFilter::operator
const Name&()
const
50 if (hasRegexFilter()) {
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()));
Declares the set of Interests a producer can serve.
const Name & getPrefix() const
bool hasRegexFilter() const
InterestFilter(const Name &prefix)
Construct an InterestFilter to match Interests by prefix.
bool doesMatch(const Name &name) const
Check if specified Interest name matches the filter.
const RegexPatternListMatcher & getRegexFilter() const
Represents an absolute name.
size_t size() const noexcept
Returns the number of components.
bool isPrefixOf(const Name &other) const noexcept
Check if this name is a prefix of another name.
std::ostream & operator<<(std::ostream &os, const Data &data)