FunctionDefinitionAST Class Reference

#include <ast.h>

Inheritance diagram for FunctionDefinitionAST:

Inheritance graph
[legend]
Collaboration diagram for FunctionDefinitionAST:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 1481 of file ast.h.

Public Types

enum  

Public Member Functions

 FunctionDefinitionAST ()
ASTfunctionSpecifier () const
void setFunctionSpecifier (AST *functionSpecifier)
ASTstorageSpecifier () const
void setStorageSpecifier (AST *storageSpecifier)
TypeSpecifierASTtypeSpec () const
void setTypeSpec (TypeSpecifierAST *typeSpec)
InitDeclaratorASTinitDeclarator () const
void setInitDeclarator (InitDeclaratorAST *initDeclarator)
StatementListASTfunctionBody () const
void setFunctionBody (StatementListAST *functionBody)
ASTwinDeclSpec () const
void setWinDeclSpec (AST *winDeclSpec)

Private Member Functions

 FunctionDefinitionAST (const FunctionDefinitionAST &source)
void operator= (const FunctionDefinitionAST &source)

Private Attributes

ASTm_functionSpecifier
ASTm_storageSpecifier
TypeSpecifierASTm_typeSpec
InitDeclaratorASTm_initDeclarator
StatementListASTm_functionBody
ASTm_winDeclSpec


Member Enumeration Documentation

anonymous enum

Definition at line 1484 of file ast.h.


Constructor & Destructor Documentation

FunctionDefinitionAST::FunctionDefinitionAST (  ) 

Definition at line 582 of file ast.cpp.

00583     : m_functionSpecifier(0),
00584       m_storageSpecifier(0),
00585       m_typeSpec(0),
00586       m_initDeclarator(0),
00587       m_functionBody(0),
00588       m_winDeclSpec(0)
00589 {
00590 }

FunctionDefinitionAST::FunctionDefinitionAST ( const FunctionDefinitionAST source  )  [private]


Member Function Documentation

AST* FunctionDefinitionAST::functionSpecifier (  )  const [inline]

Definition at line 1489 of file ast.h.

References m_functionSpecifier.

Referenced by TreeWalker::parseFunctionDefinition(), Semantic::parseFunctionDefinition(), and setFunctionSpecifier().

01489 { return m_functionSpecifier; }

void FunctionDefinitionAST::setFunctionSpecifier ( AST functionSpecifier  ) 

Definition at line 592 of file ast.cpp.

References functionSpecifier(), m_functionSpecifier, and AST::setParent().

Referenced by Parser::parseDeclarationInternal().

Here is the call graph for this function:

AST* FunctionDefinitionAST::storageSpecifier (  )  const [inline]

Definition at line 1492 of file ast.h.

References m_storageSpecifier.

Referenced by TreeWalker::parseFunctionDefinition(), Semantic::parseFunctionDefinition(), and setStorageSpecifier().

01492 { return m_storageSpecifier; }

void FunctionDefinitionAST::setStorageSpecifier ( AST storageSpecifier  ) 

Definition at line 598 of file ast.cpp.

References m_storageSpecifier, AST::setParent(), and storageSpecifier().

Referenced by Parser::parseDeclarationInternal().

Here is the call graph for this function:

TypeSpecifierAST* FunctionDefinitionAST::typeSpec (  )  const [inline]

Definition at line 1495 of file ast.h.

References m_typeSpec.

Referenced by TreeWalker::parseFunctionDefinition(), Semantic::parseFunctionDefinition(), and setTypeSpec().

01495 { return m_typeSpec; }

void FunctionDefinitionAST::setTypeSpec ( TypeSpecifierAST typeSpec  ) 

Definition at line 604 of file ast.cpp.

References m_typeSpec, AST::setParent(), and typeSpec().

Referenced by Parser::parseDeclarationInternal().

00605 {
00606     m_typeSpec = typeSpec;
00607     if (m_typeSpec) m_typeSpec->setParent(this);
00608 }

Here is the call graph for this function:

InitDeclaratorAST* FunctionDefinitionAST::initDeclarator (  )  const [inline]

Definition at line 1498 of file ast.h.

References m_initDeclarator.

Referenced by TreeWalker::parseFunctionDefinition(), Semantic::parseFunctionDefinition(), and setInitDeclarator().

01498 { return m_initDeclarator; }

void FunctionDefinitionAST::setInitDeclarator ( InitDeclaratorAST initDeclarator  ) 

Definition at line 610 of file ast.cpp.

References initDeclarator(), m_initDeclarator, and AST::setParent().

Referenced by Parser::parseDeclarationInternal().

00611 {
00612     m_initDeclarator = initDeclarator;
00613     if (m_initDeclarator) m_initDeclarator->setParent(this);
00614 }

Here is the call graph for this function:

StatementListAST* FunctionDefinitionAST::functionBody (  )  const [inline]

Definition at line 1501 of file ast.h.

References m_functionBody.

Referenced by TreeWalker::parseFunctionDefinition(), Semantic::parseFunctionDefinition(), and setFunctionBody().

01501 { return m_functionBody; }

void FunctionDefinitionAST::setFunctionBody ( StatementListAST functionBody  ) 

Definition at line 616 of file ast.cpp.

References functionBody(), m_functionBody, and AST::setParent().

Referenced by Parser::parseDeclarationInternal().

00617 {
00618     m_functionBody = functionBody;
00619     if (m_functionBody) m_functionBody->setParent(this);
00620 }

Here is the call graph for this function:

AST* FunctionDefinitionAST::winDeclSpec (  )  const [inline]

Definition at line 1504 of file ast.h.

References m_winDeclSpec.

Referenced by TreeWalker::parseFunctionDefinition(), and setWinDeclSpec().

01504 { return m_winDeclSpec; }

void FunctionDefinitionAST::setWinDeclSpec ( AST winDeclSpec  ) 

Definition at line 622 of file ast.cpp.

References m_winDeclSpec, AST::setParent(), and winDeclSpec().

Referenced by Parser::parseDeclarationInternal().

00623 {
00624     m_winDeclSpec = winDeclSpec;
00625     if (m_winDeclSpec) m_winDeclSpec->setParent(this);
00626 }

Here is the call graph for this function:

void FunctionDefinitionAST::operator= ( const FunctionDefinitionAST source  )  [private]


Member Data Documentation

AST* FunctionDefinitionAST::m_functionSpecifier [private]

Definition at line 1508 of file ast.h.

Referenced by functionSpecifier(), and setFunctionSpecifier().

AST* FunctionDefinitionAST::m_storageSpecifier [private]

Definition at line 1509 of file ast.h.

Referenced by setStorageSpecifier(), and storageSpecifier().

TypeSpecifierAST* FunctionDefinitionAST::m_typeSpec [private]

Definition at line 1510 of file ast.h.

Referenced by setTypeSpec(), and typeSpec().

InitDeclaratorAST* FunctionDefinitionAST::m_initDeclarator [private]

Definition at line 1511 of file ast.h.

Referenced by initDeclarator(), and setInitDeclarator().

StatementListAST* FunctionDefinitionAST::m_functionBody [private]

Definition at line 1512 of file ast.h.

Referenced by functionBody(), and setFunctionBody().

AST* FunctionDefinitionAST::m_winDeclSpec [private]

Definition at line 1513 of file ast.h.

Referenced by setWinDeclSpec(), and winDeclSpec().


The documentation for this class was generated from the following files:
Generated on Thu Mar 15 15:01:07 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1