te::fe::ComparisonOp Class Referenceabstract

A comparison operator is used to form expressions that evaluate the mathematical comparison between two arguments. More...

#include <ComparisonOp.h>

Inheritance diagram for te::fe::ComparisonOp:
te::fe::AbstractOp te::common::BaseVisitable< Visitor > te::fe::BinaryComparisonOp te::fe::PropertyIsBetween te::fe::PropertyIsLike te::fe::PropertyIsNull te::fe::PropertyIsEqualTo te::fe::PropertyIsGreaterThan te::fe::PropertyIsGreaterThanOrEqualTo te::fe::PropertyIsLessThan te::fe::PropertyIsLessThanOrEqualTo te::fe::PropertyIsNotEqualTo

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.

 ComparisonOp (const char *opName=0)
 It initializes the Comparison operator. More...
 
virtual ~ComparisonOp ()
 Virtual destructor. More...
 
Accessor methods

Methods used to get or set properties.

AbstractOpclone () 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

const char * m_name
 Operator name. More...
 

Detailed Description

A comparison operator is used to form expressions that evaluate the mathematical comparison between two arguments.

If the arguments satisfy the comparison then the expression evaluates to true. Otherwise the expression evaluates to false.

See also
AbstractOp, BinaryComparisonOp, PropertyIsLike, PropertyIsNull, PropertyIsBetween

Definition at line 49 of file ComparisonOp.h.

Member Typedef Documentation

◆ ReturnType

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

Definition at line 58 of file BaseVisitable.h.

◆ VisitorType

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

Definition at line 57 of file BaseVisitable.h.

Constructor & Destructor Documentation

◆ ComparisonOp()

te::fe::ComparisonOp::ComparisonOp ( const char *  opName = 0)

It initializes the Comparison operator.

Parameters
opNameThe operator name.
Note
The ComparisonOp will not take the ownership of the given name.

◆ ~ComparisonOp()

virtual te::fe::ComparisonOp::~ComparisonOp ( )
virtual

Virtual destructor.

Member Function Documentation

◆ accept()

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.

◆ clone()

AbstractOp* te::fe::ComparisonOp::clone ( ) const
virtual

It creates a new copy of this object.

Implements te::fe::AbstractOp.

Reimplemented in te::fe::PropertyIsLike, te::fe::PropertyIsBetween, and te::fe::PropertyIsNull.

◆ getName()

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.

◆ setName()

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.

Member Data Documentation

◆ m_name

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

Operator name.

Definition at line 123 of file AbstractOp.h.


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