te::fe::Mul Class Referenceabstract

The multiply operator. More...

#include <Mul.h>

Inheritance diagram for te::fe::Mul:
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.

 Mul (Expression *arg1, Expression *arg2)
 Constructor. More...
 
 ~Mul ()
 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...
 
const char * m_opName
 The operator name. (Mandatory) More...
 
Expressionm_first
 First operand (an expression). (Mandatory) More...
 
Expressionm_second
 Second operand (an expression). (Mandatory) More...
 

Detailed Description

The multiply operator.

See also
BinaryOperator

Definition at line 44 of file Mul.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

◆ Mul()

te::fe::Mul::Mul ( Expression arg1,
Expression arg2 
)
inline

Constructor.

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

Definition at line 63 of file Mul.h.

◆ ~Mul()

te::fe::Mul::~Mul ( )
inline

Destructor.

Definition at line 66 of file Mul.h.

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

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.

◆ getFirst()

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

It returns the first operand.

Returns
The first operand.

◆ getName()

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.

◆ getSecond()

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

It returns the second operand.

Returns
The second operand.

◆ setFirst()

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.

◆ setSecond()

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.

Member Data Documentation

◆ m_first

Expression* te::fe::BinaryOperator::m_first
privateinherited

First operand (an expression). (Mandatory)

Definition at line 162 of file BinaryOperator.h.

◆ m_opName

const char* te::fe::BinaryOperator::m_opName
privateinherited

The operator name. (Mandatory)

Definition at line 161 of file BinaryOperator.h.

◆ m_second

Expression* te::fe::BinaryOperator::m_second
privateinherited

Second operand (an expression). (Mandatory)

Definition at line 163 of file BinaryOperator.h.


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