• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • TDevelop Interfaces Library
 

TDevelop Interfaces Library

  • lib
  • interfaces
codemodel_treeparser.h
Go to the documentation of this file.
1 /* This file is part of TDevelop
2  Copyright (C) 2003 Roberto Raggi <roberto@kdevelop.org>
3  Copyright (C) 2004 Alexander Dymo <adymo@kdevelop.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 #ifndef CODEMODEL_TREEPARSER_H
21 #define CODEMODEL_TREEPARSER_H
22 
28 class FileModel;
29 class NamespaceModel;
30 class ClassModel;
31 class FunctionModel;
32 class FunctionDefinitionModel;
33 class VariableModel;
34 
44 class CodeModelTreeParser
45 {
46 public:
48  CodeModelTreeParser();
50  virtual ~CodeModelTreeParser();
51 
54  virtual void parseCode(const CodeModel* model);
55 
58  virtual void parseFile(const FileModel* file);
59 
62  virtual void parseNamespace(const NamespaceModel* ns);
63 
66  virtual void parseClass(const ClassModel* klass);
67 
70  virtual void parseFunction(const FunctionModel* fun);
71 
74  virtual void parseFunctionDefinition(const FunctionDefinitionModel* fun);
75 
78  virtual void parseVariable(const VariableModel* var);
79 
80 private:
81  CodeModelTreeParser( const CodeModelTreeParser& source );
82  void operator = ( const CodeModelTreeParser& source );
83 };
84 
85 #endif
CodeModelTreeParser::parseNamespace
virtual void parseNamespace(const NamespaceModel *ns)
Parses recursively all code in the namespace ns.
Definition: codemodel_treeparser.cpp:58
CodeModelTreeParser
Tree parser for a code model.
Definition: codemodel_treeparser.h:44
CodeModelTreeParser::parseFunction
virtual void parseFunction(const FunctionModel *fun)
Parses function (function declaration) fun.
Definition: codemodel_treeparser.cpp:95
CodeModelTreeParser::parseClass
virtual void parseClass(const ClassModel *klass)
Parses recursively all code in the class klass.
Definition: codemodel_treeparser.cpp:78
VariableModel
Variable model.
Definition: codemodel.h:1409
CodeModelTreeParser::parseFunctionDefinition
virtual void parseFunctionDefinition(const FunctionDefinitionModel *fun)
Parses function definition fun.
Definition: codemodel_treeparser.cpp:99
CodeModelTreeParser::parseVariable
virtual void parseVariable(const VariableModel *var)
Parses variable var.
Definition: codemodel_treeparser.cpp:103
FunctionDefinitionModel
Function model.
Definition: codemodel.h:1383
CodeModelTreeParser::parseFile
virtual void parseFile(const FileModel *file)
Parses recursively all code in the file.
Definition: codemodel_treeparser.cpp:38
FileModel
File model.
Definition: codemodel.h:1138
CodeModelTreeParser::~CodeModelTreeParser
virtual ~CodeModelTreeParser()
Destructor.
Definition: codemodel_treeparser.cpp:27
CodeModelTreeParser::CodeModelTreeParser
CodeModelTreeParser()
Constructor.
Definition: codemodel_treeparser.cpp:23
NamespaceModel
Namespace model.
Definition: codemodel.h:1039
CodeModelTreeParser::parseCode
virtual void parseCode(const CodeModel *model)
Parses recursively all code in the model.
Definition: codemodel_treeparser.cpp:31
FunctionModel
Function model.
Definition: codemodel.h:1245
CodeModel
Code Model - a memory symbol store.
Definition: codemodel.h:324
ClassModel
Class model.
Definition: codemodel.h:696

TDevelop Interfaces Library

Skip menu "TDevelop Interfaces Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

TDevelop Interfaces Library

Skip menu "TDevelop Interfaces Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for TDevelop Interfaces Library by doxygen 1.8.13
This website is maintained by Timothy Pearson.