Puma Reference Manual Puma: Puma::CT_Program Class Reference



Puma::CT_Program Class Reference

Root node of C/C++ syntax trees. More...

#include <Puma/CTree.h>

Inherits Puma::CT_DeclList, and Puma::CSemScope.

List of all members.

Public Member Functions

 CT_Program (int size=20, int incr=20)
 Constructor.
const char * NodeName () const
 Get the name of the node.
CSemScopeSemScope () const
 Get the top scope.

Static Public Member Functions

static const char * NodeId ()
 Get the identifier for this node type.

Detailed Description

Root node of C/C++ syntax trees.


Constructor & Destructor Documentation

Puma::CT_Program::CT_Program ( int  size = 20,
int  incr = 20 
) [inline]

Constructor.

Parameters:
size The initial number of declarations in the program.
incr The initial increment count.

Member Function Documentation

static const char* Puma::CT_Program::NodeId (  )  [static]

Get the identifier for this node type.

Can be compared with NodeName().

Reimplemented from Puma::CT_DeclList.

const char* Puma::CT_Program::NodeName (  )  const [inline, virtual]

Get the name of the node.

Can be compared with NodeId().

Reimplemented from Puma::CT_DeclList.

CSemScope* Puma::CT_Program::SemScope (  )  const [inline, virtual]

Get the top scope.

Reimplemented from Puma::CTree.




Puma Reference Manual. Created on 18 Sep 2009.