Puma Reference Manual Puma: Puma::PreInclSemNode Class Reference



Puma::PreInclSemNode Class Reference

#include <Puma/PreTreeNodes.h>

Inheritance diagram for Puma::PreInclSemNode:

Inheritance graph

List of all members.


Detailed Description

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


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.


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.

Unit* Puma::PreInclSemNode::unit (  )  const [inline]

Get the token unit of the included file.

bool Puma::PreInclSemNode::guarded (  )  const [inline]

Check if the inclusion was not done due to an include guard.




Puma Reference Manual. Created on 11 Jul 2008.