ASTPair Class Reference

#include <ASTPair.hpp>

Collaboration diagram for ASTPair:

Collaboration graph
[legend]

Public Member Functions

void advanceChildToEnd ()
 ANTLR_USE_NAMESPACE (std) string toString() const

Data Fields

RefAST root
RefAST child

Detailed Description

ASTPair: utility class used for manipulating a pair of ASTs representing the current AST root and current AST sibling. This exists to compensate for the lack of pointers or 'var' arguments in Java.

OK, so we can do those things in C++, but it seems easier to stick with the Java way for now.

Definition at line 26 of file ASTPair.hpp.


Member Function Documentation

void ASTPair::advanceChildToEnd (  )  [inline]

Make sure that child is the last sibling

Definition at line 32 of file ASTPair.hpp.

ASTPair::ANTLR_USE_NAMESPACE ( std   )  const [inline]

Copy an ASTPair. Don't call it clone() because we want type-safety

Definition at line 46 of file ASTPair.hpp.

References ANTLR_USE_NAMESPACE.


Field Documentation

Definition at line 28 of file ASTPair.hpp.

Definition at line 29 of file ASTPair.hpp.


The documentation for this class was generated from the following file:

Generated on Tue Mar 31 20:19:25 2009 for ctrump by  doxygen 1.5.6