Puma Reference Manual | Puma: Puma::CT_Condition Class Reference |
#include <Puma/CTree.h>
Example:
int i = 0
Public Member Functions | |
CT_Condition (CTree *dsl, CTree *d) | |
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. | |
CT_DeclSpecSeq * | DeclSpecs () const |
Get the declaration specifier sequence. | |
CTree * | Declarator () const |
Get the declarator. | |
CT_ExprList * | Initializer () const |
Get the initializer of the declaration. | |
CSemObject * | SemObject () const |
Get the semantic information of the declared object. | |
void | Initializer (CTree *i) |
Set the initializer. | |
void | ReplaceSon (CTree *old_son, CTree *new_son) |
Replace a son. | |
Static Public Member Functions | |
static const char * | NodeId () |
Get the identifier for this node type. |
Constructor.
dsl | The declaration specifier sequence. | |
d | The variable declarator. |
static const char* Puma::CT_Condition::NodeId | ( | ) | [static] |
Get the identifier for this node type.
Can be compared with NodeName().
const char* Puma::CT_Condition::NodeName | ( | ) | const [inline, virtual] |
int Puma::CT_Condition::Sons | ( | ) | const [inline, virtual] |
CTree* Puma::CT_Condition::Son | ( | int | n | ) | const [inline, virtual] |
Get the n-th son.
n | The index of the son. |
Reimplemented from Puma::CTree.
CT_DeclSpecSeq* Puma::CT_Condition::DeclSpecs | ( | ) | const [inline] |
Get the declaration specifier sequence.
CTree* Puma::CT_Condition::Declarator | ( | ) | const [inline] |
Get the declarator.
CT_ExprList* Puma::CT_Condition::Initializer | ( | ) | const [inline] |
Get the initializer of the declaration.
CSemObject* Puma::CT_Condition::SemObject | ( | ) | const [inline, virtual] |
void Puma::CT_Condition::Initializer | ( | CTree * | i | ) | [inline] |
Set the initializer.
Replace a son.
old_son | The son to replace. | |
new_son | The new son. |
Reimplemented from Puma::CTree.