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

Raw TaQL parse tree node defining a binary operator. More...

#include <TaQLNodeDer.h>

Inheritance diagram for casa::TaQLBinaryNodeRep:
casa::TaQLNodeRep

List of all members.

Public Types

enum  Type {
  B_PLUS,
  B_MINUS,
  B_TIMES,
  B_DIVIDE,
  B_MODULO,
  B_POWER,
  B_EQ,
  B_NE,
  B_GT,
  B_GE,
  B_LT,
  B_LE,
  B_OR,
  B_AND,
  B_IN,
  B_INDEX,
  B_DIVIDETRUNC,
  B_EQREGEX,
  B_NEREGEX,
  B_BITAND,
  B_BITXOR,
  B_BITOR
}
 Do not change the values of this enum, as objects might be persistent. More...

Public Member Functions

 TaQLBinaryNodeRep (Type type, const TaQLNode &left, const TaQLNode &right)
virtual ~TaQLBinaryNodeRep ()
virtual TaQLNodeResult visit (TaQLNodeVisitor &) const
 Visit a node for tree traversal.
virtual void show (std::ostream &os) const
 Print the object in an ostream.
virtual void save (AipsIO &aio) const
 Save the object.

Static Public Member Functions

static TaQLBinaryNodeReprestore (AipsIO &aio)
static TaQLBinaryNodeRephandleRegex (const TaQLNode &left, const TaQLRegexNode &regex)
 Handle a comparison wih a regex.

Public Attributes

Type itsType
TaQLNode itsLeft
TaQLNode itsRight

Detailed Description

Raw TaQL parse tree node defining a binary operator.

Intended use:

Internal

Review Status

Test programs:
tTaQLNode

Prerequisite

Synopsis

This class is a TaQLNodeRep holding a binary operator and operands. All standard mathematical (including % and ^), relational, bit, and logical operators are supported. Furthermore operator IN and the INDEX operator (for indexing in an array) are supported.

Definition at line 215 of file TaQLNodeDer.h.


Member Enumeration Documentation

Do not change the values of this enum, as objects might be persistent.

Enumerator:
B_PLUS 
B_MINUS 
B_TIMES 
B_DIVIDE 
B_MODULO 
B_POWER 
B_EQ 
B_NE 
B_GT 
B_GE 
B_LT 
B_LE 
B_OR 
B_AND 
B_IN 
B_INDEX 
B_DIVIDETRUNC 
B_EQREGEX 
B_NEREGEX 
B_BITAND 
B_BITXOR 
B_BITOR 

Definition at line 219 of file TaQLNodeDer.h.


Constructor & Destructor Documentation

casa::TaQLBinaryNodeRep::TaQLBinaryNodeRep ( Type  type,
const TaQLNode left,
const TaQLNode right 
) [inline]

Definition at line 241 of file TaQLNodeDer.h.


Member Function Documentation

static TaQLBinaryNodeRep* casa::TaQLBinaryNodeRep::handleRegex ( const TaQLNode left,
const TaQLRegexNode regex 
) [static]

Handle a comparison wih a regex.

The operator (~ or !~) is extracted from the regex.

virtual void casa::TaQLBinaryNodeRep::save ( AipsIO aio) const [virtual]

Save the object.

Implements casa::TaQLNodeRep.

virtual void casa::TaQLBinaryNodeRep::show ( std::ostream &  os) const [virtual]

Print the object in an ostream.

Implements casa::TaQLNodeRep.

Visit a node for tree traversal.

Implements casa::TaQLNodeRep.


Member Data Documentation

Definition at line 255 of file TaQLNodeDer.h.

Definition at line 256 of file TaQLNodeDer.h.

Definition at line 254 of file TaQLNodeDer.h.


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