Puma Reference Manual Puma: Puma::PreAssertDirective Class Reference



Puma::PreAssertDirective Class Reference

#include <Puma/PreTreeNodes.h>

Inheritance diagram for Puma::PreAssertDirective:

Inheritance graph

List of all members.


Detailed Description

Preprocessor tree node representing an #assert directive.

Example:

 #assert OSTYPE (linux) 

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.

Constructor & Destructor Documentation

Puma::PreAssertDirective::PreAssertDirective ( PreTree a,
PreTree p,
PreTree an 
) [inline]

Constructor.

Parameters:
a The #assert token.
p The predicate name.
an The answer to the predicate.

Puma::PreAssertDirective::PreAssertDirective ( PreTree a,
PreTree tl 
) [inline]

Constructor.

Parameters:
a The #assert token.
tl The 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:
v The visitor object on which to call the visiting functions.

Implements Puma::PreTreeComposite.




Puma Reference Manual. Created on 11 Jul 2008.