language/duchain
KDevelop::DUContext::Import Struct Reference
Represents an imported parent context. More...
#include <ducontext.h>
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:
KDE 4.4 API Reference