language/duchain
KDevelop::IndexedTopDUContext Class Reference
Allows simple indirect access to top-contexts with on-demand loading. More...
#include <indexeditems.h>
Public Types | |
| enum | { DummyMask = 1u<<31u } |
Public Member Functions | |
| IndexedTopDUContext (TopDUContext *context=0) | |
| IndexedTopDUContext (uint index) | |
| TopDUContext * | data () const |
| QPair< ushort, ushort > | dummyData () const |
| uint | index () const |
| bool | isDummy () const |
| bool | isLoaded () const |
| bool | isValid () const |
| bool | operator!= (const IndexedTopDUContext &rhs) const |
| bool | operator< (const IndexedTopDUContext &rhs) const |
| bool | operator== (const IndexedTopDUContext &rhs) const |
| void | setDummyData (ushort first, ushort second) |
| void | setIsDummy (bool isDummy) |
| IndexedString | url () const |
Detailed Description
Allows simple indirect access to top-contexts with on-demand loading.
Definition at line 27 of file indexeditems.h.
Member Function Documentation
| TopDUContext * KDevelop::IndexedTopDUContext::data | ( | ) | const |
Returns the top-context represented by this indexed top-context.
If it wasn't loaded yet, it is loaded. The duchain must be read-locked when this is called! To prevent it from being unloaded, store it into a ReferencedTopDUContext before releasing the duchain lock.
Definition at line 115 of file topducontext.cpp.
| QPair<ushort, ushort> KDevelop::IndexedTopDUContext::dummyData | ( | ) | const [inline] |
The data previously set through setDummyData(). Initially 0.
Definition at line 90 of file indexeditems.h.
| bool KDevelop::IndexedTopDUContext::isLoaded | ( | ) | const |
Returns whether the top-context is currently loaded. If not, it will be loaded when you call data().
Definition at line 101 of file topducontext.cpp.
| void KDevelop::IndexedTopDUContext::setDummyData | ( | ushort | first, | |
| ushort | second | |||
| ) | [inline] |
Allows giving this IndexedTopDUContext some data while logically keeping it invalid.
It will still return zero on index(), data(), etc.
- Parameters:
-
first The highest of this value bit will be removed
Definition at line 84 of file indexeditems.h.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference