• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdevelop API Reference
  • KDE Home
  • Contact Us
 

kdevplatform/language/duchain

  • sources
  • kfour-appscomplete
  • kdevelop
  • kdevplatform
  • language
  • duchain
definitions.h
Go to the documentation of this file.
1 /* This file is part of KDevelop
2  Copyright 2008 David Nolden <[email protected]>
3  Copyright 2014 Kevin Funk <[email protected]>
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 version 2 as published by the Free Software Foundation.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18  */
19 
20 #ifndef KDEVPLATFORM_DEFINITIONS_H
21 #define KDEVPLATFORM_DEFINITIONS_H
22 
23 #include <language/languageexport.h>
24 #include <util/kdevvarlengtharray.h>
25 
26 #include <QScopedPointer>
27 
28 class QTextStream;
29 
30 namespace KDevelop {
31 class Declaration;
32 class IndexedDeclaration;
33 class DeclarationId;
34 class TopDUContext;
35 class DefinitionsPrivate;
36 
40 class KDEVPLATFORMLANGUAGE_EXPORT Definitions
41 {
42 public:
44  Definitions();
46  ~Definitions();
50  void addDefinition(const DeclarationId& id, const IndexedDeclaration& definition);
51 
52  void removeDefinition(const DeclarationId& id, const IndexedDeclaration& definition);
53 
55  KDevVarLengthArray<IndexedDeclaration> definitions(const DeclarationId& id) const;
56 
58  void dump(const QTextStream& out);
59 
60 private:
61  const QScopedPointer<class DefinitionsPrivate> d_ptr;
62  Q_DECLARE_PRIVATE(Definitions)
63 };
64 }
65 
66 #endif
KDevelop::Definitions
Global mapping of one Declaration-Ids to multiple Definitions, protected through DUChainLock.
Definition: definitions.h:40
KDevelop::IndexedDeclaration
Represents a declaration only by its global indices.
Definition: indexeddeclaration.h:33
QTextStream
KDevVarLengthArray
KDevelop::DeclarationId
Allows clearly identifying a Declaration.
Definition: declarationid.h:50
QScopedPointer< class DefinitionsPrivate >
KDevelop
Definition: abstractfunctiondeclaration.cpp:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Mar 7 2021 23:29:30 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kdevplatform/language/duchain

Skip menu "kdevplatform/language/duchain"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdevelop API Reference

Skip menu "kdevelop API Reference"
  • kdevplatform
  •   debugger
  •   documentation
  •   interfaces
  •   language
  •     assistant
  •     backgroundparser
  •     checks
  •     classmodel
  •     codecompletion
  •     codegen
  •     duchain
  •     editor
  •     highlighting
  •     interfaces
  •     util
  •   outputview
  •   project
  •   serialization
  •   shell
  •   sublime
  •   tests
  •   util
  •   vcs

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal