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>

Inherits Puma::CTree, and Puma::CSemValue.

Inherited by Puma::CT_AlignofExpr, Puma::CT_Bool, Puma::CT_BracedExpr, Puma::CT_Call, Puma::CT_CastExpr, Puma::CT_Character, Puma::CT_CmpdLiteral, Puma::CT_ConstructExpr, Puma::CT_DeleteExpr, Puma::CT_Float, Puma::CT_GnuStatementExpr, Puma::CT_IfThenExpr, Puma::CT_ImplicitCast, Puma::CT_IndexDesignator, Puma::CT_Integer, Puma::CT_MembDesignator, Puma::CT_MembInit, Puma::CT_MembPtrExpr, Puma::CT_NewExpr, Puma::CT_OffsetofExpr, Puma::CT_SizeofExpr, Puma::CT_StaticCast, Puma::CT_ThrowExpr, Puma::CT_TypeidExpr, and Puma::CT_TypeTraitExpr.

List of all members.

Public Member Functions

const char * NodeName () const
 Get the name of the node.
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.

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.

static const char* Puma::CT_Expression::NodeId (  )  [static]
const char* Puma::CT_Expression::NodeName (  )  const [inline, virtual]
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.




Puma Reference Manual. Created on 11 Sep 2009.