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

language/duchain

KDevelop::DUContext::Import

KDevelop::DUContext::Import Struct Reference

Represents an imported parent context. More...

#include <ducontext.h>

List of all members.

Public Member Functions

 Import (const DeclarationId &id, const SimpleCursor &position=SimpleCursor::invalid())
 Import (DUContext *context, const DUContext *importer, const SimpleCursor &position=SimpleCursor::invalid())
DUContext * context (const TopDUContext *topContext) const
IndexedDUContext indexedContext () const
DeclarationId indirectDeclarationId () const
bool isDirect () const
bool operator== (const Import &rhs) const
uint topContextIndex () const

Public Attributes

SimpleCursor position

Detailed Description

Represents an imported parent context.

Definition at line 351 of file ducontext.h.


Constructor & Destructor Documentation

KDevelop::DUContext::Import::Import ( DUContext *  context,
const DUContext *  importer,
const SimpleCursor &  position = SimpleCursor::invalid() 
)

DUChain must be read-locked when this is called.

Definition at line 1918 of file ducontext.cpp.


Member Function Documentation

DUContext * KDevelop::DUContext::Import::context ( const TopDUContext *  topContext  )  const
Parameters:
topContext The top-context from where to start searching. This is important to find the correct imports in the case of templates or similar structures.

Definition at line 1930 of file ducontext.cpp.

DeclarationId KDevelop::DUContext::Import::indirectDeclarationId (  )  const [inline]

If this import is indirect, returns the imported declaration-id.

Definition at line 378 of file ducontext.h.

bool KDevelop::DUContext::Import::isDirect (  )  const

returns true if this import is direct (Not referring to the import by its identifier, but rather directly by its index)

Definition at line 1942 of file ducontext.cpp.


The documentation for this struct was generated from the following files:
  • ducontext.h
  • ducontext.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