kdevplatform/language/duchain
#include <identifier.h>

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]
|
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()
|
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:
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Apr 14 2021 23:30:27 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.