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

PostUnaryOperator Class Reference

Post unary operator. More...

#include <stree.h>

Inheritance diagram for PostUnaryOperator:

Binary List Node

Public Member Functions

 PostUnaryOperator (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

Post unary operator.

The name of the operator is given by oname.

Definition at line 638 of file stree.h.


Constructor & Destructor Documentation

PostUnaryOperator::PostUnaryOperator string  oname,
Node statement2
 

Constructor.

Definition at line 624 of file stree.cpp.

References CPostUnaryOperator.

Referenced by copy().


Member Function Documentation

Node * PostUnaryOperator::copy  )  const [virtual]
 

Copies the node.

Reimplemented from Binary.

Definition at line 632 of file stree.cpp.

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

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

Computes the value of the expression (only basic atihmetic and string operations).

Reimplemented from List.

Definition at line 636 of file stree.cpp.

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

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

Writes node to the stream as php.

Reimplemented from Binary.

Definition at line 627 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:09 2003 for PHPX by doxygen 1.3.3