comma::TypeVisitor Class Reference

#include <TypeVisitor.h>

Inheritance diagram for comma::TypeVisitor:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~TypeVisitor ()
Inner Visitor Methods.

The following set of methods are concerned with visiting the inner nodes of the type hierarchy. Default implementations are provided. The behaviour is to simply dispatch over the set of concrete subclasses. For example, the default method for visiting a SubroutineType will resolve its argument to either a FunctionType or ProcedureType and then invoke the specialized visitor for the resolved type. Of course, an implementation may choose to override any or all of these methods.



virtual void visitType (Type *node)
virtual void visitSubroutineType (SubroutineType *node)
Concrete Visitor Methods.

The following group of methods visit the non-virtual nodes in the type hierarchy. The default implementation for these methods do nothing.



virtual void visitDomainType (DomainType *node)
virtual void visitFunctionType (FunctionType *node)
virtual void visitProcedureType (ProcedureType *node)
virtual void visitEnumerationType (EnumerationType *node)
virtual void visitIntegerType (IntegerType *node)
virtual void visitArrayType (ArrayType *node)
virtual void visitRecordType (RecordType *node)
virtual void visitAccessType (AccessType *node)
virtual void visitIncompleteType (IncompleteType *node)

Detailed Description

Definition at line 23 of file TypeVisitor.h.


Constructor & Destructor Documentation

virtual comma::TypeVisitor::~TypeVisitor (  )  [inline, virtual]

Definition at line 26 of file TypeVisitor.h.


Member Function Documentation

void TypeVisitor::visitAccessType ( AccessType node  )  [virtual]

Definition at line 64 of file TypeVisitor.cpp.

void TypeVisitor::visitArrayType ( ArrayType node  )  [virtual]

Definition at line 62 of file TypeVisitor.cpp.

void TypeVisitor::visitDomainType ( DomainType node  )  [virtual]

Definition at line 57 of file TypeVisitor.cpp.

void TypeVisitor::visitEnumerationType ( EnumerationType node  )  [virtual]

Definition at line 60 of file TypeVisitor.cpp.

void TypeVisitor::visitFunctionType ( FunctionType node  )  [virtual]

Definition at line 58 of file TypeVisitor.cpp.

void TypeVisitor::visitIncompleteType ( IncompleteType node  )  [virtual]

Definition at line 65 of file TypeVisitor.cpp.

void TypeVisitor::visitIntegerType ( IntegerType node  )  [virtual]

Definition at line 61 of file TypeVisitor.cpp.

void TypeVisitor::visitProcedureType ( ProcedureType node  )  [virtual]

Definition at line 59 of file TypeVisitor.cpp.

void TypeVisitor::visitRecordType ( RecordType node  )  [virtual]

Definition at line 63 of file TypeVisitor.cpp.

void TypeVisitor::visitSubroutineType ( SubroutineType node  )  [virtual]

Definition at line 44 of file TypeVisitor.cpp.

void TypeVisitor::visitType ( Type node  )  [virtual]

Definition at line 22 of file TypeVisitor.cpp.


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

Generated on 1 Feb 2010 for Comma by  doxygen 1.6.1