![]() |
PUMA Library Reference Manual
|
#include <Puma/CSemValue.h>
Inheritance diagram for Puma::CSemValue: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. | |
| 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. | |
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
Frees the type and value.
|
inline |
Get the type of the value.
|
inline |
Get the semantic information about the value.
|
inline |
Set the type information object.
Will be freed in the destructor.
| t | The type info object. |
|
inline |
Set the type information object as reference.
Will not be destroyed in the destructor.
| t | The type info object. |
|
inline |
Set the semantic value information object.
Will be freed in the destructor.
| v | The value info object. |
|
inline |
Set the semantic value information object as reference.
Will not be destroyed in the destructor.
| v | The value info object. |
|
protected |
The type information object.
|
protected |
The semantic value information object.