The multiply operator. More...
#include <Mul.h>
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. | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
Mul (Expression *arg1, Expression *arg2) | |
Constructor. | |
~Mul () | |
Destructor. | |
Accessor methods | |
Methods used to get or set properties. | |
const char * | getName () const |
It returns the operator name. | |
void | setFirst (Expression *first) |
It sets the first operand. | |
Expression * | getFirst () const |
It returns the first operand. | |
void | setSecond (Expression *second) |
It sets the second operand. | |
Expression * | getSecond () const |
It returns the second operand. | |
Expression Re-implementation | |
Methods re-implemented from Expression. | |
virtual Expression * | clone () const |
It returns a clone of this object. | |
const char * | m_opName |
The operator name. (Mandatory) | |
Expression * | m_first |
First operand (an expression). (Mandatory) | |
Expression * | m_second |
Second operand (an expression). (Mandatory) | |
|
inherited |
Definition at line 58 of file BaseVisitable.h.
|
inherited |
Definition at line 57 of file BaseVisitable.h.
|
inline |
|
pure virtualinherited |
It call the visit method from the guest object.
guest | The guest or visitor. |
|
virtualinherited |
|
inherited |
It returns the first operand.
|
inlineinherited |
It returns the operator name.
Definition at line 114 of file BinaryOperator.h.
|
inherited |
It returns the second operand.
|
inherited |
It sets the first operand.
first | The first operand. |
|
inherited |
It sets the second operand.
second | The second operand. |
|
privateinherited |
First operand (an expression). (Mandatory)
Definition at line 162 of file BinaryOperator.h.
|
privateinherited |
The operator name. (Mandatory)
Definition at line 161 of file BinaryOperator.h.
|
privateinherited |
Second operand (an expression). (Mandatory)
Definition at line 163 of file BinaryOperator.h.