Puma Reference Manual Puma: Puma::CSemValue Class Reference



Puma::CSemValue Class Reference

#include <Puma/CSemValue.h>

Inheritance diagram for Puma::CSemValue:

Inheritance graph

List of all members.


Detailed Description

Semantic information object about values in the syntax tree.

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

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.
CExprValuegetValue ()
 Get the semantic information about the value.
CTypeInfogetType ()
 Get the type of the value.

Protected Attributes

CExprValuevalue
 The semantic value information object.
CTypeInfotype
 The type information object.


Constructor & Destructor Documentation

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

Constructor.

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

Destructor.

Frees the type and value.


Member Function Documentation

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.

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.

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

Get the semantic information about the value.

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

Get the type of the value.


Member Data Documentation

The semantic value information object.

The type information object.




Puma Reference Manual. Created on 11 Jul 2008.