Puma Reference Manual Puma: Puma::PreDefineConstantDirective Class Reference



Puma::PreDefineConstantDirective Class Reference

#include <Puma/PreTreeNodes.h>

Inheritance diagram for Puma::PreDefineConstantDirective:

Inheritance graph

List of all members.


Detailed Description

Preprocessor tree node representing a #define directive for constants.

Example:

 #define CONSTANT 1 

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.

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