casa
$Rev:20696$
|
Raw TaQL parse tree node defining a binary operator. More...
#include <TaQLNodeDer.h>
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 TaQLBinaryNodeRep * | restore (AipsIO &aio) |
static TaQLBinaryNodeRep * | handleRegex (const TaQLNode &left, const TaQLRegexNode ®ex) |
Handle a comparison wih a regex. | |
Public Attributes | |
Type | itsType |
TaQLNode | itsLeft |
TaQLNode | itsRight |
Raw TaQL parse tree node defining a binary operator.
Internal
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.
Do not change the values of this enum, as objects might be persistent.
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.
casa::TaQLBinaryNodeRep::TaQLBinaryNodeRep | ( | Type | type, |
const TaQLNode & | left, | ||
const TaQLNode & | right | ||
) | [inline] |
Definition at line 241 of file TaQLNodeDer.h.
virtual casa::TaQLBinaryNodeRep::~TaQLBinaryNodeRep | ( | ) | [virtual] |
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.
static TaQLBinaryNodeRep* casa::TaQLBinaryNodeRep::restore | ( | AipsIO & | aio | ) | [static] |
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.
virtual TaQLNodeResult casa::TaQLBinaryNodeRep::visit | ( | TaQLNodeVisitor & | ) | const [virtual] |
Visit a node for tree traversal.
Implements casa::TaQLNodeRep.
Definition at line 255 of file TaQLNodeDer.h.
Definition at line 256 of file TaQLNodeDer.h.
Definition at line 254 of file TaQLNodeDer.h.