• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

language/duchain

KDevelop::IndexedTopDUContext

KDevelop::IndexedTopDUContext Class Reference

Allows simple indirect access to top-contexts with on-demand loading. More...

#include <indexeditems.h>

List of all members.

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:
  • indexeditems.h
  • topducontext.cpp

language/duchain

Skip menu "language/duchain"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   codegen
  •   duchain
  •   editor
  • outputview
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal