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

language/duchain

KDevelop::IndexedType

KDevelop::IndexedType Class Reference

Indexed type pointer. More...

#include <indexedtype.h>

Inheritance diagram for KDevelop::IndexedType:
Inheritance graph
[legend]

List of all members.

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]

Access the type's hash value.

Returns:
the hash value.

Definition at line 83 of file indexedtype.h.

uint KDevelop::IndexedType::index (  )  const [inline]

Access the type's index.

Returns:
the index.

Definition at line 88 of file indexedtype.h.

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