Puma Reference Manual Puma: Puma::PreIfDirective Class Reference



Puma::PreIfDirective Class Reference

#include <Puma/PreTreeNodes.h>

Inheritance diagram for Puma::PreIfDirective:

Inheritance graph

List of all members.


Detailed Description

Preprocessor tree node representing an #if directive.

Example:

 #if OSTYPE==Linux 

Public Member Functions

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

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 11 Jul 2008.