#include <indexeddeclaration.h>
Represents a declaration only by its global indices.
Definition at line 33 of file indexeddeclaration.h.
◆ IndexedDeclaration() [1/2]
IndexedDeclaration::IndexedDeclaration |
( |
const Declaration * |
decl = nullptr | ) |
|
◆ IndexedDeclaration() [2/2]
IndexedDeclaration::IndexedDeclaration |
( |
uint |
topContext, |
|
|
uint |
declarationIndex |
|
) |
| |
◆ data()
Declaration* KDevelop::IndexedDeclaration::data |
( |
| ) |
const |
|
inline |
◆ declaration()
Declaration * IndexedDeclaration::declaration |
( |
| ) |
const |
◆ dummyData()
QPair<uint, uint> KDevelop::IndexedDeclaration::dummyData |
( |
| ) |
const |
|
inline |
◆ hash()
uint KDevelop::IndexedDeclaration::hash |
( |
| ) |
const |
|
inline |
◆ indexedTopContext()
◆ isDummy()
bool KDevelop::IndexedDeclaration::isDummy |
( |
| ) |
const |
|
inline |
◆ isValid()
bool KDevelop::IndexedDeclaration::isValid |
( |
| ) |
const |
|
inline |
◆ localIndex()
uint KDevelop::IndexedDeclaration::localIndex |
( |
| ) |
const |
|
inline |
◆ operator<()
◆ operator==()
◆ setDummyData()
void KDevelop::IndexedDeclaration::setDummyData |
( |
QPair< uint, uint > |
data | ) |
|
|
inline |
- Warning
- Do not call this when this object is valid.
The first integer loses one bit of precision.
Definition at line 140 of file indexeddeclaration.h.
◆ setIsDummy()
void KDevelop::IndexedDeclaration::setIsDummy |
( |
bool |
dummy | ) |
|
|
inline |
The following functions allow storing 2 integers in this object and marking it as a dummy, which makes the isValid() function always return false for this object, and use the integers for other purposes.
Clears the contained data
Definition at line 111 of file indexeddeclaration.h.
◆ topContextIndex()
uint KDevelop::IndexedDeclaration::topContextIndex |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
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.