Puma Reference Manual Puma: Puma::PreIfndefDirective Class Reference



Puma::PreIfndefDirective Class Reference

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

#include <Puma/PreTreeNodes.h>

Inherits Puma::PreTreeComposite.

List of all members.

Public Member Functions

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

Detailed Description

Preprocessor tree node representing an #ifndef directive.

Example:

 #ifndef Linux 

Constructor & Destructor Documentation

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

Constructor.

Parameters:
i The #ifndef token.
n The name of the macro.
tl The remaining tokens of the line.
Puma::PreIfndefDirective::PreIfndefDirective ( PreTree i,
PreTree tl 
) [inline]

Constructor.

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

Member Function Documentation

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