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

Quadary Class Reference

A node with four children. More...

#include <streenamedlist.h>

Inheritance diagram for Quadary:

List Node For Foreach Function

Public Member Functions

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

Node * getStatement1 ()
 Returns the first child of the node.

Node * getStatement2 ()
 Returns the second child of the node.

Node * getStatement3 ()
 Returns the third child of the node.

Node * getStatement4 ()
 Returns the forth child of the node.

const Node * getStatement1 () const
 Returns the first child of the node.

const Node * getStatement2 () const
 Returns the second child of the node.

const Node * getStatement3 () const
 Returns the third child of the node.

const Node * getStatement4 () const
 Returns the forth child of the node.

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

virtual Node * copy () const
 Copies the node.


Detailed Description

A node with four children.

Definition at line 93 of file streenamedlist.h.


Constructor & Destructor Documentation

Quadary::Quadary (  string  name,
Node *  statement1,
Node *  statement2,
Node *  statement3,
Node *  statement4
) 
 

Creates Quadary with given name and children.

Definition at line 92 of file streenamedlist.cpp.

References List::push_back().

Referenced by copy().


Member Function Documentation

Node * Quadary::copy (   )  const [virtual]
 

Copies the node.

Reimplemented from List.

Reimplemented in For, Foreach, and Function.

Definition at line 117 of file streenamedlist.cpp.

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

const Node * Quadary::getStatement1 (   )  const
 

Returns the first child of the node.

Definition at line 105 of file streenamedlist.cpp.

Node * Quadary::getStatement1 (   ) 
 

Returns the first child of the node.

Definition at line 100 of file streenamedlist.cpp.

Referenced by copy(), Function::copy(), Foreach::copy(), For::copy(), php(), Function::php(), Foreach::php(), and For::php().

const Node * Quadary::getStatement2 (   )  const
 

Returns the second child of the node.

Definition at line 106 of file streenamedlist.cpp.

Node * Quadary::getStatement2 (   ) 
 

Returns the second child of the node.

Definition at line 101 of file streenamedlist.cpp.

Referenced by copy(), Function::copy(), Foreach::copy(), For::copy(), php(), Function::php(), Foreach::php(), and For::php().

const Node * Quadary::getStatement3 (   )  const
 

Returns the third child of the node.

Definition at line 107 of file streenamedlist.cpp.

Node * Quadary::getStatement3 (   ) 
 

Returns the third child of the node.

Definition at line 102 of file streenamedlist.cpp.

Referenced by copy(), Function::copy(), Foreach::copy(), For::copy(), php(), Function::php(), Foreach::php(), and For::php().

const Node * Quadary::getStatement4 (   )  const
 

Returns the forth child of the node.

Definition at line 108 of file streenamedlist.cpp.

Node * Quadary::getStatement4 (   ) 
 

Returns the forth child of the node.

Definition at line 103 of file streenamedlist.cpp.

Referenced by copy(), Function::copy(), Foreach::copy(), For::copy(), php(), Function::php(), Foreach::php(), and For::php().

ostream & Quadary::php (  ostream &  os  )  const [virtual]
 

Writes node to the stream as php.

Reimplemented from List.

Reimplemented in For, Foreach, and Function.

Definition at line 110 of file streenamedlist.cpp.

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


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