Puma Reference Manual | Puma: Puma::PreConditionalGroup Class Reference |
Preprocessor tree node representing a group of conditional directives. More...
#include <Puma/PreTreeNodes.h>
Inherits Puma::PreTreeComposite.
Public Member Functions | |
PreConditionalGroup (PreTree *i, PreTree *dg, PreTree *ei) | |
Constructor. | |
PreConditionalGroup (PreTree *i, PreTree *e, PreTree *dg, PreTree *ei) | |
Constructor. | |
void | accept (PreVisitor &v) |
Part of the tree visitor pattern. |
Preprocessor tree node representing a group of conditional directives.
Example:
#if ... #elif ... #else ... #endif
Constructor.
i | The #if part. | |
dg | The directive group. | |
ei | The #endif part. |
Puma::PreConditionalGroup::PreConditionalGroup | ( | PreTree * | i, | |
PreTree * | e, | |||
PreTree * | dg, | |||
PreTree * | ei | |||
) | [inline] |
Constructor.
i | The #if part. | |
e | The #elif or #else part. | |
dg | The directive group. | |
ei | The #endif part. |
void Puma::PreConditionalGroup::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.