• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdevelop API Reference
  • KDE Home
  • Contact Us
 

kdevplatform/language/duchain

  • KDevelop
  • Uses
Public Member Functions | List of all members
KDevelop::Uses Class Reference

#include <uses.h>

Public Member Functions

 Uses ()
 
 ~Uses ()
 
void addUse (const DeclarationId &id, const IndexedTopDUContext &use)
 
bool hasUses (const DeclarationId &id) const
 
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 37 of file uses.h.

Constructor & Destructor Documentation

◆ Uses()

KDevelop::Uses::Uses ( )

Constructor.

Definition at line 129 of file uses.cpp.

◆ ~Uses()

KDevelop::Uses::~Uses ( )
default

Destructor.

Member Function Documentation

◆ addUse()

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 136 of file uses.cpp.

◆ hasUses()

bool KDevelop::Uses::hasUses ( const DeclarationId &  id) const

Checks whether the given DeclarationID is is used.

Definition at line 189 of file uses.cpp.

◆ removeUse()

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

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

Definition at line 163 of file uses.cpp.

◆ uses()

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

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

Definition at line 198 of file uses.cpp.


The documentation for this class was generated from the following files:
  • uses.h
  • uses.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Jan 17 2021 23:35:32 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