Puma Reference Manual Puma::PreIdentifierList Class Reference



Puma::PreIdentifierList Class Reference

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

#include <Puma/PreTreeNodes.h>

Inheritance diagram for Puma::PreIdentifierList:
Inheritance graph

List of all members.

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.

Detailed Description

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

Example:

 a,b,c 

Constructor & Destructor Documentation

Constructor.

Parameters:
idAn identifier.

Member Function Documentation

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:
vThe visitor object on which to call the visiting functions.

Implements Puma::PreTreeComposite.

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

Add two sons, a comma and an identifier.

Parameters:
cA comma.
idAn identifier.