kdevplatform/language/duchain
#include <localindexeddeclaration.h>
Public Member Functions | |
LocalIndexedDeclaration (Declaration *decl=nullptr) | |
LocalIndexedDeclaration (uint declarationIndex) | |
Declaration * | data (TopDUContext *top) const |
uint | hash () const |
bool | isLoaded (TopDUContext *top) const |
bool | isValid () const |
uint | localIndex () const |
bool | operator< (const LocalIndexedDeclaration &rhs) const |
bool | operator== (const LocalIndexedDeclaration &rhs) const |
Detailed Description
Represents a declaration only by its index within the top-context.
Definition at line 32 of file localindexeddeclaration.h.
Constructor & Destructor Documentation
◆ LocalIndexedDeclaration() [1/2]
LocalIndexedDeclaration::LocalIndexedDeclaration | ( | Declaration * | decl = nullptr | ) |
Definition at line 27 of file localindexeddeclaration.cpp.
◆ LocalIndexedDeclaration() [2/2]
LocalIndexedDeclaration::LocalIndexedDeclaration | ( | uint | declarationIndex | ) |
Definition at line 32 of file localindexeddeclaration.cpp.
Member Function Documentation
◆ data()
Declaration * LocalIndexedDeclaration::data | ( | TopDUContext * | top | ) | const |
- Note
- Duchain must be read locked
Definition at line 37 of file localindexeddeclaration.cpp.
◆ hash()
|
inline |
Definition at line 47 of file localindexeddeclaration.h.
◆ isLoaded()
bool LocalIndexedDeclaration::isLoaded | ( | TopDUContext * | top | ) | const |
Definition at line 45 of file localindexeddeclaration.cpp.
◆ isValid()
|
inline |
Definition at line 52 of file localindexeddeclaration.h.
◆ localIndex()
|
inline |
Index of the Declaration within the top context.
Definition at line 65 of file localindexeddeclaration.h.
◆ operator<()
|
inline |
Definition at line 57 of file localindexeddeclaration.h.
◆ operator==()
|
inline |
Definition at line 43 of file localindexeddeclaration.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 23 2021 09:40:53 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.