![]() |
PUMA Library Reference Manual
|
#include <Puma/PreTreeNodes.h>
Inheritance diagram for Puma::PreDefineFunctionDirective:Preprocessor tree node representing a #define directive for function-like macros.
Example:
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. | |
Public Member Functions inherited from Puma::PreTreeComposite | |
| virtual | ~PreTreeComposite () |
| Destructor. | |
| virtual void | add_son (PreTree *s) |
| Add a son (syntactic child node). | |
| virtual void | replace_son (int n, PreTree *new_s) |
| Replace the n-th son. | |
| virtual PreTree * | son (int n) const |
| Get the n-th son. | |
| virtual int | sons () const |
| Get the number of sons. | |
| virtual void | add_daughter (PreTree *d) |
| Add a daughter (semantic child node). | |
| virtual void | replace_daughter (int n, PreTree *new_d) |
| Replace the n-th daughter. | |
| virtual PreTree * | daughter (int n) const |
| Get the n-th daughter. | |
| virtual int | daughters () const |
| Get the number of daughters. | |
| virtual Token * | startToken () const |
| Get the first token of the syntactic construct represented by the sub-tree. | |
| virtual Token * | endToken () const |
| Get the last token of the syntactic construct represented by the sub-tree. | |
Public Member Functions inherited from Puma::PreTree | |
| virtual | ~PreTree () |
| Destructor. | |
| virtual bool | isLeaf () const |
| Check if the node is a leaf, i.e. | |
Additional Inherited Members | |
Static Public Attributes inherited from Puma::PreTreeComposite | |
| static const int | DYNAMIC = -1 |
| Dynamic number of sons and daughters. | |
Protected Member Functions inherited from Puma::PreTreeComposite | |
| PreTreeComposite (int s, int d) | |
| Constructor. | |
Protected Member Functions inherited from Puma::PreTree | |
| PreTree () | |
| Constructor. | |
|
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. |
|
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. |
|
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. |
|
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. |
|
inlinevirtual |
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.