casa
5.7.0-16
|
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. More... | |
virtual void | show (std::ostream &os) const |
Print the object in an ostream. More... | |
virtual void | save (AipsIO &aio) const |
Save the object. More... | |
Public Member Functions inherited from casacore::TaQLNodeRep | |
TaQLNodeRep (int nodeType) | |
Constructor for derived classes specifying the type. More... | |
virtual | ~TaQLNodeRep () |
char | nodeType () const |
Get the node type of the derived class. More... | |
const TaQLStyle & | style () const |
Get the TaQL style. More... | |
String | addEscape (const String &str) const |
Add escape characters to a table name where needed. More... | |
Static Public Member Functions | |
static TaQLBinaryNodeRep * | restore (AipsIO &aio) |
static TaQLBinaryNodeRep * | handleRegex (const TaQLNode &left, const TaQLRegexNode ®ex) |
Handle a comparison wih a regex. More... | |
Static Public Member Functions inherited from casacore::TaQLNodeRep | |
static String | checkDataType (const String &) |
Check the data type string and return its standard form. More... | |
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 194 of file TaQLNodeDer.h.
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 198 of file TaQLNodeDer.h.
casacore::TaQLBinaryNodeRep::TaQLBinaryNodeRep | ( | Type | type, |
const TaQLNode & | left, | ||
const TaQLNode & | right | ||
) |
|
virtual |
|
static |
Handle a comparison wih a regex.
The operator (~ or !~) is extracted from the regex.
|
static |
|
virtual |
Save the object.
Implements casacore::TaQLNodeRep.
|
virtual |
Print the object in an ostream.
Implements casacore::TaQLNodeRep.
|
virtual |
Visit a node for tree traversal.
Implements casacore::TaQLNodeRep.
TaQLNode casacore::TaQLBinaryNodeRep::itsLeft |
Definition at line 232 of file TaQLNodeDer.h.
TaQLNode casacore::TaQLBinaryNodeRep::itsRight |
Definition at line 233 of file TaQLNodeDer.h.
Type casacore::TaQLBinaryNodeRep::itsType |
Definition at line 231 of file TaQLNodeDer.h.