Puma Reference Manual Puma: Puma::CSemValue Class Reference



Puma::CSemValue Class Reference

Semantic information object about values in the syntax tree. More...

#include <Puma/CSemValue.h>

Inherited by Puma::CT_AnyExtension, Puma::CT_ArrayDeclarator, Puma::CT_DesignatorSeq, Puma::CT_Expression, Puma::CT_ExprList, Puma::CT_GnuTypeof, Puma::CT_SimpleName, and Puma::CT_String.

List of all members.

Public Member Functions

 CSemValue ()
 Constructor.
virtual ~CSemValue ()
 Destructor.
void setValue (CExprValue *v)
 Set the semantic value information object.
void setValueRef (CExprValue *v)
 Set the semantic value information object as reference.
void setType (CTypeInfo *t)
 Set the type information object.
void setTypeRef (CTypeInfo *t)
 Set the type information object as reference.
CExprValue * getValue ()
 Get the semantic information about the value.
CTypeInfo * getType ()
 Get the type of the value.

Protected Attributes

CExprValue * value
 The semantic value information object.
CTypeInfo * type
 The type information object.

Detailed Description

Semantic information object about values in the syntax tree.

Provides the value and type of an expression or entity (name).


Constructor & Destructor Documentation

Puma::CSemValue::CSemValue (  )  [inline]

Constructor.

Puma::CSemValue::~CSemValue (  )  [inline, virtual]

Destructor.

Frees the type and value.


Member Function Documentation

CTypeInfo* Puma::CSemValue::getType (  )  [inline]

Get the type of the value.

CExprValue* Puma::CSemValue::getValue (  )  [inline]

Get the semantic information about the value.

void Puma::CSemValue::setType ( CTypeInfo *  t  )  [inline]

Set the type information object.

Will be freed in the destructor.

Parameters:
t The type info object.
void Puma::CSemValue::setTypeRef ( CTypeInfo *  t  )  [inline]

Set the type information object as reference.

Will not be destroyed in the destructor.

Parameters:
t The type info object.
void Puma::CSemValue::setValue ( CExprValue *  v  )  [inline]

Set the semantic value information object.

Will be freed in the destructor.

Parameters:
v The value info object.
void Puma::CSemValue::setValueRef ( CExprValue *  v  )  [inline]

Set the semantic value information object as reference.

Will not be destroyed in the destructor.

Parameters:
v The value info object.

Member Data Documentation

The type information object.

The semantic value information object.




Puma Reference Manual. Created on 18 Sep 2009.