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

language/duchain

KDevelop::IndexedTypeIdentifier

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.
More...

#include <identifier.h>

List of all members.

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:
  • identifier.h
  • identifier.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