te::fe::Sub Class Referenceabstract

The subtraction operator. More...

#include <Sub.h>

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

Methods related to instantiation and destruction.

 Sub (Expression *arg1, Expression *arg2)
 Constructor. More...
 
 ~Sub ()
 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 subtraction operator.

See also
BinaryOperator

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

Constructor.

Parameters
arg1The first argument.
arg2The second argument.
Note
The Sub operator will take the ownership of the given arguments.

Definition at line 63 of file Sub.h.

te::fe::Sub::~Sub ( )
inline

Destructor.

Definition at line 66 of file Sub.h.

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.
virtual Expression* te::fe::BinaryOperator::clone ( ) const
virtualinherited

It returns a clone of this object.

Returns
A clone of this object.

Implements te::fe::Expression.

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

It returns the first operand.

Returns
The first operand.
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.

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

It returns the second operand.

Returns
The second operand.
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.
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.

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