language/duchain
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>

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
| 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
| 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:
KDE 4.4 API Reference