Puma Reference Manual | Puma: Puma::CTypeClass Class Reference |
Type of a class. More...
#include <Puma/CTypeInfo.h>
Public Member Functions | |
CTypeClass (CRecord *c) | |
Constructor. | |
~CTypeClass () | |
Destructor. | |
CClassInfo * | ClassInfo () const |
Get the semantic information about the class. | |
bool | instantiate (CStructure *scope) |
If this is the type of a pseudo class instance, create a real instance of the corresponding template. |
Type of a class.
Examples:
class X x; // x has type 'class X' struct Y y; // y has type 'class Y'
Puma::CTypeClass::CTypeClass | ( | CRecord * | c | ) | [inline] |
Constructor.
Type has id CTypeInfo::TYPE_CLASS.
c | The semantic information about the class. |
Puma::CTypeClass::~CTypeClass | ( | ) | [inline] |
Destructor.
CClassInfo* Puma::CTypeClass::ClassInfo | ( | ) | const |
Get the semantic information about the class.
Reimplemented from Puma::CTypeInfo.
bool Puma::CTypeClass::instantiate | ( | CStructure * | scope | ) |
If this is the type of a pseudo class instance, create a real instance of the corresponding template.
scope | The scope in which to instantiate the template. |