Puma Reference Manual Puma: Puma::CT_QualName Class Reference



Puma::CT_QualName Class Reference

#include <Puma/CTree.h>

Inheritance diagram for Puma::CT_QualName:

Inheritance graph

List of all members.


Detailed Description

Tree node representing a qualified name.

Example:

 X::Y::Z 

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_SimpleName * Name () 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.
CTypeInfo * Type () const
 Get the type of the last name.
CExprValue * Value () const
 Get the value of the last name.
CSemValue * SemValue () const
 Get the semantic value object of the last name.
CSemObject * SemObject () 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.

Constructor & Destructor Documentation

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

Constructor.

Parameters:
size The initial number sub-names plus separators.


Member Function Documentation

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::print ( ostream &  os  )  const [virtual]

Print the qualified name on the given stream.

Parameters:
os The output stream.

Reimplemented from Puma::CT_SimpleName.

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.

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.

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

Get the semantic value object of the last name.

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.

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::operator delete ( void *   ) 

Own delete operator.

Reimplemented from Puma::CT_SimpleName.

Reimplemented in Puma::CT_RootQualName.




Puma Reference Manual. Created on 11 Jul 2008.