| Puma Reference Manual | Puma: Puma::CT_SimpleName Class Reference |
#include <Puma/CTree.h>

Example:
a
Public Member Functions | |
| CT_SimpleName (CTree *n) | |
| Constructor. | |
| const char * | NodeName () const |
| Get the name of the node. | |
| virtual const char * | Text () const |
| Get the string containing the name. | |
| virtual void | print (ostream &os) const |
| Print the name on the given stream. | |
| virtual CT_SimpleName * | Name () const |
| Get this. | |
| CTypeInfo * | Type () const |
| Get the type of the entity represented by the name. | |
| CExprValue * | Value () const |
| Get the value of the entity represented by the name. | |
| CSemValue * | SemValue () const |
| Get the sematic value information of the name. | |
| CSemObject * | SemObject () const |
| Get the sematic information about the name. | |
| virtual CT_SimpleName * | IsSimpleName () |
| Get this. | |
| 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. | |
Protected Member Functions | |
| CT_SimpleName (int size) | |
| Constructor. | |
| CT_SimpleName (int size, int properties) | |
| Constructor. | |
| 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] |
| 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 of the name.
Reimplemented from Puma::CTree.
Reimplemented in Puma::CT_QualName.
| CSemObject* Puma::CT_SimpleName::SemObject | ( | ) | const [inline, virtual] |
Get the sematic information about the name.
Reimplemented from Puma::CTree.
Reimplemented in Puma::CT_QualName.
| virtual CT_SimpleName* Puma::CT_SimpleName::IsSimpleName | ( | ) | [inline, virtual] |
| 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.