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

The addition operator. More...

#include <Add.h>

Inheritance diagram for te::fe::Add:
te::fe::BinaryOperator te::fe::Expression 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.

 Add (Expression *arg1, Expression *arg2)
 Constructor. More...
 
 ~Add ()
 Destructor. More...
 
Accessor methods

Methods used to get or set properties.

const char * getName () const
 It returns the operator name. More...
 
void setFirst (Expression *first)
 It sets the first operand. More...
 
ExpressiongetFirst () const
 It returns the first operand. More...
 
void setSecond (Expression *second)
 It sets the second operand. More...
 
ExpressiongetSecond () const
 It returns the second operand. More...
 
Expression Re-implementation

Methods re-implemented from Expression.

virtual Expressionclone () const
 It returns a clone of this object. More...
 

Detailed Description

The addition operator.

See also
BinaryOperator

Definition at line 44 of file Add.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::Add::Add ( Expression arg1,
Expression arg2 
)
inline

Constructor.

Parameters
arg1The first operand.
arg2The second operand.
Note
The addition operator will take the ownership of the given operands.

Definition at line 63 of file Add.h.

te::fe::Add::~Add ( )
inline

Destructor.

Definition at line 66 of file Add.h.

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::BinaryOperator::clone ( ) const
virtualinherited

It returns a clone of this object.

Returns
A clone of this object.

Implements te::fe::Expression.

Definition at line 75 of file BinaryOperator.cpp.

References te::fe::Expression::clone().

te::fe::Expression * te::fe::BinaryOperator::getFirst ( ) const
inherited

It returns the first operand.

Returns
The first operand.

Definition at line 59 of file BinaryOperator.cpp.

Referenced by te::fe::serialize::Expression::visit(), and te::map::QueryEncoder::visit().

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

It returns the operator name.

Returns
The operator name.

Definition at line 114 of file BinaryOperator.h.

Referenced by te::fe::serialize::Expression::visit(), and te::map::QueryEncoder::visit().

te::fe::Expression * te::fe::BinaryOperator::getSecond ( ) const
inherited

It returns the second operand.

Returns
The second operand.

Definition at line 70 of file BinaryOperator.cpp.

Referenced by te::fe::serialize::Expression::visit(), and te::map::QueryEncoder::visit().

void te::fe::BinaryOperator::setFirst ( Expression first)
inherited

It sets the first operand.

Parameters
firstThe first operand.
Note
The binary operator will take the ownership of the first operand.

Definition at line 53 of file BinaryOperator.cpp.

void te::fe::BinaryOperator::setSecond ( Expression second)
inherited

It sets the second operand.

Parameters
secondThe second operand.
Note
It will take the ownership of the second operand.

Definition at line 64 of file BinaryOperator.cpp.


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