Puma Reference Manual Puma::CT_ReintCast Class Reference



Puma::CT_ReintCast Class Reference

Tree node representing a reinterpret cast. More...

#include <Puma/CTree.h>

Inheritance diagram for Puma::CT_ReintCast:
Inheritance graph

List of all members.

Public Member Functions

 CT_ReintCast (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 reinterpret cast.

Example:

 reinterpret_cast<int>(a) 

Constructor & Destructor Documentation

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

Constructor.

Parameters:
cstThe cast operator, i.e. 'reinterpret_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_ReintCast::NodeId ( ) [static]

Get the identifier for this node type.

Can be compared with NodeName().

Reimplemented from Puma::CT_StaticCast.

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

Get the name of the node.

Can be compared with NodeId().

Reimplemented from Puma::CT_StaticCast.