|  | PUMA Library Reference Manual
    | 
#include <Puma/CSemDeclarator.h>
 Inheritance diagram for Puma::CSemDeclarator:
 Inheritance diagram for Puma::CSemDeclarator:Class for analysing an entity declarator.
The result of the analysis is a type and the name of the declared entity (name and type of function, object, etc).
| Public Member Functions | |
| CSemDeclarator (ErrorSink *err, CTypeInfo *t, CTree *d, bool lang_c=true) | |
| Constructor. | |
| ~CSemDeclarator () | |
| Destructor. | |
| CT_SimpleName * | Name () const | 
| Get the name of the declared entity. | |
| CTypeInfo * | Type () const | 
| Get the resulting type. | |
| void | Type (CTypeInfo *t) | 
| Set the type of the declared entity. | |
| Puma::CSemDeclarator::CSemDeclarator | ( | ErrorSink * | err, | 
| CTypeInfo * | t, | ||
| CTree * | d, | ||
| bool | lang_c = true ) | 
Constructor.
| err | The error stream on which to report errors. | 
| t | The base type of the declared entity (function return type, data type, etc). | 
| d | The declarator to analyse. | 
| lang_c | Support language C. | 
| 
 | inline | 
Destructor.
Destroys the resulting type.
| 
 | inline | 
Get the name of the declared entity.
| 
 | inline | 
Get the resulting type.
| 
 | inline | 
Set the type of the declared entity.
This type will be destroyed in the destructor of this class.
| t | The type. |