Puma::CT_Intro Class Reference
Tree node representing an introduction advice declaration.
More...
#include <Puma/ACTree.h>
Inherits Puma::CT_List, and Puma::CSemScope.
List of all members.
Public Member Functions |
const char * | NodeName () const |
| Get the name of the node.
|
void | AddNameIndex (int index) |
| Add a name index.
|
void | AddNameIndex (int index_from, int index_to) |
| Add a name index.
|
void | RollbackNameIndex (int pos) |
| Roll back the name index to the given position.
|
int | NameIndices () const |
| Get the name indices.
|
int | NameIndex (int i) const |
| Get the start index of the name with the given index.
|
int | NameToIndex (int i) const |
| Get the end index for the name with the given index.
|
bool | NameQual (int i) const |
| Check if the name at the given index should be replaced by a qualified name.
|
Static Public Member Functions |
static const char * | NodeId () |
| Get the identifier for this node type.
|
Detailed Description
Tree node representing an introduction advice declaration.
Example:
Member Function Documentation
void Puma::CT_Intro::AddNameIndex |
( |
int |
index_from, |
|
|
int |
index_to | |
|
) |
| | [inline] |
Add a name index.
- Parameters:
-
| index_from | Start index. |
| index_to | End index. |
void Puma::CT_Intro::AddNameIndex |
( |
int |
index |
) |
[inline] |
Add a name index.
- Parameters:
-
int Puma::CT_Intro::NameIndex |
( |
int |
i |
) |
const [inline] |
Get the start index of the name with the given index.
- Parameters:
-
int Puma::CT_Intro::NameIndices |
( |
|
) |
const [inline] |
bool Puma::CT_Intro::NameQual |
( |
int |
i |
) |
const [inline] |
Check if the name at the given index should be replaced by a qualified name.
- Parameters:
-
int Puma::CT_Intro::NameToIndex |
( |
int |
i |
) |
const [inline] |
Get the end index for the name with the given index.
- Parameters:
-
static const char* Puma::CT_Intro::NodeId |
( |
|
) |
[static] |
Get the identifier for this node type.
Can be compared with NodeName().
const char* Puma::CT_Intro::NodeName |
( |
|
) |
const [inline, virtual] |
void Puma::CT_Intro::RollbackNameIndex |
( |
int |
pos |
) |
[inline] |
Roll back the name index to the given position.
- Parameters:
-
| pos | The position up to which to roll back. |
Puma Reference Manual. Created on 24 Nov 2009.