Puma Reference Manual | Puma::CT_DynamicCast Class Reference |
Tree node representing a dynamic cast. More...
#include <Puma/CTree.h>
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. |
Tree node representing a dynamic cast.
Example:
dynamic_cast<int>(a)
Puma::CT_DynamicCast::CT_DynamicCast | ( | CTree * | cst, |
CTree * | o, | ||
CTree * | t, | ||
CTree * | c, | ||
CTree * | e | ||
) | [inline] |
Constructor.
cst | The cast operator, i.e. 'dynamic_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_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] |