Puma Reference Manual Puma::CT_ArgDecl Class Reference



Puma::CT_ArgDecl Class Reference

Tree node representing the declaration of a function parameter. More...

#include <Puma/CTree.h>

Inheritance diagram for Puma::CT_ArgDecl:
Inheritance graph

List of all members.

Public Member Functions

 CT_ArgDecl (CTree *dsl, CTree *d)
 Constructor.
 CT_ArgDecl (CTree *ellipsis)
 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 function parameter declarator.
CT_ExprListInitializer () const
 Get the default argument.
CT_TokenEllipsis () const
 Get the variable argument list operator.
CSemObjectSemObject () const
 Get the semantic information about the function parameter.
CTypeInfoType () const
 Get the type of the function parameter.
CExprValueValue () const
 Get the value of the function parameter.
CSemValueSemValue () const
 Get the semantic value information of the function parameter.
void Initializer (CTree *i)
 Set the default argument.
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 the declaration of a function parameter.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
dslThe declaration specifier sequence.
dThe parameter declarator.
Puma::CT_ArgDecl::CT_ArgDecl ( CTree ellipsis) [inline]

Constructor.

Parameters:
ellipsisThe variable argument list operator "...".

Member Function Documentation

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

Get the function parameter declarator.

Get the declaration specifier sequence.

CT_Token* Puma::CT_ArgDecl::Ellipsis ( ) const [inline]

Get the variable argument list operator.

Get the default argument.

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

Set the default argument.

static const char* Puma::CT_ArgDecl::NodeId ( ) [static]

Get the identifier for this node type.

Can be compared with NodeName().

const char* Puma::CT_ArgDecl::NodeName ( ) const [inline, virtual]

Get the name of the node.

Can be compared with NodeId().

Implements Puma::CTree.

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

Replace a son.

Parameters:
old_sonThe son to replace.
new_sonThe new son.

Reimplemented from Puma::CTree.

CSemObject* Puma::CT_ArgDecl::SemObject ( ) const [inline, virtual]

Get the semantic information about the function parameter.

Reimplemented from Puma::CTree.

CSemValue* Puma::CT_ArgDecl::SemValue ( ) const [inline, virtual]

Get the semantic value information of the function parameter.

Returns:
The value object or NULL.

Reimplemented from Puma::CTree.

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

Get the n-th son.

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

Reimplemented from Puma::CTree.

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

Get the number of sons.

Implements Puma::CTree.

CTypeInfo* Puma::CT_ArgDecl::Type ( ) const [inline, virtual]

Get the type of the function parameter.

Returns:
The type information object or NULL.

Reimplemented from Puma::CTree.

CExprValue* Puma::CT_ArgDecl::Value ( ) const [inline, virtual]

Get the value of the function parameter.

Returns:
The value object or NULL.

Reimplemented from Puma::CTree.