Puma Reference Manual Puma: Puma::PreIfndefDirective Class Reference



Puma::PreIfndefDirective Class Reference

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

#include <Puma/PreTreeNodes.h>

Inheritance diagram for Puma::PreIfndefDirective:
Inheritance graph

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:
iThe #ifndef token.
nThe name of the macro.
tlThe remaining tokens of the line.
Puma::PreIfndefDirective::PreIfndefDirective ( PreTree i,
PreTree tl 
) [inline]

Constructor.

Parameters:
iThe #ifndef token.
tlThe 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:
vThe visitor object on which to call the visiting functions.

Implements Puma::PreTreeComposite.