Puma Reference Manual | Puma: Puma::PreInclSemNode Class Reference |
Preprocessor semantic tree node for the #include directive containing the unit to include. More...
#include <Puma/PreTreeNodes.h>
Inherits Puma::PreTree.
Public Member Functions | |
PreInclSemNode (Unit *unit, bool guarded) | |
Constructor. | |
void | accept (PreVisitor &v) |
Part of the tree visitor pattern. | |
Unit * | unit () const |
Get the token unit of the included file. | |
bool | guarded () const |
Check if the inclusion was not done due to an include guard. |
Preprocessor semantic tree node for the #include directive containing the unit to include.
Puma::PreInclSemNode::PreInclSemNode | ( | Unit * | unit, | |
bool | guarded | |||
) | [inline] |
Constructor.
unit | The unit containing the tokens of the include file. | |
guarded | True if the inclusion was not done due to an include guard. |
void Puma::PreInclSemNode::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::PreTree.
bool Puma::PreInclSemNode::guarded | ( | ) | const [inline] |
Check if the inclusion was not done due to an include guard.
Unit* Puma::PreInclSemNode::unit | ( | ) | const [inline] |
Get the token unit of the included file.