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. | |
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... | |
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 | |
Expression * | m_first |
first operand (mandatory). More... | |
bool | m_matchCase |
Optional (default: true). More... | |
const char * | m_name |
Operator name. More... | |
Expression * | m_second |
second operand (mandatory). 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. |
Definition at line 34 of file BinaryComparisonOp.cpp.
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. |
Definition at line 42 of file BinaryComparisonOp.cpp.
|
virtual |
Virtual destructor.
Definition at line 50 of file BinaryComparisonOp.cpp.
|
pure virtualinherited |
It call the visit method from the guest object.
guest | The guest or visitor. |
void te::fe::BinaryComparisonOp::disableMatchCase | ( | ) |
It disables the match case flag. So comparisons will not be case sensitive.
Definition at line 83 of file BinaryComparisonOp.cpp.
void te::fe::BinaryComparisonOp::enableMatchCase | ( | ) |
It enables the match case flag. So comparisons will be case sensitive.
Definition at line 78 of file BinaryComparisonOp.cpp.
te::fe::Expression * te::fe::BinaryComparisonOp::getFirst | ( | ) | const |
It returns the first operand.
Definition at line 62 of file BinaryComparisonOp.cpp.
Referenced by BinaryComparsionOpWriter(), and te::map::QueryEncoder::visit().
|
inlineinherited |
It returns the operator name.
Definition at line 82 of file AbstractOp.h.
Referenced by GetQualifiedName(), te::map::QueryEncoder::visit(), and te::fe::serialize::AbstractOp::write().
te::fe::Expression * te::fe::BinaryComparisonOp::getSecond | ( | ) | const |
It returns the second operand.
Definition at line 73 of file BinaryComparisonOp.cpp.
Referenced by BinaryComparsionOpWriter(), and te::map::QueryEncoder::visit().
void te::fe::BinaryComparisonOp::setFirst | ( | Expression * | first | ) |
It sets the first operand.
first | The first operand. |
Definition at line 56 of file BinaryComparisonOp.cpp.
|
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. |
Definition at line 67 of file BinaryComparisonOp.cpp.
|
protected |
first operand (mandatory).
Definition at line 156 of file BinaryComparisonOp.h.
|
protected |
Optional (default: true).
Definition at line 158 of file BinaryComparisonOp.h.
|
protectedinherited |
Operator name.
Definition at line 120 of file AbstractOp.h.
|
protected |
second operand (mandatory).
Definition at line 157 of file BinaryComparisonOp.h.