Puma Reference Manual Puma::PreDefineConstantDirective Class Reference



Puma::PreDefineConstantDirective Class Reference

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

#include <Puma/PreTreeNodes.h>

Inheritance diagram for Puma::PreDefineConstantDirective:
Inheritance graph

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

Constructor.

Parameters:
dThe #define token.
nThe name of the constant.
vThe constant value.

Constructor.

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

Implements Puma::PreTreeComposite.