#include <stree.h>
Inheritance diagram for UnaryOperator:
Public Member Functions | |
UnaryOperator (string oname, Node *statement2) | |
Constructor. | |
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 622 of file stree.h.
|
Constructor.
Definition at line 597 of file stree.cpp. References CUnaryOperator. Referenced by copy(). |
|
Copies the node.
Reimplemented from Binary. Definition at line 605 of file stree.cpp. References Binary::getStatement1(), Binary::getStatement2(), and UnaryOperator(). |
|
Computes the value of the expression (only basic atihmetic and string operations).
Reimplemented from List. Definition at line 609 of file stree.cpp. References boolToString(), Node::evaluate(), Binary::getStatement1(), Binary::getStatement2(), intToString(), stringToBool(), and stringToInt(). |
|
Writes node to the stream as php.
Reimplemented from Binary. Definition at line 600 of file stree.cpp. References Binary::getStatement1(), and Binary::getStatement2(). |