Puma Reference Manual | Puma::CT_DeleteExpr Class Reference |
Tree node representing a delete expression. More...
#include <Puma/CTree.h>
Public Member Functions | |
CT_DeleteExpr (CTree *op, CTree *e) | |
Constructor. | |
const char * | NodeName () const |
Get the name of the node. | |
int | Sons () const |
Get the number of sons. | |
CTree * | Son (int n) const |
Get the n-th son. | |
void | ReplaceSon (CTree *old_son, CTree *new_son) |
Replace a son. | |
CTree * | Expr () const |
Get the expression. | |
CT_SimpleName * | OperName () const |
Get the operator name, i.e. | |
CSemObject * | SemObject () const |
Get the semantic information. | |
Static Public Member Functions | |
static const char * | NodeId () |
Get the identifier for this node type. |
Tree node representing a delete expression.
Example:
delete a
Puma::CT_DeleteExpr::CT_DeleteExpr | ( | CTree * | op, |
CTree * | e | ||
) | [inline] |
Constructor.
op | The delete operator. |
e | The expression representing the object to delete. |
CTree* Puma::CT_DeleteExpr::Expr | ( | ) | const [inline] |
Get the expression.
static const char* Puma::CT_DeleteExpr::NodeId | ( | ) | [static] |
Get the identifier for this node type.
Can be compared with NodeName().
Reimplemented from Puma::CT_Expression.
const char* Puma::CT_DeleteExpr::NodeName | ( | ) | const [inline, virtual] |
CT_SimpleName* Puma::CT_DeleteExpr::OperName | ( | ) | const [inline] |
Get the operator name, i.e.
'delete' or 'delete[]'.
void Puma::CT_DeleteExpr::ReplaceSon | ( | CTree * | old_son, |
CTree * | new_son | ||
) | [inline, virtual] |
Replace a son.
old_son | The son to replace. |
new_son | The new son. |
Reimplemented from Puma::CTree.
CSemObject* Puma::CT_DeleteExpr::SemObject | ( | ) | const [inline, virtual] |
Get the semantic information.
Reimplemented from Puma::CTree.
CTree* Puma::CT_DeleteExpr::Son | ( | int | n | ) | const [inline, virtual] |
Get the n-th son.
n | The index of the son. |
Reimplemented from Puma::CTree.
int Puma::CT_DeleteExpr::Sons | ( | ) | const [inline, virtual] |
Get the number of sons.
Reimplemented from Puma::CT_Expression.