Puma Reference Manual Puma: Puma::CT_Condition Class Reference



Puma::CT_Condition Class Reference

Tree node representing a control-statement condition. More...

#include <Puma/CTree.h>

Inherits Puma::CT_Decl, and Puma::CSemObject.

List of all members.

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.
CTreeSon (int n) const
 Get the n-th son.
CT_DeclSpecSeqDeclSpecs () const
 Get the declaration specifier sequence.
CTreeDeclarator () const
 Get the declarator.
CT_ExprListInitializer () const
 Get the initializer of the declaration.
CSemObjectSemObject () 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.

Detailed Description

Tree node representing a control-statement condition.

Example:

 int i = 0 

Constructor & Destructor Documentation

Puma::CT_Condition::CT_Condition ( CTree dsl,
CTree d 
) [inline]

Constructor.

Parameters:
dsl The declaration specifier sequence.
d The variable declarator.

Member Function Documentation

CTree* Puma::CT_Condition::Declarator (  )  const [inline]

Get the declarator.

CT_DeclSpecSeq* Puma::CT_Condition::DeclSpecs (  )  const [inline]

Get the declaration specifier sequence.

void Puma::CT_Condition::Initializer ( CTree i  )  [inline]

Set the initializer.

CT_ExprList* Puma::CT_Condition::Initializer (  )  const [inline]

Get the initializer of the declaration.

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]

Get the name of the node.

Can be compared with NodeId().

Implements Puma::CTree.

void Puma::CT_Condition::ReplaceSon ( CTree old_son,
CTree new_son 
) [inline]

Replace a son.

Parameters:
old_son The son to replace.
new_son The new son.
CSemObject* Puma::CT_Condition::SemObject (  )  const [inline, virtual]

Get the semantic information of the declared object.

Reimplemented from Puma::CTree.

CTree* Puma::CT_Condition::Son ( int  n  )  const [inline, virtual]

Get the n-th son.

Parameters:
n The index of the son.
Returns:
The n-th son or NULL.

Reimplemented from Puma::CTree.

int Puma::CT_Condition::Sons (  )  const [inline, virtual]

Get the number of sons.

Implements Puma::CTree.




Puma Reference Manual. Created on 11 Sep 2009.