#include <DQMStore.h>
Public Member Functions | |
fastmatch (std::string const &_fastString) | |
bool | match (std::string const &s) const |
~fastmatch () | |
Private Types | |
enum | MatchingHeuristicEnum { UseFull, OneStarStart, OneStarEnd, TwoStar } |
Private Member Functions | |
bool | compare_strings (std::string const &pattern, std::string const &input) const |
bool | compare_strings_reverse (std::string const &pattern, std::string const &input) const |
Private Attributes | |
std::string | fastString_ |
MatchingHeuristicEnum | matching_ |
lat::Regexp * | regexp_ |
Implements RegEx patterns which occur often in a high-performant mattern. For all other expressions, the full RegEx engine is used. Note: this class can only be used for lat::Regexp::Wildcard-like patterns.
Definition at line 51 of file DQMStore.h.
|
private |
Enumerator | |
---|---|
UseFull | |
OneStarStart | |
OneStarEnd | |
TwoStar |
Definition at line 54 of file DQMStore.h.
fastmatch::fastmatch | ( | std::string const & | _fastString | ) |
Definition at line 131 of file DQMStore.cc.
References alignCSCRings::e, fastString_, matching_, NULL, OneStarEnd, OneStarStart, raiseDQMError(), regexp_, and TwoStar.
fastmatch::~fastmatch | ( | ) |
Definition at line 201 of file DQMStore.cc.
|
private |
|
private |
bool fastmatch::match | ( | std::string const & | s | ) | const |
Definition at line 249 of file DQMStore.cc.
References compare_strings(), compare_strings_reverse(), fastString_, matching_, OneStarEnd, OneStarStart, regexp_, and TwoStar.
|
private |
Definition at line 71 of file DQMStore.h.
Referenced by fastmatch(), and match().
|
private |
Definition at line 72 of file DQMStore.h.
Referenced by fastmatch(), and match().
|
private |
Definition at line 70 of file DQMStore.h.
Referenced by fastmatch(), match(), and ~fastmatch().