• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

language/duchain

KDevelop::Importers

KDevelop::Importers Class Reference

Global mapping of Declaration-Ids to contexts that import the associated context, protected through DUChainLock. More...

#include <importers.h>

List of all members.

Public Member Functions

 Importers ()
 ~Importers ()
void addImporter (const DeclarationId &id, const IndexedDUContext &use)
KDevVarLengthArray
< IndexedDUContext > 
importers (const DeclarationId &id) const
void removeImporter (const DeclarationId &id, const IndexedDUContext &use)

Static Public Member Functions

static Importers & self ()

Detailed Description

Global mapping of Declaration-Ids to contexts that import the associated context, protected through DUChainLock.

This is used as an alternative to the local importers list within DUContext, only for indirect imports(Across different files, or with templates).

This has the advantage that imports stay valid even if the imported context is deleted temporarily, and stored top-contexts don't need to be changed just because imports were added.

To retrieve the actual uses, query the duchain for the files.

Definition at line 40 of file importers.h.


Constructor & Destructor Documentation

KDevelop::Importers::Importers (  ) 

Constructor.

Definition at line 115 of file importers.cpp.

KDevelop::Importers::~Importers (  ) 

Destructor.

Definition at line 119 of file importers.cpp.


Member Function Documentation

void KDevelop::Importers::addImporter ( const DeclarationId &  id,
const IndexedDUContext &  use 
)

Adds a top-context to the users-list of the given id.

Definition at line 124 of file importers.cpp.

KDevVarLengthArray< IndexedDUContext > KDevelop::Importers::importers ( const DeclarationId &  id  )  const

Gets the top-contexts of all users assigned to the declaration-id.

Definition at line 173 of file importers.cpp.

void KDevelop::Importers::removeImporter ( const DeclarationId &  id,
const IndexedDUContext &  use 
)

Removes the given top-context from the list of uses.

Definition at line 149 of file importers.cpp.


The documentation for this class was generated from the following files:
  • importers.h
  • importers.cpp

language/duchain

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

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   codegen
  •   duchain
  •   editor
  • outputview
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal