language/duchain
KDevelop::IndexedDUContext Class Reference
Represents a context only by its global indices. More...
#include <ducontext.h>
Public Member Functions | |
| IndexedDUContext (uint topContext=0, uint contextIndex=0) | |
| IndexedDUContext (DUContext *decl) | |
| DUContext * | context () const |
| DUContext * | data () const |
| QPair< uint, uint > | dummyData () const |
| uint | hash () const |
| IndexedTopDUContext | indexedTopContext () const |
| bool | isDummy () const |
| bool | isValid () const |
| uint | localIndex () const |
| bool | operator< (const IndexedDUContext &rhs) const |
| bool | operator== (const IndexedDUContext &rhs) const |
| void | setDummyData (QPair< uint, uint > data) |
| void | setIsDummy (bool dummy) |
| uint | topContextIndex () const |
Detailed Description
Represents a context only by its global indices.
Definition at line 54 of file ducontext.h.
Member Function Documentation
| DUContext * KDevelop::IndexedDUContext::context | ( | ) | const |
Duchain must be read locked.
Definition at line 202 of file ducontext.cpp.
| DUContext* KDevelop::IndexedDUContext::data | ( | ) | const [inline] |
Duchain must be read locked.
Definition at line 63 of file ducontext.h.
| void KDevelop::IndexedDUContext::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 123 of file ducontext.h.
| void KDevelop::IndexedDUContext::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 101 of file ducontext.h.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference