Puma Reference Manual Puma: Puma::PreIfDirective Class Reference



Puma::PreIfDirective Class Reference

Preprocessor tree node representing an #if directive. More...

#include <Puma/PreTreeNodes.h>

Inherits Puma::PreTreeComposite.

List of all members.

Public Member Functions

 PreIfDirective (PreTree *i, PreTree *c)
 Constructor.
void accept (PreVisitor &v)
 Part of the tree visitor pattern.

Detailed Description

Preprocessor tree node representing an #if directive.

Example:

 #if OSTYPE==Linux 

Constructor & Destructor Documentation

Puma::PreIfDirective::PreIfDirective ( PreTree i,
PreTree c 
) [inline]

Constructor.

Parameters:
i The #if token.
c The condition.

Member Function Documentation

void Puma::PreIfDirective::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 18 Sep 2009.