|
casacore
|
#include <ExprNodeRep.h>
Public Member Functions | |
| TaqlRegex (const Regex ®ex) | |
| Construct from a regex. | |
| TaqlRegex (const StringDistance &dist) | |
| Construct from a StringDistance. | |
| Bool | match (const String &str) const |
| Does the regex or maximum string distance match? | |
| const Regex & | regex () const |
| Return the regular expression. | |
Private Attributes | |
| Regex | itsRegex |
| StringDistance | itsDist |
Class to handle a Regex or StringDistance.
Internal
A StringDistance (Levensthein distance) in TaQL is given in the same way as a Regex. This class is needed to have a single object in the parse tree objects containing them (in class TableExprNodeConstRegex).
Definition at line 79 of file ExprNodeRep.h.
|
inlineexplicit |
Construct from a regex.
Definition at line 83 of file ExprNodeRep.h.
|
inlineexplicit |
Does the regex or maximum string distance match?
Definition at line 93 of file ExprNodeRep.h.
References itsDist, itsRegex, and casacore::String::matches().
|
inline |
Return the regular expression.
Definition at line 99 of file ExprNodeRep.h.
References itsRegex.
Referenced by TaqlRegex().
|
private |
Definition at line 104 of file ExprNodeRep.h.
Referenced by match(), and TaqlRegex().
|
private |
Definition at line 103 of file ExprNodeRep.h.
Referenced by match(), regex(), and TaqlRegex().