Puma::CT_Token Class Reference

#include <Puma/CTree.h>

Inheritance diagram for Puma::CT_Token:

Inheritance graph

List of all members.


Detailed Description

Tree node representing a single token in the source code.

Public Member Functions

 CT_Token (Token *token, unsigned long int number=0)
const char * NodeName () const
int Sons () const
Tokentoken () const
Tokenend_token () const
CT_Tokentoken_node () const
CT_Tokenend_token_node () const
void Number (unsigned long int number)
unsigned long int Number () const
void * operator new (size_t)
void operator delete (void *)

Static Public Member Functions

static const char * NodeId ()

Constructor & Destructor Documentation

Puma::CT_Token::CT_Token ( Token token,
unsigned long int  number = 0 
) [inline]

Constructor.

Parameters:
token The represented token.
number The token number (a consecutive number).


Member Function Documentation

static const char* Puma::CT_Token::NodeId (  )  [static]

Get the identifier for this node type. Can be compared with NodeName().

const char* Puma::CT_Token::NodeName (  )  const [inline, virtual]

Get the name of the node. Can be compared with NodeId().

Implements Puma::CTree.

int Puma::CT_Token::Sons (  )  const [inline, virtual]

Get the number of sons.

Implements Puma::CTree.

Token* Puma::CT_Token::token (  )  const [inline, virtual]

Get the represented token.

Reimplemented from Puma::CTree.

Token* Puma::CT_Token::end_token (  )  const [inline, virtual]

Get the represented token.

Reimplemented from Puma::CTree.

CT_Token* Puma::CT_Token::token_node (  )  const [inline, virtual]

Get this.

Reimplemented from Puma::CTree.

CT_Token* Puma::CT_Token::end_token_node (  )  const [inline, virtual]

Get this.

Reimplemented from Puma::CTree.

void Puma::CT_Token::Number ( unsigned long int  number  )  [inline]

Set the token number.

Parameters:
number The token number.

unsigned long int Puma::CT_Token::Number (  )  const [inline]

Get the token number. Can be used to indentify this token.

void* Puma::CT_Token::operator new ( size_t   ) 

Own new operator reusing memory.

void Puma::CT_Token::operator delete ( void *   ) 

Own delete operator.


Generated on Sat May 10 03:03:57 2008 for Puma by  doxygen 1.5.5