| Puma Reference Manual | Puma: Puma::CT_Token Class Reference |
#include <Puma/CTree.h>

Public Member Functions | |
| CT_Token (Token *token, unsigned long int number=0) | |
| Constructor. | |
| const char * | NodeName () const |
| Get the name of the node. | |
| int | Sons () const |
| Get the number of sons. | |
| Token * | token () const |
| Get the represented token. | |
| Token * | end_token () const |
| Get the represented token. | |
| CT_Token * | token_node () const |
| Get this. | |
| CT_Token * | end_token_node () const |
| Get this. | |
| void | Number (unsigned long int number) |
| Set the token number. | |
| unsigned long int | Number () const |
| Get the token number. | |
| void * | operator new (size_t) |
| Own new operator reusing memory. | |
| void | operator delete (void *) |
| Own delete operator. | |
Static Public Member Functions | |
| static const char * | NodeId () |
| Get the identifier for this node type. | |
| Puma::CT_Token::CT_Token | ( | Token * | token, | |
| unsigned long int | number = 0 | |||
| ) | [inline] |
Constructor.
| token | The represented token. | |
| number | The token number (a consecutive number). |
| 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] |
| int Puma::CT_Token::Sons | ( | ) | const [inline, virtual] |
| Token* Puma::CT_Token::token | ( | ) | const [inline, virtual] |
| Token* Puma::CT_Token::end_token | ( | ) | const [inline, virtual] |
| CT_Token* Puma::CT_Token::token_node | ( | ) | const [inline, virtual] |
| CT_Token* Puma::CT_Token::end_token_node | ( | ) | const [inline, virtual] |
| void Puma::CT_Token::Number | ( | unsigned long int | number | ) | [inline] |
Set the token number.
| 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.