language/duchain
definitions.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include "../languageexport.h"
00020 #include <util/kdevvarlengtharray.h>
00021
00022 #ifndef DEFINITIONS_H
00023 #define DEFINITIONS_H
00024
00025 namespace KDevelop {
00026
00027 class Declaration;
00028 class IndexedDeclaration;
00029 class DeclarationId;
00030 class TopDUContext;
00031
00035 class KDEVPLATFORMLANGUAGE_EXPORT Definitions {
00036 public:
00038 Definitions();
00040 ~Definitions();
00044 void addDefinition(const DeclarationId& id, const IndexedDeclaration& definition);
00045
00046 void removeDefinition(const DeclarationId& id, const IndexedDeclaration& definition);
00047
00049 KDevVarLengthArray<IndexedDeclaration> definitions(const DeclarationId& id) const;
00050
00051 private:
00052 class DefinitionsPrivate* d;
00053 };
00054 }
00055
00056 #endif
00057