Puma Reference Manual Puma::CT_Intro Class Reference



Puma::CT_Intro Class Reference

Tree node representing an introduction advice declaration. More...

#include <Puma/ACTree.h>

Inheritance diagram for Puma::CT_Intro:
Inheritance graph

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:

 around() 

Member Function Documentation

void Puma::CT_Intro::AddNameIndex ( int  index) [inline]

Add a name index.

Parameters:
indexThe name index.
void Puma::CT_Intro::AddNameIndex ( int  index_from,
int  index_to 
) [inline]

Add a name index.

Parameters:
index_fromStart index.
index_toEnd index.
int Puma::CT_Intro::NameIndex ( int  i) const [inline]

Get the start index of the name with the given index.

Parameters:
iThe 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.

Parameters:
iThe index.
int Puma::CT_Intro::NameToIndex ( int  i) const [inline]

Get the end index for the name with the given index.

Parameters:
iThe 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]

Get the name of the node.

Can be compared with NodeId().

Implements Puma::CTree.

void Puma::CT_Intro::RollbackNameIndex ( int  pos) [inline]

Roll back the name index to the given position.

Parameters:
posThe position up to which to roll back.