Puma Reference Manual Puma: Puma::CT_DeclList Class Reference



Puma::CT_DeclList Class Reference

Tree node representing a list of declarations. More...

#include <Puma/CTree.h>

Inheritance diagram for Puma::CT_DeclList:
Inheritance graph

List of all members.

Public Member Functions

 CT_DeclList (int size=20, int incr=20)
 Constructor.
const char * NodeName () const
 Get the name of the node.
void Linkage (CT_LinkageSpec *l)
 Set the linkage specifiers to each declaration in the list.

Static Public Member Functions

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

Detailed Description

Tree node representing a list of declarations.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
sizeThe initial size of the list.
incrThe initial increment count of the list.

Member Function Documentation

void Puma::CT_DeclList::Linkage ( CT_LinkageSpec l)

Set the linkage specifiers to each declaration in the list.

Parameters:
lThe linkage specifiers node.
static const char* Puma::CT_DeclList::NodeId ( ) [static]

Get the identifier for this node type.

Can be compared with NodeName().

Reimplemented in Puma::CT_Program, Puma::CT_ArgDeclList, Puma::CT_ArgDeclSeq, Puma::CT_ArgNameList, and Puma::CT_MembList.

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

Get the name of the node.

Can be compared with NodeId().

Implements Puma::CTree.

Reimplemented in Puma::CT_Program, Puma::CT_ArgDeclList, Puma::CT_ArgDeclSeq, Puma::CT_ArgNameList, and Puma::CT_MembList.