Puma Reference Manual Puma: Puma::PreTreeToken Class Reference



Puma::PreTreeToken Class Reference

#include <Puma/PreTreeToken.h>

Inheritance diagram for Puma::PreTreeToken:

Inheritance graph

List of all members.


Detailed Description

Preprocessor syntax tree leaf class representing a token.


Public Member Functions

 PreTreeToken (Token *token)
 Constructor.
void accept (PreVisitor &v)
 Part of the tree visitor pattern.
TokenstartToken () const
 Get the first token of the syntactic construct represented by the sub-tree.
TokenendToken () const
 Get the last token of the syntactic construct represented by the sub-tree.
Tokentoken () const
 Get the token represented by this node.


Constructor & Destructor Documentation

Puma::PreTreeToken::PreTreeToken ( Token token  )  [inline]

Constructor.

Parameters:
token The preprocessor token.


Member Function Documentation

void Puma::PreTreeToken::accept ( PreVisitor v  )  [inline, virtual]

Part of the tree visitor pattern.

Calls the node visiting function for PreTreeToken nodes.

Implements Puma::PreTree.

Token* Puma::PreTreeToken::startToken (  )  const [inline, virtual]

Get the first token of the syntactic construct represented by the sub-tree.

Reimplemented from Puma::PreTree.

Token* Puma::PreTreeToken::endToken (  )  const [inline, virtual]

Get the last token of the syntactic construct represented by the sub-tree.

Reimplemented from Puma::PreTree.

Token* Puma::PreTreeToken::token (  )  const [inline]

Get the token represented by this node.




Puma Reference Manual. Created on 5 Nov 2008.