#include <stree.h>
Inheritance diagram for BinaryOperator:
Public Member Functions | |
BinaryOperator (string oname, Node *statement2, Node *statement3) | |
Constructor. | |
BinaryOperator (Node *ioperator, Node *statement2, Node *statement3) | |
virtual ostream & | php (ostream &os) const |
Writes node to the stream as php. | |
virtual Node * | copy () const |
Copies the node. | |
virtual string | evaluate (const NameSpace &nameSpace) const |
Computes the value of the expression (only basic atihmetic and string operations). |
The name of the operator is given by oname.
Definition at line 654 of file stree.h.
|
Constructor.
Definition at line 645 of file stree.cpp. References CBinaryOperator. Referenced by copy(). |
|
Definition at line 647 of file stree.cpp. References CBinaryOperator. |
|
Copies the node.
Reimplemented from Ternary. Definition at line 655 of file stree.cpp. References BinaryOperator(), Ternary::getStatement1(), Ternary::getStatement2(), and Ternary::getStatement3(). |
|
Computes the value of the expression (only basic atihmetic and string operations).
Reimplemented from List. Definition at line 659 of file stree.cpp. References boolToString(), Node::evaluate(), Ternary::getStatement1(), Ternary::getStatement2(), Ternary::getStatement3(), intToString(), stringToBool(), and stringToInt(). |
|
Writes node to the stream as php.
Reimplemented from Ternary. Definition at line 650 of file stree.cpp. References Ternary::getStatement1(), Ternary::getStatement2(), and Ternary::getStatement3(). |