Puma Reference Manual Puma: Puma::PreDefineConstantDirective Class Reference



Puma::PreDefineConstantDirective Class Reference

Preprocessor tree node representing a #define directive for constants. More...

#include <Puma/PreTreeNodes.h>

Inherits Puma::PreTreeComposite.

List of all members.

Public Member Functions

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

Detailed Description

Preprocessor tree node representing a #define directive for constants.

Example:

 #define CONSTANT 1 

Constructor & Destructor Documentation

Puma::PreDefineConstantDirective::PreDefineConstantDirective ( PreTree d,
PreTree n,
PreTree v 
) [inline]

Constructor.

Parameters:
d The #define token.
n The name of the constant.
v The constant value.
Puma::PreDefineConstantDirective::PreDefineConstantDirective ( PreTree d,
PreTree tl 
) [inline]

Constructor.

Parameters:
d The #define token.
tl The remaining tokens of the line.

Member Function Documentation

void Puma::PreDefineConstantDirective::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 24 Nov 2009.