Puma Reference Manual | Puma::PreDefineFunctionDirective Class Reference |
Preprocessor tree node representing a #define directive for function-like macros. More...
#include <Puma/PreTreeNodes.h>
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. |
Preprocessor tree node representing a #define directive for function-like macros.
Example:
#define MUL(a,b) (a * b)
Puma::PreDefineFunctionDirective::PreDefineFunctionDirective | ( | PreTree * | a, |
PreTree * | b, | ||
PreTree * | c, | ||
PreTree * | d, | ||
PreTree * | e, | ||
PreTree * | f, | ||
PreTree * | g, | ||
PreTree * | h | ||
) | [inline] |
Constructor.
a | The #define token. |
b | The macro name. |
c | Left parenthesis before the parameter list. |
d | The macro parameter list. |
e | Comma before the last parameter. |
f | The token '...'. |
g | Right parenthesis behind the parameter list. |
h | The macro body. |
Puma::PreDefineFunctionDirective::PreDefineFunctionDirective | ( | PreTree * | a, |
PreTree * | b, | ||
PreTree * | c, | ||
PreTree * | d, | ||
PreTree * | e, | ||
PreTree * | f, | ||
PreTree * | g | ||
) | [inline] |
Constructor.
a | The #define token. |
b | The macro name. |
c | Left parenthesis before the parameter list. |
d | The macro parameter list. |
e | The token '...'. |
f | Right parenthesis behind the parameter list. |
g | The macro body. |
Puma::PreDefineFunctionDirective::PreDefineFunctionDirective | ( | PreTree * | a, |
PreTree * | b, | ||
PreTree * | c, | ||
PreTree * | d, | ||
PreTree * | e, | ||
PreTree * | f | ||
) | [inline] |
Constructor.
a | The #define token. |
b | The macro name. |
c | Left parenthesis before the parameter list. |
d | The macro parameter list. |
e | Right parenthesis behind the parameter list. |
f | The macro body. |
Puma::PreDefineFunctionDirective::PreDefineFunctionDirective | ( | PreTree * | a, |
PreTree * | b, | ||
PreTree * | c, | ||
PreTree * | d, | ||
PreTree * | e | ||
) | [inline] |
Constructor.
a | The #define token. |
b | The macro name. |
c | Left parenthesis before the parameter list. |
d | Right parenthesis behind the parameter list. |
e | The macro body. |
void Puma::PreDefineFunctionDirective::accept | ( | PreVisitor & | v | ) | [inline, virtual] |
Part of the tree visitor pattern.
Calls the node visiting functions suitable for this node type.
v | The visitor object on which to call the visiting functions. |
Implements Puma::PreTreeComposite.