All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::fe::PropertyIsBetween Class Referenceabstract

The PropertyIsBetween element is defined as a compact way of encoding a range check. More...

#include <PropertyIsBetween.h>

Inheritance diagram for te::fe::PropertyIsBetween:
te::fe::ComparisonOp te::fe::AbstractOp te::common::BaseVisitable< Visitor >

Public Types

typedef R 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.

 PropertyIsBetween ()
 It initializes a new PropertyIsBetween. More...
 
 ~PropertyIsBetween ()
 Destructor. More...
 
Accessor methods

Methods used to get or set properties.

void setExpression (Expression *e)
 It sets the between expression. More...
 
ExpressiongetExpression () const
 It returns the between expression. More...
 
void setLowerBoundary (Expression *e)
 It sets the lower boundary expression. More...
 
ExpressiongetLowerBoundary () const
 It returns the lower boundary expression. More...
 
void setUpperBoundary (Expression *e)
 It sets the lower boundary expression. More...
 
ExpressiongetUpperBoundary () const
 It returns the upper boundary expression. 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

const char * m_name
 Operator name. More...
 

Private Attributes

Expressionm_expression
 Mandatory. More...
 
Expressionm_lowerBoundary
 Mandatory. More...
 
Expressionm_upperBoundary
 Mandatory. More...
 

Detailed Description

The PropertyIsBetween element is defined as a compact way of encoding a range check.

The lower and upper boundary values are inclusive.

See also
ComparisonOp, Expression

Definition at line 47 of file PropertyIsBetween.h.

Member Typedef Documentation

typedef R te::common::BaseVisitable< Visitor , R >::ReturnType
inherited

Definition at line 58 of file BaseVisitable.h.

Definition at line 57 of file BaseVisitable.h.

Constructor & Destructor Documentation

te::fe::PropertyIsBetween::PropertyIsBetween ( )

It initializes a new PropertyIsBetween.

Definition at line 31 of file PropertyIsBetween.cpp.

te::fe::PropertyIsBetween::~PropertyIsBetween ( )

Destructor.

Definition at line 39 of file PropertyIsBetween.cpp.

Member Function Documentation

virtual ReturnType te::common::BaseVisitable< Visitor , R >::accept ( VisitorType guest) const
pure virtualinherited

It call the visit method from the guest object.

Parameters
guestThe guest or visitor.
Returns
Any valid value define by the template type R.
te::fe::Expression * te::fe::PropertyIsBetween::getExpression ( ) const

It returns the between expression.

Returns
The between expression.

Definition at line 52 of file PropertyIsBetween.cpp.

Referenced by BetweenWriter(), and te::map::QueryEncoder::visit().

te::fe::Expression * te::fe::PropertyIsBetween::getLowerBoundary ( ) const

It returns the lower boundary expression.

Returns
The lower boundary expression.

Definition at line 63 of file PropertyIsBetween.cpp.

Referenced by BetweenWriter(), and te::map::QueryEncoder::visit().

const char* te::fe::AbstractOp::getName ( ) const
inlineinherited

It returns the operator name.

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::PropertyIsBetween::getUpperBoundary ( ) const

It returns the upper boundary expression.

Returns
The upper boundary expression.

Definition at line 74 of file PropertyIsBetween.cpp.

Referenced by BetweenWriter(), and te::map::QueryEncoder::visit().

void te::fe::PropertyIsBetween::setExpression ( Expression e)

It sets the between expression.

Parameters
eThe between expression.
Note
It will take the ownership of the between expression.

Definition at line 46 of file PropertyIsBetween.cpp.

void te::fe::PropertyIsBetween::setLowerBoundary ( Expression e)

It sets the lower boundary expression.

Parameters
eThe lower boundary expression.
Note
It will take the ownership of the lower boundary expression.

Definition at line 57 of file PropertyIsBetween.cpp.

void te::fe::AbstractOp::setName ( const char *  opName)
inlineinherited

It sets the operator name.

Parameters
opNameThe operator name.

Definition at line 89 of file AbstractOp.h.

void te::fe::PropertyIsBetween::setUpperBoundary ( Expression e)

It sets the lower boundary expression.

Parameters
eThe upper boundary expression.
Note
It will take the ownership of the upper boundary expression.

Definition at line 68 of file PropertyIsBetween.cpp.

Member Data Documentation

Expression* te::fe::PropertyIsBetween::m_expression
private

Mandatory.

Definition at line 124 of file PropertyIsBetween.h.

Expression* te::fe::PropertyIsBetween::m_lowerBoundary
private

Mandatory.

Definition at line 125 of file PropertyIsBetween.h.

const char* te::fe::AbstractOp::m_name
protectedinherited

Operator name.

Definition at line 120 of file AbstractOp.h.

Expression* te::fe::PropertyIsBetween::m_upperBoundary
private

Mandatory.

Definition at line 126 of file PropertyIsBetween.h.


The documentation for this class was generated from the following files: