Puma Reference Manual Puma::CT_DynamicCast Class Reference



Puma::CT_DynamicCast Class Reference

Tree node representing a dynamic cast. More...

#include <Puma/CTree.h>

Inheritance diagram for Puma::CT_DynamicCast:
Inheritance graph

List of all members.

Public Member Functions

 CT_DynamicCast (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 dynamic cast.

Example:

 dynamic_cast<int>(a) 

Constructor & Destructor Documentation

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

Constructor.

Parameters:
cstThe cast operator, i.e. 'dynamic_cast'.
oLeft arrow bracket of the type name.
tThe type to cast to.
cRight array bracket of the type name.
eThe expression to cast.

Member Function Documentation

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

Get the identifier for this node type.

Can be compared with NodeName().

Reimplemented from Puma::CT_StaticCast.

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

Get the name of the node.

Can be compared with NodeId().

Reimplemented from Puma::CT_StaticCast.