#include <regex-pseudo-matcher.hpp>
Public Types | |
enum | RegexExprType { EXPR_TOP, EXPR_PATTERN_LIST, EXPR_REPEAT_PATTERN, EXPR_BACKREF, EXPR_COMPONENT_SET, EXPR_COMPONENT, EXPR_PSEUDO } |
Public Member Functions | |
RegexPseudoMatcher () | |
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) |
void | resetMatchResult () |
void | setMatchResult (const std::string &str) |
Protected Member Functions | |
void | compile () override |
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 31 of file regex-pseudo-matcher.hpp.
|
inherited |
Enumerator | |
---|---|
EXPR_TOP | |
EXPR_PATTERN_LIST | |
EXPR_REPEAT_PATTERN | |
EXPR_BACKREF | |
EXPR_COMPONENT_SET | |
EXPR_COMPONENT | |
EXPR_PSEUDO |
Definition at line 45 of file regex-matcher.hpp.
ndn::RegexPseudoMatcher::RegexPseudoMatcher | ( | ) |
Definition at line 28 of file regex-pseudo-matcher.cpp.
|
overrideprotectedvirtual |
Compile the regular expression to generate the more matchers when necessary.
Implements ndn::RegexMatcher.
Definition at line 46 of file regex-pseudo-matcher.cpp.
|
inlineinherited |
Definition at line 75 of file regex-matcher.hpp.
|
inlineinherited |
get the matched name components
Definition at line 69 of file regex-matcher.hpp.
|
virtualinherited |
Reimplemented in ndn::RegexComponentMatcher, ndn::RegexComponentSetMatcher, ndn::RegexTopMatcher, and ndn::RegexRepeatMatcher.
Definition at line 42 of file regex-matcher.cpp.
void ndn::RegexPseudoMatcher::resetMatchResult | ( | ) |
Definition at line 40 of file regex-pseudo-matcher.cpp.
void ndn::RegexPseudoMatcher::setMatchResult | ( | const std::string & | str | ) |
Definition at line 34 of file regex-pseudo-matcher.cpp.
|
protectedinherited |
Definition at line 94 of file regex-matcher.hpp.
|
protectedinherited |
Definition at line 92 of file regex-matcher.hpp.
|
protectedinherited |
Definition at line 95 of file regex-matcher.hpp.
|
protectedinherited |
Definition at line 96 of file regex-matcher.hpp.
|
protectedinherited |
Definition at line 93 of file regex-matcher.hpp.