Puma Reference Manual Puma: Puma::PreInclSemNode Class Reference



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.

List of all members.

Public Member Functions

 PreInclSemNode (Unit *unit, bool guarded)
 Constructor.
void accept (PreVisitor &v)
 Part of the tree visitor pattern.
Unitunit () const
 Get the token unit of the included file.
bool guarded () const
 Check if the inclusion was not done due to an include guard.

Detailed Description

Preprocessor semantic tree node for the #include directive containing the unit to include.


Constructor & Destructor Documentation

Puma::PreInclSemNode::PreInclSemNode ( Unit unit,
bool  guarded 
) [inline]

Constructor.

Parameters:
unit The unit containing the tokens of the include file.
guarded True if the inclusion was not done due to an include guard.

Member Function Documentation

void Puma::PreInclSemNode::accept ( PreVisitor v  )  [inline, virtual]

Part of the tree visitor pattern.

Calls the node visiting functions suitable for this node type.

Parameters:
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.




Puma Reference Manual. Created on 24 Nov 2009.