Puma Reference Manual Puma::CSemValue Class Reference



Puma::CSemValue Class Reference

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

#include <Puma/CSemValue.h>

Inheritance diagram for Puma::CSemValue:
Inheritance graph

Public Member Functions

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

Protected Attributes

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

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 ( )
inlinevirtual

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
tThe 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
tThe type info object.
void Puma::CSemValue::setValue ( CExprValue *  v)
inline

Set the semantic value information object.

Will be freed in the destructor.

Parameters
vThe 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
vThe value info object.

Member Data Documentation

CTypeInfo* Puma::CSemValue::type
protected

The type information object.

CExprValue* Puma::CSemValue::value
protected

The semantic value information object.




Puma Reference Manual. Created on Fri Aug 28 2015.