A class for binary comparison operators. More...
#include <BinaryComparisonOp.h>
Public Types | |
typedef void | ReturnType |
typedef Visitor | VisitorType |
Public Member Functions | |
virtual ReturnType | accept (VisitorType &guest) const=0 |
It call the visit method from the guest object. More... | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
BinaryComparisonOp (const char *opName=0) | |
It initializes a new BinaryComparisonOp. More... | |
BinaryComparisonOp (const char *opName, Expression *f, Expression *s) | |
It initializes a new BinaryComparisonOp. More... | |
virtual | ~BinaryComparisonOp () |
Virtual destructor. More... | |
Accessor methods | |
Methods used to get or set properties. | |
const char * | getName () const |
It returns the operator name. More... | |
void | setName (const char *opName) |
It sets the operator name. More... | |
Protected Attributes | |
Not Allowed Methods | |
No copy allowed. | |
const char * | m_name |
Operator name. More... | |
Accessor methods | |
Methods used to get or set properties. | |
Expression * | m_first |
first operand (mandatory). More... | |
Expression * | m_second |
second operand (mandatory). More... | |
bool | m_matchCase |
Optional (default: true). More... | |
void | setFirst (Expression *first) |
It sets the first operand. More... | |
Expression * | getFirst () const |
It returns the first operand. More... | |
void | setSecond (Expression *second) |
It sets the second operand. More... | |
Expression * | getSecond () const |
It returns the second operand. More... | |
void | enableMatchCase () |
It enables the match case flag. So comparisons will be case sensitive. More... | |
void | disableMatchCase () |
It disables the match case flag. So comparisons will not be case sensitive. More... | |
ComparisonOp * | clone () const |
It creates a new copy of this object. More... | |
A class for binary comparison operators.
The Common Catalog Query Language defines a standard set of comparison operators (=, <, >, >=, <=, <>). These comparison operators are encoded using the complex type BinaryComparisonOp. This type definition includes the matchCase attribute which is Boolean type and controls whether string comparisons are case sensitive or not. A true value means that string comparisons are case sensitive. This is the default value. A false value means that string comparisons are case insensitive.
The following operators are defined in the Filter Encoding specification:
Definition at line 69 of file BinaryComparisonOp.h.
|
inherited |
Definition at line 58 of file BaseVisitable.h.
|
inherited |
Definition at line 57 of file BaseVisitable.h.
te::fe::BinaryComparisonOp::BinaryComparisonOp | ( | const char * | opName = 0 | ) |
It initializes a new BinaryComparisonOp.
opName | The comparison operator name. |
te::fe::BinaryComparisonOp::BinaryComparisonOp | ( | const char * | opName, |
Expression * | f, | ||
Expression * | s | ||
) |
It initializes a new BinaryComparisonOp.
opName | The BinaryComparisonOp operator name. |
f | The first expression. The BinaryComparisonOp will take the ownership of the given expression. |
s | The second expression. The BinaryComparisonOp will take the ownership of the given expression. |
|
virtual |
Virtual destructor.
|
pure virtualinherited |
It call the visit method from the guest object.
guest | The guest or visitor. |
|
virtual |
It creates a new copy of this object.
Implements te::fe::AbstractOp.
void te::fe::BinaryComparisonOp::disableMatchCase | ( | ) |
It disables the match case flag. So comparisons will not be case sensitive.
void te::fe::BinaryComparisonOp::enableMatchCase | ( | ) |
It enables the match case flag. So comparisons will be case sensitive.
Expression * te::fe::BinaryComparisonOp::getFirst | ( | ) | const |
It returns the first operand.
|
inlineinherited |
Expression * te::fe::BinaryComparisonOp::getSecond | ( | ) | const |
It returns the second operand.
void te::fe::BinaryComparisonOp::setFirst | ( | Expression * | first | ) |
It sets the first operand.
first | The first operand. |
|
inlineinherited |
It sets the operator name.
opName | The operator name. |
Definition at line 89 of file AbstractOp.h.
void te::fe::BinaryComparisonOp::setSecond | ( | Expression * | second | ) |
It sets the second operand.
second | The second operand. |
|
protected |
first operand (mandatory).
Definition at line 159 of file BinaryComparisonOp.h.
|
protected |
Optional (default: true).
Definition at line 161 of file BinaryComparisonOp.h.
|
protectedinherited |
Operator name.
Definition at line 123 of file AbstractOp.h.
|
protected |
second operand (mandatory).
Definition at line 160 of file BinaryComparisonOp.h.