language/duchain
KDevelop::IndexedDeclaration Class Reference
Represents a declaration only by its global indices. More...
#include <indexeditems.h>
Public Member Functions | |
| IndexedDeclaration (uint topContext, uint declarationIndex) | |
| IndexedDeclaration (Declaration *decl=0) | |
| Declaration * | data () const |
| Declaration * | declaration () const |
| QPair< uint, uint > | dummyData () const |
| uint | hash () const |
| IndexedTopDUContext | indexedTopContext () const |
| bool | isDummy () const |
| bool | isValid () const |
| uint | localIndex () const |
| bool | operator< (const IndexedDeclaration &rhs) const |
| bool | operator== (const IndexedDeclaration &rhs) const |
| void | setDummyData (QPair< uint, uint > data) |
| void | setIsDummy (bool dummy) |
| uint | topContextIndex () const |
Detailed Description
Represents a declaration only by its global indices.
Definition at line 146 of file indexeditems.h.
Member Function Documentation
| Declaration* KDevelop::IndexedDeclaration::data | ( | ) | const [inline] |
Duchain must be read locked.
Definition at line 155 of file indexeditems.h.
| Declaration * KDevelop::IndexedDeclaration::declaration | ( | ) | const |
Duchain must be read locked.
Definition at line 253 of file declaration.cpp.
| bool KDevelop::IndexedDeclaration::isValid | ( | ) | const [inline] |
- Warning:
- The duchain needs to be locked when this is called
Definition at line 170 of file indexeditems.h.
| uint KDevelop::IndexedDeclaration::localIndex | ( | ) | const [inline] |
Index of the Declaration within the top context.
Definition at line 180 of file indexeditems.h.
| void KDevelop::IndexedDeclaration::setDummyData | ( | QPair< uint, uint > | data | ) | [inline] |
Do not call this when this object is valid. The first integer loses one bit of precision.
Definition at line 227 of file indexeditems.h.
| 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 205 of file indexeditems.h.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference