| Puma Reference Manual | Puma: Puma::PreIncludeDirective Class Reference |
#include <Puma/PreTreeNodes.h>

Example:
#include <stdio.h>
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). | |
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.
| int Puma::PreIncludeDirective::depth | ( | ) | const [inline] |
Get the depth of nested inclusion.
| void Puma::PreIncludeDirective::depth | ( | int | d | ) | [inline] |
Set the depth of nested inclusion.
| d | The depth of inclusion. |
| bool Puma::PreIncludeDirective::is_forced | ( | ) | const [inline] |
Check if this is a forced include (given by command line).