Puma Reference Manual Puma::CT_Call Class Reference



Puma::CT_Call Class Reference

Tree node representing explicit or implicit function calls including built-in or user-defined functions and overloaded operators. More...

#include <Puma/CTree.h>

Inheritance diagram for Puma::CT_Call:
Inheritance graph

Public Member Functions

const char * NodeName () const
 Get the name of the node. More...
 
CSemObjectSemObject () const
 Get the semantic information of the call. More...
 
CT_CallIsCall ()
 Get this. More...
 
- Public Member Functions inherited from Puma::CT_Expression
 CT_Expression ()
 Constructor. More...
 
int Sons () const
 Get the number of sons. More...
 
CTypeInfoType () const
 Get the type of the expression. More...
 
CExprValueValue () const
 Get the value of the expression. More...
 
CSemValueSemValue () const
 Get the semantic value information of the expression. More...
 
virtual CT_ExpressionIsExpression ()
 Get this. More...
 
- Public Member Functions inherited from Puma::CTree
virtual ~CTree ()
 Destructor. More...
 
virtual CTreeSon (int n) const
 Get the n-th son. More...
 
virtual Tokentoken () const
 Get the first token of the syntactic construct represented by this sub-tree. More...
 
virtual Tokenend_token () const
 Get the last token of the syntactic construct represented by this sub-tree. More...
 
virtual CT_Tokentoken_node () const
 Get the CT_Token node of the first token of the syntactic construct represented by this sub-tree. More...
 
virtual CT_Tokenend_token_node () const
 Get the CT_Token node of the last token of the syntactic construct represented by this sub-tree. More...
 
virtual void ReplaceSon (CTree *old_son, CTree *new_son)
 Replace a son. More...
 
virtual CTreeParent () const
 Get the parent node. More...
 
virtual CSemScopeSemScope () const
 Get the scope opened by the node. More...
 
virtual CT_SimpleNameIsSimpleName ()
 Get a pointer to CT_SimpleName if the current node represents a name. More...
 
virtual CT_StringIsString ()
 Get a pointer to CT_String if the current node represents a string. More...
 
virtual CT_DeclaratorIsDeclarator ()
 Get a pointer to CT_Declarator if the current node represents a declarator. More...
 
virtual CT_StatementIsStatement ()
 Get a pointer to CT_Statement if the current node represents a statement. More...
 
virtual CT_DeclIsDeclaration ()
 Get a pointer to CT_Decl if the current node represents a declaration. More...
 
virtual CT_ListIsList ()
 Get a pointer to CT_List if the current node represents a list. More...
 
virtual CT_DelayedParseIsDelayedParse ()
 Get a pointer to CT_DelayedParse if the current node represents a delayed code fragment. More...
 
bool HasValueNull () const
 Return true if the tree has the constant value 0. More...
 
- Public Member Functions inherited from Puma::CSemValue
 CSemValue ()
 Constructor. More...
 
virtual ~CSemValue ()
 Destructor. More...
 
void setValue (CExprValue *v)
 Set the semantic value information object. More...
 
void setValueRef (CExprValue *v)
 Set the semantic value information object as reference. More...
 
void setType (CTypeInfo *t)
 Set the type information object. More...
 
void setTypeRef (CTypeInfo *t)
 Set the type information object as reference. More...
 
CExprValuegetValue ()
 Get the semantic information about the value. More...
 
CTypeInfogetType ()
 Get the type of the value. More...
 
- Public Member Functions inherited from Puma::CSemObject
 CSemObject ()
 Constructor. More...
 
void Object (CObjectInfo *o)
 Set the semantic information object for the entity. More...
 
CObjectInfoObject () const
 Get the semantic information object. More...
 

Static Public Member Functions

static const char * NodeId ()
 Get the identifier for this node type. More...
 
- Static Public Member Functions inherited from Puma::CT_Expression
static const char * NodeId ()
 Get the identifier for this node type. More...
 

Protected Member Functions

 CT_Call ()
 Constructor. More...
 

Additional Inherited Members

- Static Public Attributes inherited from Puma::CTree
static int alloc
 
static int release
 
- Protected Attributes inherited from Puma::CSemValue
CExprValuevalue
 The semantic value information object. More...
 
CTypeInfotype
 The type information object. More...
 

Detailed Description

Tree node representing explicit or implicit function calls including built-in or user-defined functions and overloaded operators.

Constructor & Destructor Documentation

Puma::CT_Call::CT_Call ( )
inlineprotected

Constructor.

Member Function Documentation

CT_Call* Puma::CT_Call::IsCall ( )
inlinevirtual

Get this.

Reimplemented from Puma::CTree.

static const char* Puma::CT_Call::NodeId ( )
static

Get the identifier for this node type.

Can be compared with NodeName().

const char* Puma::CT_Call::NodeName ( ) const
inlinevirtual
CSemObject* Puma::CT_Call::SemObject ( ) const
inlinevirtual

Get the semantic information of the call.

Reimplemented from Puma::CTree.




Puma Reference Manual. Created on Mon Oct 21 2013.