Puma Reference Manual Puma: Puma::PreConditionalGroup Class Reference



Puma::PreConditionalGroup Class Reference

Preprocessor tree node representing a group of conditional directives. More...

#include <Puma/PreTreeNodes.h>

Inherits Puma::PreTreeComposite.

List of all members.

Public Member Functions

 PreConditionalGroup (PreTree *i, PreTree *dg, PreTree *ei)
 Constructor.
 PreConditionalGroup (PreTree *i, PreTree *e, PreTree *dg, PreTree *ei)
 Constructor.
void accept (PreVisitor &v)
 Part of the tree visitor pattern.

Detailed Description

Preprocessor tree node representing a group of conditional directives.

Example:

 #if ... #elif ... #else ... #endif 

Constructor & Destructor Documentation

Puma::PreConditionalGroup::PreConditionalGroup ( PreTree i,
PreTree dg,
PreTree ei 
) [inline]

Constructor.

Parameters:
i The #if part.
dg The directive group.
ei The #endif part.
Puma::PreConditionalGroup::PreConditionalGroup ( PreTree i,
PreTree e,
PreTree dg,
PreTree ei 
) [inline]

Constructor.

Parameters:
i The #if part.
e The #elif or #else part.
dg The directive group.
ei The #endif part.

Member Function Documentation

void Puma::PreConditionalGroup::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::PreTreeComposite.




Puma Reference Manual. Created on 24 Nov 2009.