Puma Reference Manual | Puma: Puma::CT_Intro Class Reference |
Tree node representing an introduction advice declaration. More...
#include <Puma/ACTree.h>
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. |
Tree node representing an introduction advice declaration.
Example:
around()
void Puma::CT_Intro::AddNameIndex | ( | int | index | ) | [inline] |
Add a name index.
index | The name index. |
void Puma::CT_Intro::AddNameIndex | ( | int | index_from, |
int | index_to | ||
) | [inline] |
Add a name index.
index_from | Start index. |
index_to | End index. |
int Puma::CT_Intro::NameIndex | ( | int | i | ) | const [inline] |
Get the start index of the name with the given index.
i | The index. |
int Puma::CT_Intro::NameIndices | ( | ) | const [inline] |
Get the name indices.
bool Puma::CT_Intro::NameQual | ( | int | i | ) | const [inline] |
Check if the name at the given index should be replaced by a qualified name.
i | The index. |
int Puma::CT_Intro::NameToIndex | ( | int | i | ) | const [inline] |
Get the end index for the name with the given index.
i | The index. |
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.
pos | The position up to which to roll back. |