Puma Reference Manual Puma: Puma::CTypeClass Class Reference



Puma::CTypeClass Class Reference

Type of a class. More...

#include <Puma/CTypeInfo.h>

Inherits Puma::CTypeRecord.

List of all members.

Public Member Functions

 CTypeClass (CRecord *c)
 Constructor.
 ~CTypeClass ()
 Destructor.
CClassInfoClassInfo () 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.

Detailed Description

Type of a class.

Examples:

 class X x;    // x has type 'class X'
 struct Y y;   // y has type 'class Y'

Constructor & Destructor Documentation

Puma::CTypeClass::CTypeClass ( CRecord c  )  [inline]

Constructor.

Type has id CTypeInfo::TYPE_CLASS.

Parameters:
c The semantic information about the class.
Puma::CTypeClass::~CTypeClass (  )  [inline]

Destructor.


Member Function Documentation

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.

Parameters:
scope The scope in which to instantiate the template.
Returns:
true if instantiation succeeded.



Puma Reference Manual. Created on 18 Sep 2009.