listNode Class Reference

Inheritance diagram for listNode:

Inheritance graph
[legend]
Collaboration diagram for listNode:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 listNode (char *begin_sym, char *end_sym)
void add (astNode *element)
bool print (prettyPrintStream *output)
int width (prettyPrintStream *output)

Protected Attributes

GrowableArray< astNode * > * elements
char * begin_sym
char * end_sym

Detailed Description

Definition at line 215 of file prettyPrinter.cpp.


Constructor & Destructor Documentation

listNode::listNode ( char *  begin_sym,
char *  end_sym 
) [inline]

Definition at line 221 of file prettyPrinter.cpp.

References elements.


Member Function Documentation

void listNode::add ( astNode element  )  [inline, virtual]

Reimplemented from astNode.

Definition at line 227 of file prettyPrinter.cpp.

References elements, and GrowableArray< E >::push().

Referenced by scopeNode::params(), and scopeNode::temps().

Here is the call graph for this function:

bool listNode::print ( prettyPrintStream output  )  [inline, virtual]

Reimplemented from astNode.

Definition at line 231 of file prettyPrinter.cpp.

References GrowableArray< E >::at(), begin_sym, elements, end_sym, GenericGrowableArray::length(), astNode::print(), prettyPrintStream::print(), and prettyPrintStream::space().

Here is the call graph for this function:

int listNode::width ( prettyPrintStream output  )  [inline, virtual]

Reimplemented from astNode.

Definition at line 247 of file prettyPrinter.cpp.

References GrowableArray< E >::at(), begin_sym, elements, end_sym, GenericGrowableArray::length(), astNode::width(), prettyPrintStream::width_of_space(), and prettyPrintStream::width_of_string().

Here is the call graph for this function:


Member Data Documentation

char* listNode::begin_sym [protected]

Definition at line 218 of file prettyPrinter.cpp.

Referenced by print(), and width().

GrowableArray<astNode*>* listNode::elements [protected]

Definition at line 217 of file prettyPrinter.cpp.

Referenced by add(), listNode(), print(), and width().

char* listNode::end_sym [protected]

Definition at line 219 of file prettyPrinter.cpp.

Referenced by print(), and width().


The documentation for this class was generated from the following file:
Generated on Mon Oct 9 14:05:01 2006 for Strongtalk VM by  doxygen 1.4.7