language/duchain
KDevelop::IndexedType Class Reference
Indexed type pointer. More...
#include <indexedtype.h>
Inheritance diagram for KDevelop::IndexedType:

Public Member Functions | |
| IndexedType (uint index=0) | |
| IndexedType (const IndexedType &rhs) | |
| AbstractType::Ptr | abstractType () const |
| uint | hash () const |
| uint | index () const |
| bool | isValid () const |
| operator bool () const | |
| bool | operator!= (const IndexedType &rhs) const |
| IndexedType & | operator= (const IndexedType &rhs) |
| bool | operator== (const IndexedType &rhs) const |
| template<class T > | |
| TypePtr< T > | type () const |
Detailed Description
Indexed type pointer.
IndexedType is a class which references a type by an index. This way the type can be stored to disk.
This class does "disk reference counting"
- Warning:
- Do not use this after QCoreApplication::aboutToQuit() has been emitted, items that are not disk-referenced will be invalid at that point
Definition at line 37 of file indexedtype.h.
Constructor & Destructor Documentation
| KDevelop::IndexedType::IndexedType | ( | const IndexedType & | rhs | ) |
Constructor.
Definition at line 32 of file indexedtype.cpp.
Member Function Documentation
| AbstractType::Ptr KDevelop::IndexedType::abstractType | ( | ) | const |
Access the type.
- Returns:
- the type pointer, or null if this index is invalid.
Definition at line 55 of file indexedtype.cpp.
| uint KDevelop::IndexedType::hash | ( | ) | const [inline] |
| uint KDevelop::IndexedType::index | ( | ) | const [inline] |
| bool KDevelop::IndexedType::isValid | ( | ) | const [inline] |
Determine if the type is valid.
- Returns:
- true if valid, otherwise false.
Definition at line 63 of file indexedtype.h.
| KDevelop::IndexedType::operator bool | ( | ) | const [inline] |
Definition at line 68 of file indexedtype.h.
| bool KDevelop::IndexedType::operator!= | ( | const IndexedType & | rhs | ) | const [inline] |
Not equal operator.
- Parameters:
-
rhs indexed type to compare.
- Returns:
- true if types are not the same, otherwise false.
Definition at line 78 of file indexedtype.h.
| bool KDevelop::IndexedType::operator== | ( | const IndexedType & | rhs | ) | const [inline] |
Equivalence operator.
- Parameters:
-
rhs indexed type to compare.
- Returns:
- true if equal (or both invalid), otherwise false.
Definition at line 73 of file indexedtype.h.
template<class T >
| TypePtr<T> KDevelop::IndexedType::type | ( | ) | const [inline] |
Access the type, dynamically casted to the type you provide.
- Returns:
- the type pointer, or null if this index is invalid.
Definition at line 60 of file indexedtype.h.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference