#include <regex-matcher.hpp>
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 | |
virtual | ~RegexMatcher () |
virtual bool | match (const Name &name, size_t offset, size_t len) |
const std::string & | getExpr () const |
const std::vector< name::Component > & | getMatchResult () const |
get the matched name components More... | |
Protected Member Functions | |
RegexMatcher (const std::string &expr, RegexExprType type, shared_ptr< RegexBackrefManager > backrefManager=nullptr) | |
Protected Attributes | |
const std::string | m_expr |
const RegexExprType | m_type |
shared_ptr< RegexBackrefManager > | m_backrefManager |
std::vector< shared_ptr< RegexMatcher > > | m_matchers |
std::vector< name::Component > | m_matchResult |
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.
|
virtualdefault |
|
protected |
Definition at line 28 of file regex-matcher.cpp.
Referenced by getMatchResult().
|
virtual |
Reimplemented in ndn::RegexComponentMatcher, ndn::RegexComponentSetMatcher, ndn::RegexTopMatcher, and ndn::RegexRepeatMatcher.
Definition at line 42 of file regex-matcher.cpp.
References ndn::Name::get(), m_matchers, and m_matchResult.
|
inline |
Definition at line 58 of file regex-matcher.hpp.
References m_expr.
Referenced by ndn::operator<<().
|
inline |
get the matched name components
Definition at line 68 of file regex-matcher.hpp.
References m_matchResult, and RegexMatcher().
|
protected |
Definition at line 82 of file regex-matcher.hpp.
Referenced by ndn::RegexBackrefMatcher::compile(), getExpr(), ndn::RegexComponentSetMatcher::match(), ndn::RegexComponentMatcher::match(), ndn::RegexComponentMatcher::RegexComponentMatcher(), ndn::RegexComponentSetMatcher::RegexComponentSetMatcher(), ndn::RegexPatternListMatcher::RegexPatternListMatcher(), ndn::RegexRepeatMatcher::RegexRepeatMatcher(), and ndn::RegexTopMatcher::RegexTopMatcher().
|
protected |
Definition at line 83 of file regex-matcher.hpp.
|
protected |
Definition at line 84 of file regex-matcher.hpp.
Referenced by ndn::RegexBackrefMatcher::compile(), ndn::RegexComponentMatcher::RegexComponentMatcher(), ndn::RegexComponentSetMatcher::RegexComponentSetMatcher(), ndn::RegexPatternListMatcher::RegexPatternListMatcher(), and ndn::RegexRepeatMatcher::RegexRepeatMatcher().
|
protected |
Definition at line 85 of file regex-matcher.hpp.
Referenced by ndn::RegexBackrefMatcher::compile(), ndn::RegexRepeatMatcher::match(), match(), ndn::RegexPatternListMatcher::RegexPatternListMatcher(), and ndn::RegexRepeatMatcher::RegexRepeatMatcher().
|
protected |
Definition at line 86 of file regex-matcher.hpp.
Referenced by ndn::RegexTopMatcher::expand(), getMatchResult(), ndn::RegexRepeatMatcher::match(), ndn::RegexTopMatcher::match(), ndn::RegexComponentSetMatcher::match(), ndn::RegexComponentMatcher::match(), match(), ndn::RegexPseudoMatcher::resetMatchResult(), and ndn::RegexPseudoMatcher::setMatchResult().