Puma Reference Manual Puma: Puma::CT_ConstCast Class Reference



Puma::CT_ConstCast Class Reference

Tree node representing a const cast. More...

#include <Puma/CTree.h>

Inherits Puma::CT_StaticCast.

List of all members.

Public Member Functions

 CT_ConstCast (CTree *cst, CTree *o, CTree *t, CTree *c, CTree *e)
 Constructor.
const char * NodeName () const
 Get the name of the node.

Static Public Member Functions

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

Detailed Description

Tree node representing a const cast.

Example:

 const_cast<int>(a) 

Constructor & Destructor Documentation

Puma::CT_ConstCast::CT_ConstCast ( CTree cst,
CTree o,
CTree t,
CTree c,
CTree e 
) [inline]

Constructor.

Parameters:
cst The cast operator, i.e. 'const_cast'.
o Left arrow bracket of the type name.
t The type to cast to.
c Right array bracket of the type name.
e The expression to cast.

Member Function Documentation

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

Get the identifier for this node type.

Can be compared with NodeName().

Reimplemented from Puma::CT_StaticCast.

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

Get the name of the node.

Can be compared with NodeId().

Reimplemented from Puma::CT_StaticCast.




Puma Reference Manual. Created on 18 Sep 2009.