#include <Puma/CTree.h>
Public Member Functions | |
CT_SimpleName (CTree *n) | |
const char * | NodeName () const |
virtual const char * | Text () const |
virtual void | print (ostream &os) const |
virtual CT_SimpleName * | Name () const |
CTypeInfo * | Type () const |
CExprValue * | Value () const |
CSemValue * | SemValue () const |
CSemObject * | SemObject () const |
virtual CT_SimpleName * | IsSimpleName () |
void * | operator new (size_t) |
void | operator delete (void *) |
Static Public Member Functions | |
static const char * | NodeId () |
Protected Member Functions | |
CT_SimpleName (int size) | |
CT_SimpleName (int size, int properties) |
Puma::CT_SimpleName::CT_SimpleName | ( | int | size | ) | [inline, protected] |
Constructor.
size | The number of sub-names (for qualified names). |
Puma::CT_SimpleName::CT_SimpleName | ( | int | size, | |
int | properties | |||
) | [inline, protected] |
Constructor.
size | The number of sub-names (for qualified names). | |
properties | Additional name list properties (for root qualified names). |
Puma::CT_SimpleName::CT_SimpleName | ( | CTree * | n | ) | [inline] |
Constructor.
n | The sub-tree containing the name. |
static const char* Puma::CT_SimpleName::NodeId | ( | ) | [static] |
Get the identifier for this node type. Can be compared with NodeName().
Reimplemented in Puma::CT_PrivateName, Puma::CT_DestructorName, Puma::CT_TemplateName, Puma::CT_OperatorName, Puma::CT_ConversionName, Puma::CT_QualName, and Puma::CT_RootQualName.
const char* Puma::CT_SimpleName::NodeName | ( | ) | const [inline, virtual] |
Get the name of the node. Can be compared with NodeId().
Implements Puma::CTree.
Reimplemented in Puma::CT_PrivateName, Puma::CT_DestructorName, Puma::CT_TemplateName, Puma::CT_OperatorName, Puma::CT_ConversionName, Puma::CT_QualName, and Puma::CT_RootQualName.
virtual const char* Puma::CT_SimpleName::Text | ( | ) | const [inline, virtual] |
Get the string containing the name.
Reimplemented in Puma::CT_SpecialName, Puma::CT_TemplateName, and Puma::CT_QualName.
virtual void Puma::CT_SimpleName::print | ( | ostream & | os | ) | const [inline, virtual] |
Print the name on the given stream.
os | The output stream. |
Implements Puma::Printable.
Reimplemented in Puma::CT_QualName.
virtual CT_SimpleName* Puma::CT_SimpleName::Name | ( | ) | const [inline, virtual] |
Get this.
Reimplemented in Puma::CT_QualName.
CTypeInfo* Puma::CT_SimpleName::Type | ( | ) | const [inline, virtual] |
Get the type of the entity represented by the name.
Reimplemented from Puma::CTree.
Reimplemented in Puma::CT_QualName.
CExprValue* Puma::CT_SimpleName::Value | ( | ) | const [inline, virtual] |
Get the value of the entity represented by the name.
Reimplemented from Puma::CTree.
Reimplemented in Puma::CT_QualName.
CSemValue* Puma::CT_SimpleName::SemValue | ( | ) | const [inline, virtual] |
Get the sematic value information object.
Reimplemented from Puma::CTree.
Reimplemented in Puma::CT_QualName.
CSemObject* Puma::CT_SimpleName::SemObject | ( | ) | const [inline, virtual] |
Get the sematic information object.
Reimplemented from Puma::CTree.
Reimplemented in Puma::CT_QualName.
virtual CT_SimpleName* Puma::CT_SimpleName::IsSimpleName | ( | ) | [inline, virtual] |
Get this.
Reimplemented from Puma::CTree.
void* Puma::CT_SimpleName::operator new | ( | size_t | ) |
Own new operator reusing memory.
Reimplemented in Puma::CT_SpecialName, Puma::CT_PrivateName, Puma::CT_DestructorName, Puma::CT_TemplateName, Puma::CT_OperatorName, Puma::CT_ConversionName, Puma::CT_QualName, and Puma::CT_RootQualName.
void Puma::CT_SimpleName::operator delete | ( | void * | ) |
Own delete operator.
Reimplemented in Puma::CT_SpecialName, Puma::CT_PrivateName, Puma::CT_DestructorName, Puma::CT_TemplateName, Puma::CT_OperatorName, Puma::CT_ConversionName, Puma::CT_QualName, and Puma::CT_RootQualName.