Puma Reference Manual Puma::PreAssertDirective Class Reference



Puma::PreAssertDirective Class Reference

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

#include <Puma/PreTreeNodes.h>

Inheritance diagram for Puma::PreAssertDirective:
Inheritance graph

List of all members.

Public Member Functions

 PreAssertDirective (PreTree *a, PreTree *p, PreTree *an)
 Constructor.
 PreAssertDirective (PreTree *a, PreTree *tl)
 Constructor.
void accept (PreVisitor &v)
 Part of the tree visitor pattern.

Detailed Description

Preprocessor tree node representing an #assert directive.

Example:

 #assert OSTYPE (linux) 

Constructor & Destructor Documentation

Constructor.

Parameters:
aThe #assert token.
pThe predicate name.
anThe answer to the predicate.

Constructor.

Parameters:
aThe #assert token.
tlThe remaining tokens of the line.

Member Function Documentation

void Puma::PreAssertDirective::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.