Puma Reference Manual Puma::PreDefineFunctionDirective Class Reference



Puma::PreDefineFunctionDirective Class Reference

Preprocessor tree node representing a #define directive for function-like macros. More...

#include <Puma/PreTreeNodes.h>

Inheritance diagram for Puma::PreDefineFunctionDirective:
Inheritance graph

List of all members.

Public Member Functions

 PreDefineFunctionDirective (PreTree *a, PreTree *b, PreTree *c, PreTree *d, PreTree *e, PreTree *f, PreTree *g, PreTree *h)
 Constructor.
 PreDefineFunctionDirective (PreTree *a, PreTree *b, PreTree *c, PreTree *d, PreTree *e, PreTree *f, PreTree *g)
 Constructor.
 PreDefineFunctionDirective (PreTree *a, PreTree *b, PreTree *c, PreTree *d, PreTree *e, PreTree *f)
 Constructor.
 PreDefineFunctionDirective (PreTree *a, PreTree *b, PreTree *c, PreTree *d, PreTree *e)
 Constructor.
void accept (PreVisitor &v)
 Part of the tree visitor pattern.

Detailed Description

Preprocessor tree node representing a #define directive for function-like macros.

Example:

 #define MUL(a,b) (a * b) 

Constructor & Destructor Documentation

Puma::PreDefineFunctionDirective::PreDefineFunctionDirective ( PreTree a,
PreTree b,
PreTree c,
PreTree d,
PreTree e,
PreTree f,
PreTree g,
PreTree h 
) [inline]

Constructor.

Parameters:
aThe #define token.
bThe macro name.
cLeft parenthesis before the parameter list.
dThe macro parameter list.
eComma before the last parameter.
fThe token '...'.
gRight parenthesis behind the parameter list.
hThe macro body.

Constructor.

Parameters:
aThe #define token.
bThe macro name.
cLeft parenthesis before the parameter list.
dThe macro parameter list.
eThe token '...'.
fRight parenthesis behind the parameter list.
gThe macro body.

Constructor.

Parameters:
aThe #define token.
bThe macro name.
cLeft parenthesis before the parameter list.
dThe macro parameter list.
eRight parenthesis behind the parameter list.
fThe macro body.

Constructor.

Parameters:
aThe #define token.
bThe macro name.
cLeft parenthesis before the parameter list.
dRight parenthesis behind the parameter list.
eThe macro body.

Member Function Documentation

void Puma::PreDefineFunctionDirective::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.