casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
casa::TaqlRegex Class Reference

Class to handle a Regex or StringDistance. More...

#include <ExprNodeRep.h>

List of all members.

Public Member Functions

 TaqlRegex (const Regex &regex)
 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 Regexregex () const
 Return the regular expression.

Private Attributes

Regex itsRegex
StringDistance itsDist

Detailed Description

Class to handle a Regex or StringDistance.

Intended use:

Internal

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25

Prerequisite

Synopsis

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 73 of file ExprNodeRep.h.


Constructor & Destructor Documentation

casa::TaqlRegex::TaqlRegex ( const Regex regex) [inline, explicit]

Construct from a regex.

Definition at line 77 of file ExprNodeRep.h.

casa::TaqlRegex::TaqlRegex ( const StringDistance dist) [inline, explicit]

Construct from a StringDistance.

Definition at line 82 of file ExprNodeRep.h.


Member Function Documentation

Bool casa::TaqlRegex::match ( const String str) const [inline]

Does the regex or maximum string distance match?

Definition at line 87 of file ExprNodeRep.h.

References casa::String::empty(), itsDist, itsRegex, casa::StringDistance::match(), casa::String::matches(), and casa::Regex::regexp().

const Regex& casa::TaqlRegex::regex ( ) const [inline]

Return the regular expression.

Definition at line 93 of file ExprNodeRep.h.

References itsRegex.


Member Data Documentation

Definition at line 98 of file ExprNodeRep.h.

Referenced by match().

Definition at line 97 of file ExprNodeRep.h.

Referenced by match(), and regex().


The documentation for this class was generated from the following file: