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... | |
| ComparisonOp * | clone () const |
| It creates a new copy of this object. 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 36 of file BinaryComparisonOp.cpp.
Referenced by clone().
| 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 44 of file BinaryComparisonOp.cpp.
|
virtual |
Virtual destructor.
Definition at line 52 of file BinaryComparisonOp.cpp.
|
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.
Definition at line 90 of file BinaryComparisonOp.cpp.
References BinaryComparisonOp(), te::fe::Expression::clone(), disableMatchCase(), enableMatchCase(), m_first, m_matchCase, te::fe::AbstractOp::m_name, m_second, setFirst(), te::fe::AbstractOp::setName(), and setSecond().
| void te::fe::BinaryComparisonOp::disableMatchCase | ( | ) |
It disables the match case flag. So comparisons will not be case sensitive.
Definition at line 85 of file BinaryComparisonOp.cpp.
References m_matchCase.
Referenced by clone().
| void te::fe::BinaryComparisonOp::enableMatchCase | ( | ) |
It enables the match case flag. So comparisons will be case sensitive.
Definition at line 80 of file BinaryComparisonOp.cpp.
References m_matchCase.
Referenced by clone().
| te::fe::Expression * te::fe::BinaryComparisonOp::getFirst | ( | ) | const |
It returns the first operand.
Definition at line 64 of file BinaryComparisonOp.cpp.
References m_first.
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 75 of file BinaryComparisonOp.cpp.
References m_second.
Referenced by BinaryComparsionOpWriter(), te::fe::GetFilterStepValues(), te::fe::GetFilterUniqueValue(), and te::map::QueryEncoder::visit().
| void te::fe::BinaryComparisonOp::setFirst | ( | Expression * | first | ) |
It sets the first operand.
| first | The first operand. |
Definition at line 58 of file BinaryComparisonOp.cpp.
References m_first.
Referenced by clone().
|
inlineinherited |
It sets the operator name.
| opName | The operator name. |
Definition at line 89 of file AbstractOp.h.
Referenced by te::fe::ComparisonOp::clone(), te::fe::SpatialOp::clone(), te::fe::LogicOp::clone(), te::fe::PropertyIsNull::clone(), te::fe::UnaryLogicOp::clone(), te::fe::PropertyIsBetween::clone(), te::fe::BinaryLogicOp::clone(), te::fe::DistanceBuffer::clone(), clone(), and te::fe::BinarySpatialOp::clone().
| void te::fe::BinaryComparisonOp::setSecond | ( | Expression * | second | ) |
It sets the second operand.
| second | The second operand. |
Definition at line 69 of file BinaryComparisonOp.cpp.
References m_second.
Referenced by clone().
|
protected |
first operand (mandatory).
Definition at line 159 of file BinaryComparisonOp.h.
Referenced by clone(), getFirst(), setFirst(), and ~BinaryComparisonOp().
|
protected |
Optional (default: true).
Definition at line 161 of file BinaryComparisonOp.h.
Referenced by clone(), disableMatchCase(), and enableMatchCase().
|
protectedinherited |
Operator name.
Definition at line 123 of file AbstractOp.h.
Referenced by te::fe::ComparisonOp::clone(), te::fe::SpatialOp::clone(), te::fe::LogicOp::clone(), te::fe::PropertyIsNull::clone(), te::fe::UnaryLogicOp::clone(), te::fe::PropertyIsBetween::clone(), te::fe::BinaryLogicOp::clone(), te::fe::DistanceBuffer::clone(), clone(), and te::fe::BinarySpatialOp::clone().
|
protected |
second operand (mandatory).
Definition at line 160 of file BinaryComparisonOp.h.
Referenced by clone(), getSecond(), setSecond(), and ~BinaryComparisonOp().