Puma Reference Manual | Puma: Puma::PreIncludeDirective Class Reference |
Preprocessor tree node representing an #include or #include_next directive. More...
#include <Puma/PreTreeNodes.h>
Inherits Puma::PreTreeComposite.
Public Member Functions | |
PreIncludeDirective (PreTree *i, PreTree *tl) | |
Constructor. | |
void | accept (PreVisitor &v) |
Part of the tree visitor pattern. | |
int | depth () const |
Get the depth of nested inclusion. | |
void | depth (int d) |
Set the depth of nested inclusion. | |
bool | is_forced () const |
Check if this is a forced include (given by command line). |
Preprocessor tree node representing an #include or #include_next directive.
Example:
#include <stdio.h>
Constructor.
i | The #include or #include_next token. | |
tl | The remaining tokens of the line containing the file to include. |
void Puma::PreIncludeDirective::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.
void Puma::PreIncludeDirective::depth | ( | int | d | ) | [inline] |
Set the depth of nested inclusion.
d | The depth of inclusion. |
int Puma::PreIncludeDirective::depth | ( | ) | const [inline] |
Get the depth of nested inclusion.
bool Puma::PreIncludeDirective::is_forced | ( | ) | const [inline] |
Check if this is a forced include (given by command line).