Puma Reference Manual Puma: 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

const char * NodeName () const
 Get the name of the node.
CTypeInfo * Type () const
 Get the type of the expression.
CExprValue * Value () const
 Get the value of the expression.
CSemValue * SemValue () const
 Get the semantic value information of the expression.
virtual CT_Expression * IsExpression ()
 Get this.

Static Public Member Functions

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

Protected Member Functions

 CT_Expression ()
 Constructor.

Detailed Description

Base class for all expression tree nodes.


Constructor & Destructor Documentation

Puma::CT_Expression::CT_Expression ( ) [inline, protected]

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.