#include <regex-top-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 | |
RegexTopMatcher (const std::string &expr, const std::string &expand="") | |
virtual | ~RegexTopMatcher () |
virtual Name | expand (const std::string &expand="") |
const std::string & | getExpr () const |
const std::vector< name::Component > & | getMatchResult () const |
get the matched name components More... | |
bool | match (const Name &name) |
virtual bool | match (const Name &name, size_t offset, size_t len) |
Static Public Member Functions | |
static shared_ptr< RegexTopMatcher > | fromName (const Name &name, bool hasAnchor=false) |
Protected Member Functions | |
virtual void | compile () |
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 36 of file regex-top-matcher.hpp.
|
inherited |
Enumerator | |
---|---|
EXPR_TOP | |
EXPR_PATTERN_LIST | |
EXPR_REPEAT_PATTERN | |
EXPR_BACKREF | |
EXPR_COMPONENT_SET | |
EXPR_COMPONENT | |
EXPR_PSEUDO |
Definition at line 47 of file regex-matcher.hpp.
ndn::RegexTopMatcher::RegexTopMatcher | ( | const std::string & | expr, |
const std::string & | expand = "" |
||
) |
Definition at line 33 of file regex-top-matcher.cpp.
|
virtual |
Definition at line 43 of file regex-top-matcher.cpp.
|
protectedvirtual |
Compile the regular expression to generate the more matchers when necessary.
Implements ndn::RegexMatcher.
Definition at line 48 of file regex-top-matcher.cpp.
|
virtual |
Definition at line 105 of file regex-top-matcher.cpp.
|
static |
Definition at line 201 of file regex-top-matcher.cpp.
|
inlineinherited |
Definition at line 78 of file regex-matcher.hpp.
|
inlineinherited |
get the matched name components
Definition at line 72 of file regex-matcher.hpp.
bool ndn::RegexTopMatcher::match | ( | const Name & | name | ) |
Definition at line 75 of file regex-top-matcher.cpp.
|
virtual |
Reimplemented from ndn::RegexMatcher.
Definition at line 99 of file regex-top-matcher.cpp.
|
protectedinherited |
Definition at line 98 of file regex-matcher.hpp.
|
protectedinherited |
Definition at line 96 of file regex-matcher.hpp.
|
protectedinherited |
Definition at line 99 of file regex-matcher.hpp.
|
protectedinherited |
Definition at line 100 of file regex-matcher.hpp.
|
protectedinherited |
Definition at line 97 of file regex-matcher.hpp.