Puma Reference Manual Puma: Puma::PreTreeToken Class Reference



Puma::PreTreeToken Class Reference

Preprocessor syntax tree leaf class representing a token. More...

#include <Puma/PreTreeToken.h>

Inherits Puma::PreTree.

List of all members.

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.

Detailed Description

Preprocessor syntax tree leaf class representing a token.


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::endToken (  )  const [inline, virtual]

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

Reimplemented from 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::token (  )  const [inline]

Get the token represented by this node.




Puma Reference Manual. Created on 24 Nov 2009.