Puma Reference Manual Puma: Puma::CT_Expression Class Reference



Puma::CT_Expression Class Reference

#include <Puma/CTree.h>

Inheritance diagram for Puma::CT_Expression:

Inheritance graph

List of all members.


Detailed Description

Base class for all expression tree nodes.


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.


Constructor & Destructor Documentation

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

Constructor.


Member Function Documentation

static const char* Puma::CT_Expression::NodeId (  )  [static]

const char* Puma::CT_Expression::NodeName (  )  const [inline, virtual]

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.

Reimplemented in Puma::CT_BracedExpr.

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

Get the value of the expression.

Returns:
The value object or NULL.

Reimplemented from Puma::CTree.

Reimplemented in Puma::CT_BracedExpr.

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.

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

Get this.

Reimplemented from Puma::CTree.




Puma Reference Manual. Created on 11 Jul 2008.