| Puma Reference Manual | Puma: Puma::TemplateInstanceUnit Class Reference |
Specialized token unit for C++ template instances. More...
#include <Puma/TemplateInstanceUnit.h>
Inherits Puma::CUnit.
Public Member Functions | |
| TemplateInstanceUnit (ErrorSink &err, Unit *containing, CTemplateInstance *ti) | |
| Constructor. | |
| virtual | ~TemplateInstanceUnit () |
| Destructor. | |
| virtual bool | isTemplateInstance () const |
| Always returns true because this is a unit for a template instance. | |
| void | ContainingUnit (Unit *u) |
| Set the unit containing the point of instantiation. | |
| Unit * | ContainingUnit () const |
| Get the unit containing the point of instantiation. | |
| void | TemplateInstance (CTemplateInstance *ti) |
| Set the template instance information object. | |
| CTemplateInstance * | TemplateInstance () const |
| Get the template instance information object. | |
Specialized token unit for C++ template instances.
Additionally provides information about the template instance and the unit containing its point of instantiation.
| Puma::TemplateInstanceUnit::TemplateInstanceUnit | ( | ErrorSink & | err, | |
| Unit * | containing, | |||
| CTemplateInstance * | ti | |||
| ) | [inline] |
Constructor.
| err | The error stream on which to report errors. | |
| containing | Pointer to the unit containing the point of instantiation. | |
| ti | The template instance information object. |
| virtual Puma::TemplateInstanceUnit::~TemplateInstanceUnit | ( | ) | [inline, virtual] |
Destructor.
| Unit* Puma::TemplateInstanceUnit::ContainingUnit | ( | ) | const [inline] |
Get the unit containing the point of instantiation.
| void Puma::TemplateInstanceUnit::ContainingUnit | ( | Unit * | u | ) | [inline] |
Set the unit containing the point of instantiation.
| u | Pointer to the unit. |
| virtual bool Puma::TemplateInstanceUnit::isTemplateInstance | ( | ) | const [inline, virtual] |
Always returns true because this is a unit for a template instance.
Reimplemented from Puma::Unit.
| CTemplateInstance* Puma::TemplateInstanceUnit::TemplateInstance | ( | ) | const [inline] |
Get the template instance information object.
| void Puma::TemplateInstanceUnit::TemplateInstance | ( | CTemplateInstance * | ti | ) | [inline] |
Set the template instance information object.
| ti | The template instance info. |