48 InterestFilter::operator
const Name&()
const
50 if (hasRegexFilter()) {
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-2016 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 the number of components.
Name abstraction to represent an absolute name.
InterestFilter(const Name &prefix)
Construct an InterestFilter to match Interests by prefix.
bool isPrefixOf(const Name &name) const
Check if the N components of this name are the same as the first N components of the given name...
bool hasRegexFilter() const