#include <DQMStore.h>
Public Member Functions | |
fastmatch (std::string fastString) | |
bool | match (std::string const &s) const |
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_ |
std::unique_ptr< lat::Regexp > | regexp_ {nullptr} |
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 54 of file DQMStore.h.
|
private |
Enumerator | |
---|---|
UseFull | |
OneStarStart | |
OneStarEnd | |
TwoStar |
Definition at line 55 of file DQMStore.h.
fastmatch::fastmatch | ( | std::string | fastString | ) |
Definition at line 141 of file DQMStore.cc.
References MillePedeFileConverter_cfg::e, fastString_, matching_, eostools::move(), OneStarEnd, OneStarStart, raiseDQMError(), regexp_, TwoStar, and UseFull.
|
private |
|
private |
bool fastmatch::match | ( | std::string const & | s | ) | const |
Definition at line 240 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(), and match().