casacore::TaQLBinaryNodeRep Class Reference

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

#include <TaQLNodeDer.h>

Inheritance diagram for casacore::TaQLBinaryNodeRep:
casacore::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 193 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 197 of file TaQLNodeDer.h.


Constructor & Destructor Documentation

casacore::TaQLBinaryNodeRep::TaQLBinaryNodeRep ( Type  type,
const TaQLNode left,
const TaQLNode right 
)
virtual casacore::TaQLBinaryNodeRep::~TaQLBinaryNodeRep (  )  [virtual]

Member Function Documentation

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

Handle a comparison wih a regex.

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

static TaQLBinaryNodeRep* casacore::TaQLBinaryNodeRep::restore ( AipsIO aio  )  [static]
virtual void casacore::TaQLBinaryNodeRep::save ( AipsIO aio  )  const [virtual]

Save the object.

Implements casacore::TaQLNodeRep.

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

Print the object in an ostream.

Implements casacore::TaQLNodeRep.

virtual TaQLNodeResult casacore::TaQLBinaryNodeRep::visit ( TaQLNodeVisitor  )  const [virtual]

Visit a node for tree traversal.

Implements casacore::TaQLNodeRep.


Member Data Documentation

Definition at line 231 of file TaQLNodeDer.h.

Definition at line 232 of file TaQLNodeDer.h.

Definition at line 230 of file TaQLNodeDer.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1