The addition operator. More...
#include <Add.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. 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... | |
Expression * | getFirst () const |
It returns the first operand. More... | |
void | setSecond (Expression *second) |
It sets the second operand. More... | |
Expression * | getSecond () const |
It returns the second operand. More... | |
Expression Re-implementation | |
Methods re-implemented from Expression. | |
virtual Expression * | clone () const |
It returns a clone of this object. More... | |
|
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. |