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 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...
 
ComparisonOp * clone () const
 It creates a new copy of this 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...
 
Expression * getExpression () const
 It returns the between expression. More...
 
void setLowerBoundary (Expression *e)
 It sets the lower boundary expression. More...
 
Expression * getLowerBoundary () const
 It returns the lower boundary expression. More...
 
void setUpperBoundary (Expression *e)
 It sets the lower boundary expression. More...
 
Expression * getUpperBoundary () 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

Expression * m_expression
 Mandatory. More...
 
Expression * m_lowerBoundary
 Mandatory. More...
 
Expression * m_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 void te::common::BaseVisitable< Visitor , void >::ReturnType
inherited

Definition at line 58 of file BaseVisitable.h.

typedef Visitor te::common::BaseVisitable< Visitor , void >::VisitorType
inherited

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.

Referenced by clone().

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

Destructor.

Definition at line 39 of file PropertyIsBetween.cpp.

References m_expression, m_lowerBoundary, and m_upperBoundary.

Member Function Documentation

virtual ReturnType te::common::BaseVisitable< Visitor , void >::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::ComparisonOp * te::fe::PropertyIsBetween::clone ( ) const
virtual
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.

References m_expression.

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.

References m_lowerBoundary.

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.

References m_upperBoundary.

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.

References m_expression.

Referenced by clone().

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.

References m_lowerBoundary.

Referenced by clone().

void te::fe::AbstractOp::setName ( const char *  opName)
inlineinherited
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.

References m_upperBoundary.

Member Data Documentation

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

Mandatory.

Definition at line 127 of file PropertyIsBetween.h.

Referenced by clone(), getExpression(), setExpression(), and ~PropertyIsBetween().

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

Mandatory.

Definition at line 128 of file PropertyIsBetween.h.

Referenced by clone(), getLowerBoundary(), setLowerBoundary(), and ~PropertyIsBetween().

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

Mandatory.

Definition at line 129 of file PropertyIsBetween.h.

Referenced by clone(), getUpperBoundary(), setUpperBoundary(), and ~PropertyIsBetween().


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