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

kdevplatform/language/duchain

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

#include <identifier.h>

Inheritance diagram for KDevelop::IndexedIdentifier:
Inheritance graph
[legend]

Public Member Functions

 IndexedIdentifier ()
 
 IndexedIdentifier (const Identifier &id)
 
 IndexedIdentifier (const IndexedIdentifier &rhs)
 
 IndexedIdentifier (IndexedIdentifier &&rhs) Q_DECL_NOEXCEPT
 
 ~IndexedIdentifier ()
 
Identifier identifier () const
 
unsigned int index () const
 
bool isEmpty () const
 
 operator Identifier () const
 
bool operator!= (const IndexedIdentifier &rhs) const
 
IndexedIdentifier & operator= (const Identifier &id)
 
IndexedIdentifier & operator= (const IndexedIdentifier &rhs)
 
IndexedIdentifier & operator= (IndexedIdentifier &&rhs) Q_DECL_NOEXCEPT
 
bool operator== (const Identifier &id) const
 
bool operator== (const IndexedIdentifier &rhs) const
 

Detailed Description

A helper-class to store an identifier by index in a type-safe way.

The difference to Identifier is that this class only stores the index of an identifier that is in the repository, without any dynamic abilities or access to the contained data.

This class does "disk reference counting"

Warning
Do not use this after QCoreApplication::aboutToQuit() has been emitted, items that are not disk-referenced will be invalid at that point.

Definition at line 55 of file identifier.h.

Constructor & Destructor Documentation

◆ IndexedIdentifier() [1/4]

KDevelop::IndexedIdentifier::IndexedIdentifier ( )

Definition at line 1287 of file identifier.cpp.

◆ IndexedIdentifier() [2/4]

KDevelop::IndexedIdentifier::IndexedIdentifier ( const Identifier &  id)
explicit

Definition at line 1296 of file identifier.cpp.

◆ IndexedIdentifier() [3/4]

KDevelop::IndexedIdentifier::IndexedIdentifier ( const IndexedIdentifier &  rhs)

Definition at line 1305 of file identifier.cpp.

◆ IndexedIdentifier() [4/4]

KDevelop::IndexedIdentifier::IndexedIdentifier ( IndexedIdentifier &&  rhs)

Definition at line 1314 of file identifier.cpp.

◆ ~IndexedIdentifier()

KDevelop::IndexedIdentifier::~IndexedIdentifier ( )

Definition at line 1320 of file identifier.cpp.

Member Function Documentation

◆ identifier()

Identifier KDevelop::IndexedIdentifier::identifier ( ) const

Definition at line 1402 of file identifier.cpp.

◆ index()

unsigned int KDevelop::IndexedIdentifier::index ( ) const
inline

Definition at line 76 of file identifier.h.

◆ isEmpty()

bool KDevelop::IndexedIdentifier::isEmpty ( ) const

Definition at line 181 of file identifier.cpp.

◆ operator Identifier()

KDevelop::IndexedIdentifier::operator Identifier ( ) const

Definition at line 1407 of file identifier.cpp.

◆ operator!=()

bool KDevelop::IndexedIdentifier::operator!= ( const IndexedIdentifier &  rhs) const

Definition at line 1392 of file identifier.cpp.

◆ operator=() [1/3]

IndexedIdentifier & KDevelop::IndexedIdentifier::operator= ( const Identifier &  id)

Definition at line 1328 of file identifier.cpp.

◆ operator=() [2/3]

IndexedIdentifier & KDevelop::IndexedIdentifier::operator= ( const IndexedIdentifier &  rhs)

Definition at line 1371 of file identifier.cpp.

◆ operator=() [3/3]

IndexedIdentifier & KDevelop::IndexedIdentifier::operator= ( IndexedIdentifier &&  rhs)

Definition at line 1344 of file identifier.cpp.

◆ operator==() [1/2]

bool KDevelop::IndexedIdentifier::operator== ( const Identifier &  id) const

Definition at line 1397 of file identifier.cpp.

◆ operator==() [2/2]

bool KDevelop::IndexedIdentifier::operator== ( const IndexedIdentifier &  rhs) const

Definition at line 1387 of file identifier.cpp.


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