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

language/duchain

KDevelop::Uses

KDevelop::Uses Class Reference

Global mapping of Declaration-Ids to top-contexts, protected through DUChainLock. More...

#include <uses.h>

List of all members.

Public Member Functions

 Uses ()
 ~Uses ()
void addUse (const DeclarationId &id, const IndexedTopDUContext &use)
void removeUse (const DeclarationId &id, const IndexedTopDUContext &use)
KDevVarLengthArray
< IndexedTopDUContext > 
uses (const DeclarationId &id) const

Detailed Description

Global mapping of Declaration-Ids to top-contexts, protected through DUChainLock.

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

Definition at line 36 of file uses.h.


Constructor & Destructor Documentation

KDevelop::Uses::Uses (  ) 

Constructor.

Definition at line 115 of file uses.cpp.

KDevelop::Uses::~Uses (  ) 

Destructor.

Definition at line 119 of file uses.cpp.


Member Function Documentation

void KDevelop::Uses::addUse ( const DeclarationId &  id,
const IndexedTopDUContext &  use 
)

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

Definition at line 124 of file uses.cpp.

void KDevelop::Uses::removeUse ( const DeclarationId &  id,
const IndexedTopDUContext &  use 
)

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

Definition at line 149 of file uses.cpp.

KDevVarLengthArray< IndexedTopDUContext > KDevelop::Uses::uses ( const DeclarationId &  id  )  const

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

Definition at line 173 of file uses.cpp.


The documentation for this class was generated from the following files:
  • uses.h
  • uses.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