| Puma Reference Manual | Puma: Puma::CT_ArgDecl Class Reference |
#include <Puma/CTree.h>

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. | |
| CTree * | Son (int n) const |
| Get the n-th son. | |
| CT_DeclSpecSeq * | DeclSpecs () const |
| Get the declaration specifier sequence. | |
| CTree * | Declarator () const |
| Get the function parameter declarator. | |
| CT_ExprList * | Initializer () const |
| Get the default argument. | |
| CT_Token * | Ellipsis () const |
| Get the variable argument list operator. | |
| CSemObject * | SemObject () const |
| Get the semantic information about 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. | |
Constructor.
| dsl | The declaration specifier sequence. | |
| d | The parameter declarator. |
| Puma::CT_ArgDecl::CT_ArgDecl | ( | CTree * | ellipsis | ) | [inline] |
Constructor.
| ellipsis | The variable argument list operator "...". |
| 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] |
| int Puma::CT_ArgDecl::Sons | ( | ) | const [inline, virtual] |
| CTree* Puma::CT_ArgDecl::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_ArgDecl::DeclSpecs | ( | ) | const [inline] |
Get the declaration specifier sequence.
| CTree* Puma::CT_ArgDecl::Declarator | ( | ) | const [inline] |
Get the function parameter declarator.
| CT_ExprList* Puma::CT_ArgDecl::Initializer | ( | ) | const [inline] |
Get the default argument.
| CT_Token* Puma::CT_ArgDecl::Ellipsis | ( | ) | const [inline] |
Get the variable argument list operator.
| CSemObject* Puma::CT_ArgDecl::SemObject | ( | ) | const [inline, virtual] |
| void Puma::CT_ArgDecl::Initializer | ( | CTree * | i | ) | [inline] |
Set the default argument.
Replace a son.
| old_son | The son to replace. | |
| new_son | The new son. |
Reimplemented from Puma::CTree.