Puma Reference Manual Puma: Puma::CSemDeclarator Class Reference



Puma::CSemDeclarator Class Reference

Class for analysing an entity declarator. More...

#include <Puma/CSemDeclarator.h>

Inherited by Puma::CCSemDeclarator.

List of all members.

Public Member Functions

 CSemDeclarator (ErrorSink *err, CTypeInfo *t, CTree *d, bool lang_c=true)
 Constructor.
 ~CSemDeclarator ()
 Destructor.
CT_SimpleNameName () const
 Get the name of the declared entity.
CTypeInfoType () const
 Get the resulting type.
void Type (CTypeInfo *t)
 Set the type of the declared entity.

Detailed Description

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).


Constructor & Destructor Documentation

Puma::CSemDeclarator::CSemDeclarator ( ErrorSink err,
CTypeInfo t,
CTree d,
bool  lang_c = true 
)

Constructor.

Parameters:
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.
Puma::CSemDeclarator::~CSemDeclarator (  )  [inline]

Destructor.

Destroys the resulting type.


Member Function Documentation

CT_SimpleName* Puma::CSemDeclarator::Name (  )  const [inline]

Get the name of the declared entity.

void Puma::CSemDeclarator::Type ( CTypeInfo t  )  [inline]

Set the type of the declared entity.

This type will be destroyed in the destructor of this class.

Parameters:
t The type.
CTypeInfo* Puma::CSemDeclarator::Type (  )  const [inline]

Get the resulting type.




Puma Reference Manual. Created on 18 Sep 2009.