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 193 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 197 of file TaQLNodeDer.h.
casacore::TaQLBinaryNodeRep::TaQLBinaryNodeRep | ( | Type | type, | |
const TaQLNode & | left, | |||
const TaQLNode & | right | |||
) |
virtual casacore::TaQLBinaryNodeRep::~TaQLBinaryNodeRep | ( | ) | [virtual] |
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.
Definition at line 231 of file TaQLNodeDer.h.
Definition at line 232 of file TaQLNodeDer.h.
Definition at line 230 of file TaQLNodeDer.h.