Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

AST::List Class Reference

Special node type subclasses to contain a list of other nodes. More...

#include <ast.h>

Inheritance diagram for AST::List:

AST::Node List of all members.

Public Member Functions

 List ()
 List (vector< Node * > vec)
void addChild (Node *child)
virtual void to3ACFile (FILE *f)
 convert me to 3ac - subclassed

Public Attributes

vector< Node * > list

Private Types

typedef Node super

Detailed Description

Special node type subclasses to contain a list of other nodes.

Definition at line 63 of file ast.h.


Member Typedef Documentation

typedef Node AST::List::super [private]
 

Definition at line 64 of file ast.h.


Constructor & Destructor Documentation

AST::List::List  )  [inline]
 

Definition at line 66 of file ast.h.

References AST::Node::NODE_LIST, and AST::Node::nodeType.

00066           :
00067         super("List") 
00068     {
00069         this->nodeType = NODE_LIST;
00070     }
    List(vector<Node*> vec):

AST::List::List vector< Node * >  vec  )  [inline]
 

Definition at line 71 of file ast.h.

References addChild(), AST::Node::NODE_LIST, and AST::Node::nodeType.

00071                            :
00072         super("List")
00073     {
00074         this->nodeType = NODE_LIST;
00075         for( int i = 0; i < vec.size(); i ++){
00076             this->addChild(vec[i]);
00077         }
00078     }
    void addChild(Node* child){


Member Function Documentation

void AST::List::addChild Node child  )  [inline]
 

Definition at line 79 of file ast.h.

References list.

Referenced by List().

00079                               {
00080         list.push_back(child);
00081     }

virtual void AST::List::to3ACFile FILE *  f  )  [inline, virtual]
 

convert me to 3ac - subclassed

Implements AST::Node.

Definition at line 82 of file ast.h.

00082 {}


Member Data Documentation

vector<Node*> AST::List::list
 

Definition at line 83 of file ast.h.

Referenced by addChild(), and AST::Node::toASTFile().


The documentation for this class was generated from the following file:
Generated on Thu Oct 20 12:00:04 2005 for ASTree by  doxygen 1.4.2-20050421