#include <ndn-cxx/util/regex/regex-matcher.hpp>
 Inheritance diagram for ndn::RegexMatcher:
 Inheritance diagram for ndn::RegexMatcher: Collaboration diagram for ndn::RegexMatcher:
 Collaboration diagram for ndn::RegexMatcher:| Classes | |
| class | Error | 
| Public Types | |
| enum | RegexExprType { EXPR_TOP, EXPR_PATTERN_LIST, EXPR_REPEAT_PATTERN, EXPR_BACKREF, EXPR_COMPONENT_SET, EXPR_COMPONENT, EXPR_PSEUDO } | 
| Public Member Functions | |
| RegexMatcher (const std::string &expr, const RegexExprType &type, shared_ptr< RegexBackrefManager > backrefManager=nullptr) | |
| virtual | ~RegexMatcher () | 
| const std::string & | getExpr () const | 
| const std::vector< name::Component > & | getMatchResult () const | 
| get the matched name components  More... | |
| virtual bool | match (const Name &name, size_t offset, size_t len) | 
| Protected Member Functions | |
| virtual void | compile ()=0 | 
| Compile the regular expression to generate the more matchers when necessary.  More... | |
| Protected Attributes | |
| shared_ptr< RegexBackrefManager > | m_backrefManager | 
| const std::string | m_expr | 
| std::vector< shared_ptr< RegexMatcher > > | m_matchers | 
| std::vector< name::Component > | m_matchResult | 
| const RegexExprType | m_type | 
Definition at line 32 of file regex-matcher.hpp.
| Enumerator | |
|---|---|
| EXPR_TOP | |
| EXPR_PATTERN_LIST | |
| EXPR_REPEAT_PATTERN | |
| EXPR_BACKREF | |
| EXPR_COMPONENT_SET | |
| EXPR_COMPONENT | |
| EXPR_PSEUDO | |
Definition at line 41 of file regex-matcher.hpp.
| ndn::RegexMatcher::RegexMatcher | ( | const std::string & | expr, | 
| const RegexExprType & | type, | ||
| shared_ptr< RegexBackrefManager > | backrefManager = nullptr | ||
| ) | 
Definition at line 28 of file regex-matcher.cpp.
| 
 | virtualdefault | 
| 
 | protectedpure virtual | 
Compile the regular expression to generate the more matchers when necessary.
Implemented in ndn::RegexTopMatcher, ndn::RegexComponentMatcher, ndn::RegexComponentSetMatcher, ndn::RegexBackrefMatcher, ndn::RegexPseudoMatcher, ndn::RegexRepeatMatcher, and ndn::RegexPatternListMatcher.
| 
 | inline | 
Definition at line 71 of file regex-matcher.hpp.
| 
 | inline | 
get the matched name components
Definition at line 65 of file regex-matcher.hpp.
| 
 | virtual | 
Reimplemented in ndn::RegexComponentMatcher, ndn::RegexComponentSetMatcher, ndn::RegexTopMatcher, and ndn::RegexRepeatMatcher.
Definition at line 42 of file regex-matcher.cpp.
| 
 | protected | 
Definition at line 90 of file regex-matcher.hpp.
| 
 | protected | 
Definition at line 88 of file regex-matcher.hpp.
| 
 | protected | 
Definition at line 91 of file regex-matcher.hpp.
| 
 | protected | 
Definition at line 92 of file regex-matcher.hpp.
| 
 | protected | 
Definition at line 89 of file regex-matcher.hpp.