Puma Reference Manual | Puma: Puma::CT_QualName Class Reference |
Tree node representing a qualified name. More...
#include <Puma/CTree.h>
Inherits Puma::CT_SimpleName.
Inherited by Puma::CT_RootQualName.
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. |
Tree node representing a qualified name.
Example:
X::Y::Z
Puma::CT_QualName::CT_QualName | ( | int | size = 3 |
) | [inline] |
Constructor.
size | The initial number sub-names plus separators. |
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.
os | The 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.