Puma Reference Manual | Puma: Puma::CT_ConstCast Class Reference |
#include <Puma/CTree.h>
Example:
const_cast<int>(a)
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. |
Puma::CT_ConstCast::CT_ConstCast | ( | CTree * | cst, | |
CTree * | o, | |||
CTree * | t, | |||
CTree * | c, | |||
CTree * | e | |||
) | [inline] |
Constructor.
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. |
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] |