language/duchain
KDevelop::IndexedTypeIdentifier Class Reference
Extends IndexedQualifiedIdentifier by:
- Arbitrary count of pointer-poperators with cv-qualifiers
- Reference operator All the properties set here are respected in the hash value.
#include <identifier.h>
Public Member Functions | |
| IndexedTypeIdentifier (const QString &identifer, bool isExpression=false) | |
| IndexedTypeIdentifier (IndexedQualifiedIdentifier identifier=IndexedQualifiedIdentifier()) | |
| uint | hash () const |
| IndexedQualifiedIdentifier | identifier () const |
| bool | isConstant () const |
| bool | isConstPointer (int depthNumber) const |
| bool | isReference () const |
| bool | operator!= (const IndexedTypeIdentifier &rhs) const |
| bool | operator== (const IndexedTypeIdentifier &rhs) const |
| int | pointerDepth () const |
| void | setIdentifier (IndexedQualifiedIdentifier id) |
| void | setIsConstant (bool) |
| void | setIsConstPointer (int depthNumber, bool constant) |
| void | setIsReference (bool) |
| void | setPointerDepth (int) |
| QString | toString (bool ignoreExplicitlyGlobal=false) const |
Detailed Description
Extends IndexedQualifiedIdentifier by:
- Arbitrary count of pointer-poperators with cv-qualifiers
- Reference operator All the properties set here are respected in the hash value.
Definition at line 320 of file identifier.h.
Constructor & Destructor Documentation
| KDevelop::IndexedTypeIdentifier::IndexedTypeIdentifier | ( | KDevelop::IndexedQualifiedIdentifier | identifier = IndexedQualifiedIdentifier() |
) | [explicit] |
Variables like pointerDepth, isReference, etc. are not parsed from the string, so this parsing is quite limited.
Definition at line 1037 of file identifier.cpp.
Member Function Documentation
| bool KDevelop::IndexedTypeIdentifier::isConstPointer | ( | int | depthNumber | ) | const |
Whether the target of pointer 'depthNumber' is constant.
Definition at line 1010 of file identifier.cpp.
| bool KDevelop::IndexedTypeIdentifier::operator== | ( | const IndexedTypeIdentifier & | rhs | ) | const |
The comparison-operators do not respect explicitlyGlobal and isExpression, they only respect the real scope.
This is for convenient use in hash-tables etc.
Definition at line 971 of file identifier.cpp.
| int KDevelop::IndexedTypeIdentifier::pointerDepth | ( | ) | const |
Returns the pointer depth. Example for C++: "char*" has pointer-depth 1, "char***" has pointer-depth 3.
Definition at line 996 of file identifier.cpp.
| void KDevelop::IndexedTypeIdentifier::setPointerDepth | ( | int | depth | ) |
Sets the pointer-depth to the specified count When the pointer-depth is increased, the "isConstPointer" values for new depths will be initialized with false.
Sets the pointer-depth to the specified count For efficiency-reasons the maximum currently is 32.
For efficiency-reasons the maximum currently is 32.
Clear the mask in removed fields
Definition at line 1002 of file identifier.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference