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

Ternary Class Reference

A node with three children. More...

#include <streenamedlist.h>

Inheritance diagram for Ternary:

List Node AskOperator BinaryOperator Class EncapsExpr FunctionCall If Parameter

Public Member Functions

 Ternary (string name, Node *statement1, Node *statement2, Node *statement3)
 Creates Ternary with given name and children.

NodegetStatement1 ()
 Returns the first child of the node.

NodegetStatement2 ()
 Returns the second child of the node.

NodegetStatement3 ()
 Returns the third child of the node.

const NodegetStatement1 () const
 Returns the first child of the node.

const NodegetStatement2 () const
 Returns the second child of the node.

const NodegetStatement3 () const
 Returns the third child of the node.

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

virtual Nodecopy () const
 Copies the node.


Detailed Description

A node with three children.

Definition at line 67 of file streenamedlist.h.


Constructor & Destructor Documentation

Ternary::Ternary string  name,
Node statement1,
Node statement2,
Node statement3
 

Creates Ternary with given name and children.

Definition at line 68 of file streenamedlist.cpp.

References List::push_back().

Referenced by copy().


Member Function Documentation

Node * Ternary::copy  )  const [virtual]
 

Copies the node.

Reimplemented from List.

Reimplemented in If, Class, Parameter, BinaryOperator, EncapsExpr, AskOperator, and FunctionCall.

Definition at line 88 of file streenamedlist.cpp.

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

const Node * Ternary::getStatement1  )  const
 

Returns the first child of the node.

Definition at line 79 of file streenamedlist.cpp.

Node * Ternary::getStatement1  ) 
 

Returns the first child of the node.

Definition at line 75 of file streenamedlist.cpp.

Referenced by copy(), FunctionCall::copy(), AskOperator::copy(), EncapsExpr::copy(), BinaryOperator::copy(), Parameter::copy(), Class::copy(), If::copy(), AskOperator::evaluate(), BinaryOperator::evaluate(), php(), FunctionCall::php(), AskOperator::php(), EncapsExpr::php(), BinaryOperator::php(), Parameter::php(), Class::php(), and If::php().

const Node * Ternary::getStatement2  )  const
 

Returns the second child of the node.

Definition at line 80 of file streenamedlist.cpp.

Node * Ternary::getStatement2  ) 
 

Returns the second child of the node.

Definition at line 76 of file streenamedlist.cpp.

Referenced by copy(), FunctionCall::copy(), AskOperator::copy(), EncapsExpr::copy(), BinaryOperator::copy(), Parameter::copy(), Class::copy(), If::copy(), AskOperator::evaluate(), EncapsExpr::evaluate(), BinaryOperator::evaluate(), php(), FunctionCall::php(), AskOperator::php(), EncapsExpr::php(), BinaryOperator::php(), Parameter::php(), Class::php(), and If::php().

const Node * Ternary::getStatement3  )  const
 

Returns the third child of the node.

Definition at line 81 of file streenamedlist.cpp.

Node * Ternary::getStatement3  ) 
 

Returns the third child of the node.

Definition at line 77 of file streenamedlist.cpp.

Referenced by copy(), FunctionCall::copy(), AskOperator::copy(), EncapsExpr::copy(), BinaryOperator::copy(), Parameter::copy(), Class::copy(), If::copy(), AskOperator::evaluate(), BinaryOperator::evaluate(), php(), FunctionCall::php(), AskOperator::php(), EncapsExpr::php(), BinaryOperator::php(), Parameter::php(), Class::php(), and If::php().

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

Writes node to the stream as php.

Reimplemented from List.

Reimplemented in If, Class, Parameter, BinaryOperator, EncapsExpr, AskOperator, and FunctionCall.

Definition at line 83 of file streenamedlist.cpp.

References List::getName(), getStatement1(), getStatement2(), and getStatement3().


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