Puma Reference Manual Puma::CT_Expression Class Reference



Puma::CT_Expression Class Reference

Base class for all expression tree nodes. More...

#include <Puma/CTree.h>

Inheritance diagram for Puma::CT_Expression:
Inheritance graph

List of all members.

Public Member Functions

 CT_Expression ()
 Constructor.
const char * NodeName () const
 Get the name of the node.
int Sons () const
 Get the number of sons.
CTypeInfoType () const
 Get the type of the expression.
CExprValueValue () const
 Get the value of the expression.
CSemValueSemValue () const
 Get the semantic value information of the expression.
virtual CT_ExpressionIsExpression ()
 Get this.

Static Public Member Functions

static const char * NodeId ()
 Get the identifier for this node type.

Detailed Description

Base class for all expression tree nodes.


Constructor & Destructor Documentation

Constructor.


Member Function Documentation

virtual CT_Expression* Puma::CT_Expression::IsExpression ( ) [inline, virtual]

Get this.

Reimplemented from Puma::CTree.

CSemValue* Puma::CT_Expression::SemValue ( ) const [inline, virtual]

Get the semantic value information of the expression.

Returns:
The value object or NULL.

Reimplemented from Puma::CTree.

Reimplemented in Puma::CT_BracedExpr.

CTypeInfo* Puma::CT_Expression::Type ( ) const [inline, virtual]

Get the type of the expression.

Returns:
The type information object or NULL.

Reimplemented from Puma::CTree.

CExprValue* Puma::CT_Expression::Value ( ) const [inline, virtual]

Get the value of the expression.

Returns:
The value object or NULL.

Reimplemented from Puma::CTree.