Puma Reference Manual | Puma: Puma::CT_SpecialName Class Reference |
Base class for tree nodes representing a special name, like destructor names. More...
#include <Puma/CTree.h>
Inherits Puma::CT_SimpleName.
Inherited by Puma::CT_ConversionName, Puma::CT_DestructorName, Puma::CT_OperatorName, Puma::CT_PrivateName, and Puma::CT_TemplateName.
Public Member Functions | |
~CT_SpecialName () | |
Destructor. | |
const char * | Text () const |
Get the string containing the name. | |
void | Name (const char *n) |
Set the name. | |
void * | operator new (size_t) |
Own new operator reusing memory. | |
void | operator delete (void *) |
Own delete operator. | |
Protected Member Functions | |
CT_SpecialName (int size=1) | |
Constructor. |
Base class for tree nodes representing a special name, like destructor names.
Puma::CT_SpecialName::CT_SpecialName | ( | int | size = 1 |
) | [inline, protected] |
Constructor.
size | The number of sub-names (for qualified names). |
Puma::CT_SpecialName::~CT_SpecialName | ( | ) | [inline] |
Destructor.
Deletes the name string.
void Puma::CT_SpecialName::Name | ( | const char * | n | ) | [inline] |
Set the name.
The name is copied.
n | The name. |
void Puma::CT_SpecialName::operator delete | ( | void * | ) |
Own delete operator.
Reimplemented from Puma::CT_SimpleName.
Reimplemented in Puma::CT_PrivateName, Puma::CT_DestructorName, Puma::CT_TemplateName, Puma::CT_OperatorName, and Puma::CT_ConversionName.
void* Puma::CT_SpecialName::operator new | ( | size_t | ) |
Own new operator reusing memory.
Reimplemented from Puma::CT_SimpleName.
Reimplemented in Puma::CT_PrivateName, Puma::CT_DestructorName, Puma::CT_TemplateName, Puma::CT_OperatorName, and Puma::CT_ConversionName.
const char* Puma::CT_SpecialName::Text | ( | ) | const [inline, virtual] |
Get the string containing the name.
Reimplemented from Puma::CT_SimpleName.
Reimplemented in Puma::CT_TemplateName.