Puma Reference Manual Puma: Puma::PreIdentifierList Class Reference



Puma::PreIdentifierList Class Reference

#include <Puma/PreTreeNodes.h>

Inheritance diagram for Puma::PreIdentifierList:

Inheritance graph

List of all members.


Detailed Description

Preprocessor tree node representing the identifier list of a function-like macro definition.

Example:

 a,b,c 

Public Member Functions

 PreIdentifierList (PreTree *id)
 Constructor.
void addSons (PreTree *c, PreTree *id)
 Add two sons, a comma and an identifier.
void accept (PreVisitor &v)
 Part of the tree visitor pattern.

Constructor & Destructor Documentation

Puma::PreIdentifierList::PreIdentifierList ( PreTree id  )  [inline]

Constructor.

Parameters:
id An identifier.


Member Function Documentation

void Puma::PreIdentifierList::addSons ( PreTree c,
PreTree id 
) [inline]

Add two sons, a comma and an identifier.

Parameters:
c A comma.
id An identifier.

void Puma::PreIdentifierList::accept ( PreVisitor v  )  [inline, virtual]

Part of the tree visitor pattern.

Calls the node visiting functions suitable for this node type.

Parameters:
v The visitor object on which to call the visiting functions.

Implements Puma::PreTreeComposite.




Puma Reference Manual. Created on 5 Nov 2008.