Puma Reference Manual Puma: Puma::PreIfdefDirective Class Reference



Puma::PreIfdefDirective Class Reference

#include <Puma/PreTreeNodes.h>

Inheritance diagram for Puma::PreIfdefDirective:

Inheritance graph

List of all members.


Detailed Description

Preprocessor tree node representing an #ifdef directive.

Example:

 #ifdef Linux 

Public Member Functions

 PreIfdefDirective (PreTree *i, PreTree *n, PreTree *tl)
 Constructor.
 PreIfdefDirective (PreTree *i, PreTree *tl)
 Constructor.
void accept (PreVisitor &v)
 Part of the tree visitor pattern.

Constructor & Destructor Documentation

Puma::PreIfdefDirective::PreIfdefDirective ( PreTree i,
PreTree n,
PreTree tl 
) [inline]

Constructor.

Parameters:
i The #ifdef token.
n The name of the macro.
tl The remaining tokens of the line.

Puma::PreIfdefDirective::PreIfdefDirective ( PreTree i,
PreTree tl 
) [inline]

Constructor.

Parameters:
i The #ifdef token.
tl The remaining tokens of the line.


Member Function Documentation

void Puma::PreIfdefDirective::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 5 Nov 2008.