23 #ifndef NDN_NDN_REGEX_COMPONENT_SET_MATCHER_HPP
24 #define NDN_NDN_REGEX_COMPONENT_SET_MATCHER_HPP
26 #include "ndn-regex-component-matcher.hpp"
27 #include "ndn-regex-matcher-base.hpp"
39 (
const std::string& expr,
40 ptr_lib::shared_ptr<NdnRegexBackrefManager> backrefManager)
41 : NdnRegexMatcherBase(expr, NDN_REGEX_EXPR_COMPONENT_SET, backrefManager),
51 match(
const Name& name,
size_t offset,
size_t len);
62 extractComponent(
size_t index);
65 compileSingleComponent();
68 compileMultipleComponents(
size_t start,
size_t lastIndex);
70 std::vector<ptr_lib::shared_ptr<NdnRegexComponentMatcher> > components_;
Definition: ndn-regex-component-set-matcher.hpp:31
A Name holds an array of Name::Component and represents an NDN name.
Definition: name.hpp:40
NdnRegexComponentSetMatcher(const std::string &expr, ptr_lib::shared_ptr< NdnRegexBackrefManager > backrefManager)
Create an NdnRegexComponentSetMatcher matcher from expr.
Definition: ndn-regex-component-set-matcher.hpp:39
virtual void compile()
Compile the regular expression to generate more matchers when necessary.