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

language/duchain

KDevelop::DUChainPointer

KDevelop::DUChainPointer< Type > Class Template Reference

A smart-pointer similar class that conveniently wraps around DUChainPointerData without too many dynamic casts. More...

#include <duchainpointer.h>

Inheritance diagram for KDevelop::DUChainPointer< Type >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DUChainPointer (Type *rhs)
 DUChainPointer (KSharedPtr< DUChainPointerData > rhs)
template<class OtherType >
 DUChainPointer (DUChainPointer< OtherType > rhs)
template<class OtherType >
 DUChainPointer (OtherType *rhs)
 DUChainPointer (const DUChainPointer &rhs)
Type * data () const
template<class NewType >
DUChainPointer< NewType > dynamicCast () const
 operator bool () const
bool operator!= (const DUChainPointer< Type > &rhs) const
Type & operator* () const
Type * operator-> () const
bool operator< (const DUChainPointer< Type > &rhs) const
DUChainPointer< Type > & operator= (Type *rhs)
bool operator== (const DUChainPointer< Type > &rhs) const

Detailed Description

template<class Type>
class KDevelop::DUChainPointer< Type >

A smart-pointer similar class that conveniently wraps around DUChainPointerData without too many dynamic casts.

It can be used like a normal pointer. In order to cast between pointer types, you should use the staticCast() and dynamicCast() functions as appropriate.

Access must be serialized by holding the KDevelop::DUChain::lock() as appropriate for the function(s) being called.

Definition at line 88 of file duchainpointer.h.


Constructor & Destructor Documentation

template<class Type>
template<class OtherType >
KDevelop::DUChainPointer< Type >::DUChainPointer ( OtherType *  rhs  )  [inline, explicit]

This constructor includes dynamic casting. If the object cannot be casted to the type, the constructed DUChainPointer will have value zero.

Definition at line 103 of file duchainpointer.h.


Member Function Documentation

template<class Type>
KDevelop::DUChainPointer< Type >::operator bool (  )  const [inline]

Returns whether the pointed object is still existing.

Definition at line 133 of file duchainpointer.h.


The documentation for this class was generated from the following file:
  • duchainpointer.h

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