• 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
specializationstore.h
Go to the documentation of this file.
1 /* This file is part of KDevelop
2  Copyright 2008 David Nolden <[email protected]>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17  */
18 
19 #ifndef KDEVPLATFORM_SPECIALIZATIONSTORE_H
20 #define KDEVPLATFORM_SPECIALIZATIONSTORE_H
21 
22 #include <QHash>
23 
24 #include "instantiationinformation.h"
25 
26 #include <language/languageexport.h>
27 
28 namespace KDevelop {
29 class DeclarationId;
30 class Declaration;
31 class DUContext;
32 class TopDUContext;
33 
41 class KDEVPLATFORMLANGUAGE_EXPORT SpecializationStore
42 {
43 public:
44  static SpecializationStore& self();
45 
49  void set(const DeclarationId& declaration, const IndexedInstantiationInformation& specialization);
53  IndexedInstantiationInformation get(const DeclarationId& declaration);
57  void clear(const DeclarationId& declaration);
61  void clear();
62 
73  KDevelop::Declaration* applySpecialization(KDevelop::Declaration* declaration,
74  KDevelop::TopDUContext* source, bool recursive = true);
85  DUContext* applySpecialization(KDevelop::DUContext* context,
86  KDevelop::TopDUContext* source,
87  bool recursive = true);
88 
89 private:
90  SpecializationStore();
91  ~SpecializationStore();
92  QHash<DeclarationId, IndexedInstantiationInformation> m_specializations;
93 };
94 }
95 
96 #endif
KDevelop::Declaration
Represents a single declaration in a definition-use chain.
Definition: declaration.h:51
KDevelop::TopDUContext
The top context in a definition-use chain for one source file.
Definition: topducontext.h:113
instantiationinformation.h
KDevelop::DeclarationId
Allows clearly identifying a Declaration.
Definition: declarationid.h:50
KDevelop::SpecializationStore
This class allows dynamic management of "current" specializations for declarations.
Definition: specializationstore.h:41
KDevelop
Definition: abstractfunctiondeclaration.cpp:27
KDevelop::DUContext
A single context in source code, represented as a node in a directed acyclic graph.
Definition: ducontext.h:72
QHash
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Apr 9 2021 23:29:59 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