Puma Reference Manual Puma: Puma::CT_QualName Class Reference



Puma::CT_QualName Class Reference

Tree node representing a qualified name. More...

#include <Puma/CTree.h>

Inheritance diagram for Puma::CT_QualName:
Inheritance graph

List of all members.

Public Member Functions

 CT_QualName (int size=3)
 Constructor.
const char * NodeName () const
 Get the name of the node.
void print (ostream &os) const
 Print the qualified name on the given stream.
CT_SimpleNameName () const
 Get the last name of the qualified name, e.g.
const char * Text () const
 Get the string containing the last name of the qualified name.
CTypeInfoType () const
 Get the type of the last name.
CExprValueValue () const
 Get the value of the last name.
CSemValueSemValue () const
 Get the semantic value object of the last name.
CSemObjectSemObject () const
 Get the semantic information of the last name.
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.

Detailed Description

Tree node representing a qualified name.

Example:

 X::Y::Z 

Constructor & Destructor Documentation

Puma::CT_QualName::CT_QualName ( int  size = 3) [inline]

Constructor.

Parameters:
sizeThe initial number sub-names plus separators.

Member Function Documentation

CT_SimpleName* Puma::CT_QualName::Name ( ) const [inline, virtual]

Get the last name of the qualified name, e.g.

Z of qualified name X::Y::Z.

Reimplemented from Puma::CT_SimpleName.

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

Get the identifier for this node type.

Can be compared with NodeName().

Reimplemented from Puma::CT_SimpleName.

Reimplemented in Puma::CT_RootQualName.

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

Get the name of the node.

Can be compared with NodeId().

Reimplemented from Puma::CT_SimpleName.

Reimplemented in Puma::CT_RootQualName.

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

Own delete operator.

Reimplemented from Puma::CT_SimpleName.

Reimplemented in Puma::CT_RootQualName.

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

Own new operator reusing memory.

Reimplemented from Puma::CT_SimpleName.

Reimplemented in Puma::CT_RootQualName.

void Puma::CT_QualName::print ( ostream &  os) const [virtual]

Print the qualified name on the given stream.

Parameters:
osThe output stream.

Reimplemented from Puma::CT_SimpleName.

CSemObject* Puma::CT_QualName::SemObject ( ) const [inline, virtual]

Get the semantic information of the last name.

Reimplemented from Puma::CT_SimpleName.

CSemValue* Puma::CT_QualName::SemValue ( ) const [inline, virtual]

Get the semantic value object of the last name.

Reimplemented from Puma::CT_SimpleName.

const char* Puma::CT_QualName::Text ( ) const [inline, virtual]

Get the string containing the last name of the qualified name.

Reimplemented from Puma::CT_SimpleName.

CTypeInfo* Puma::CT_QualName::Type ( ) const [inline, virtual]

Get the type of the last name.

Reimplemented from Puma::CT_SimpleName.

CExprValue* Puma::CT_QualName::Value ( ) const [inline, virtual]

Get the value of the last name.

Reimplemented from Puma::CT_SimpleName.