kdevplatform/language/duchain
codemodel.cpp
Go to the documentation of this file.
89 CodeModelRepositoryItem(const CodeModelRepositoryItem& rhs, bool dynamic = true) : file(rhs.file)
105 //We only compare the declaration. This allows us implementing a map, although the item-repository
196 void CodeModel::addItem(const IndexedString& file, const IndexedQualifiedIdentifier& id, CodeModelItem::Kind kind)
200 ifDebug(qCDebug(LANGUAGE) << "addItem" << file.str() << id.identifier().toString() << id.index; )
224 DynamicItem<CodeModelRepositoryItem, true> editableItem = d->m_repository.dynamicItemFromIndex(index);
264 void CodeModel::updateItem(const IndexedString& file, const IndexedQualifiedIdentifier& id, CodeModelItem::Kind kind)
285 //Check whether the item is already in the mapped list, else copy the list into the new created item
287 DynamicItem<CodeModelRepositoryItem, true> oldItem = d->m_repository.dynamicItemFromIndex(index);
306 //void CodeModel::removeDeclaration(const QualifiedIdentifier& id, const IndexedDeclaration& declaration)
325 DynamicItem<CodeModelRepositoryItem, true> oldItem = d->m_repository.dynamicItemFromIndex(index);
368 void CodeModel::items(const IndexedString& file, uint& count, const CodeModelItem*& items) const
void addItem(const IndexedString &file, const IndexedQualifiedIdentifier &id, CodeModelItem::Kind kind)
There can only be one item for each identifier.
Definition: codemodel.cpp:196
#define DEFINE_LIST_MEMBER_HASH(container, member, type)
Definition: appendedlist.h:218
A helper-class to store an identifier by index in a type-safe way.
Definition: identifier.h:95
void removeItem(const IndexedString &file, const IndexedQualifiedIdentifier &id)
Definition: codemodel.cpp:305
Definition: codemodel.h:35
~CodeModel()
Persistent store that efficiently holds a list of identifiers and their kind for each declaration-str...
Definition: codemodel.h:66
Definition: abstractfunctiondeclaration.cpp:27
#define START_APPENDED_LISTS(container)
use this if the class does not have a base class that also uses appended lists
Definition: appendedlist.h:250
void updateItem(const IndexedString &file, const IndexedQualifiedIdentifier &id, CodeModelItem::Kind kind)
Updates the kind for the given item.
Definition: codemodel.cpp:264
void items(const IndexedString &file, uint &count, const CodeModelItem *&items) const
Retrieves all the global identifiers for a file-name in an efficient way.
Definition: codemodel.cpp:368
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Apr 16 2021 23:30:10 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Apr 16 2021 23:30:10 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.