Puma Reference Manual Puma: Puma::PreAssertDirective Class Reference



Puma::PreAssertDirective Class Reference

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

#include <Puma/PreTreeNodes.h>

Inherits Puma::PreTreeComposite.

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

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 18 Sep 2009.