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

language/duchain

KDevelop::IndexedDeclaration

KDevelop::IndexedDeclaration Class Reference

Represents a declaration only by its global indices. More...

#include <indexeditems.h>

List of all members.

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