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

AskOperator Class Reference

? : Operator More...

#include <stree.h>

Inheritance diagram for AskOperator:

Ternary List Node

Public Member Functions

 AskOperator (Node *statement1, Node *statement2, Node *statement3)
 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

? : Operator

Definition at line 692 of file stree.h.


Constructor & Destructor Documentation

AskOperator::AskOperator Node statement1,
Node statement2,
Node statement3
 

Constructor.

Definition at line 725 of file stree.cpp.

References CAskOperator.

Referenced by copy().


Member Function Documentation

Node * AskOperator::copy  )  const [virtual]
 

Copies the node.

Reimplemented from Ternary.

Definition at line 733 of file stree.cpp.

References AskOperator(), Ternary::getStatement1(), Ternary::getStatement2(), and Ternary::getStatement3().

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

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

Reimplemented from List.

Definition at line 737 of file stree.cpp.

References Node::evaluate(), Ternary::getStatement1(), Ternary::getStatement2(), and Ternary::getStatement3().

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

Writes node to the stream as php.

Reimplemented from Ternary.

Definition at line 728 of file stree.cpp.

References Ternary::getStatement1(), Ternary::getStatement2(), and Ternary::getStatement3().


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