Puma Reference Manual Puma::PreConditionalGroup Class Reference



Puma::PreConditionalGroup Class Reference

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

#include <Puma/PreTreeNodes.h>

Inheritance diagram for Puma::PreConditionalGroup:
Inheritance graph

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

Constructor.

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

Constructor.

Parameters:
iThe #if part.
eThe #elif or #else part.
dgThe directive group.
eiThe #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:
vThe visitor object on which to call the visiting functions.

Implements Puma::PreTreeComposite.