casacore
Loading...
Searching...
No Matches
casacore::TaQLRegexNode Class Reference

Envelope class for a node containing a constant regex value. More...

#include <TaQLNode.h>

Public Member Functions

 TaQLRegexNode (TaQLRegexNodeRep *rep)
const StringgetString () const
Bool caseInsensitive () const
Bool negate () const
Public Member Functions inherited from casacore::TaQLNode
 TaQLNode ()
 Default constructor.
 TaQLNode (TaQLNodeRep *rep)
 Construct for given letter.
 TaQLNode (const TaQLNode &that)
 Copy constructor (reference semantics).
TaQLNodeoperator= (const TaQLNode &that)
 Assignment (reference semantics).
const TaQLStylestyle () const
 Get the TaQL style.
virtual ~TaQLNode () noexcept=default
Bool isValid () const
 Does the envelope contain a letter?
char nodeType () const
 Return the type of letter.
const TaQLNodeRepgetRep () const
 Get read access to the letter.
TaQLNodeResult visit (TaQLNodeVisitor &visitor) const
 Let the visitor visit the node.
void show (std::ostream &os) const
 Print the node (recursively) in the given stream.
void save (AipsIO &aio) const
 Save and restore the entire parse tree.
void saveNode (AipsIO &aio) const
 Helper functions for save/restore of tree.

Private Attributes

TaQLRegexNodeRepitsNRep

Additional Inherited Members

Static Public Member Functions inherited from casacore::TaQLNode
static TaQLNode parse (const String &command)
 Parse a TaQL command and return the result.
static TaQLNode restore (AipsIO &aio)
static TaQLNode restoreNode (AipsIO &aio)
static TaQLMultiNode restoreMultiNode (AipsIO &aio)
Static Public Attributes inherited from casacore::TaQLNode
static TaQLNode theirNode
 The object getting the final tree.
static std::vector< TaQLNode * > theirNodesCreated
 A list of objects created by the parser and deleted at the end.
static TaQLStyle theirStyle
 Keep the TaQL style to use.
static std::mutex theirMutex
 Use a mutex to guard the statics.
Protected Attributes inherited from casacore::TaQLNode
std::shared_ptr< TaQLNodeRepitsRep

Detailed Description

Envelope class for a node containing a constant regex value.

Intended use:

Internal

Review Status

Test programs:
tTaQLNode

Synopsis

This is a specialization of the envelope class TaQLNode for a node containing a constant regex or pattern value.

Definition at line 201 of file TaQLNode.h.

Constructor & Destructor Documentation

◆ TaQLRegexNode()

casacore::TaQLRegexNode::TaQLRegexNode ( TaQLRegexNodeRep * rep)
explicit

Member Function Documentation

◆ caseInsensitive()

Bool casacore::TaQLRegexNode::caseInsensitive ( ) const

◆ getString()

const String & casacore::TaQLRegexNode::getString ( ) const

◆ negate()

Bool casacore::TaQLRegexNode::negate ( ) const

Member Data Documentation

◆ itsNRep

TaQLRegexNodeRep* casacore::TaQLRegexNode::itsNRep
private

Definition at line 209 of file TaQLNode.h.


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