Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals

UnaryOperator Class Reference

Unary operatorc. More...

#include <stree.h>

Inheritance diagram for UnaryOperator:

Binary List Node Ref

Public Member Functions

 UnaryOperator (string oname, Node *statement2)
 Constructor.

virtual ostream & php (ostream &os) const
 Writes node to the stream as php.

virtual Nodecopy () const
 Copies the node.

virtual string evaluate (const NameSpace &nameSpace) const
 Computes the value of the expression (only basic atihmetic and string operations).


Detailed Description

Unary operatorc.

The name of the operator is given by oname.

Definition at line 622 of file stree.h.


Constructor & Destructor Documentation

UnaryOperator::UnaryOperator string  oname,
Node statement2
 

Constructor.

Definition at line 597 of file stree.cpp.

References CUnaryOperator.

Referenced by copy().


Member Function Documentation

Node * UnaryOperator::copy  )  const [virtual]
 

Copies the node.

Reimplemented from Binary.

Definition at line 605 of file stree.cpp.

References Binary::getStatement1(), Binary::getStatement2(), and UnaryOperator().

string UnaryOperator::evaluate const NameSpace nameSpace  )  const [virtual]
 

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

ostream & UnaryOperator::php ostream &  os  )  const [virtual]
 

Writes node to the stream as php.

Reimplemented from Binary.

Definition at line 600 of file stree.cpp.

References Binary::getStatement1(), and Binary::getStatement2().


The documentation for this class was generated from the following files:
Generated on Fri Nov 21 17:54:10 2003 for PHPX by doxygen 1.3.3