48 InterestFilter::operator
const Name&()
const 51 BOOST_THROW_EXCEPTION(
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()));
Copyright (c) 2013-2017 Regents of the University of California.
bool doesMatch(const Name &name) const
Check if specified Interest name matches the filter.
const RegexPatternListMatcher & getRegexFilter() const
std::ostream & operator<<(std::ostream &os, const Data &data)
declares the set of Interests a producer can serve, which starts with a name prefix, plus an optional regular expression
const Name & getPrefix() const
size_t size() const
Get number of components.
Represents an absolute name.
bool isPrefixOf(const Name &other) const
Check if this name is a prefix of another name.
InterestFilter(const Name &prefix)
Construct an InterestFilter to match Interests by prefix.
bool hasRegexFilter() const