kdevplatform/language/duchain
#include <duchainpointer.h>

Public Member Functions | |
DUChainPointer () | |
DUChainPointer (const DUChainPointer &)=default | |
DUChainPointer (DUChainPointer &&)=default | |
template<class OtherType > | |
DUChainPointer (DUChainPointer< OtherType > rhs) | |
template<class OtherType > | |
DUChainPointer (OtherType *rhs) | |
DUChainPointer (QExplicitlySharedDataPointer< DUChainPointerData > rhs) | |
DUChainPointer (Type *rhs) | |
~DUChainPointer ()=default | |
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= (const DUChainPointer< Type > &)=default |
DUChainPointer< Type > & | operator= (DUChainPointer< Type > &&)=default |
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 90 of file duchainpointer.h.
Constructor & Destructor Documentation
◆ DUChainPointer() [1/7]
|
inline |
Definition at line 96 of file duchainpointer.h.
◆ DUChainPointer() [2/7]
|
default |
◆ DUChainPointer() [3/7]
|
default |
◆ DUChainPointer() [4/7]
|
inlineexplicit |
This constructor includes dynamic casting. If the object cannot be casted to the type, the constructed DUChainPointer will have value zero.
Definition at line 105 of file duchainpointer.h.
◆ DUChainPointer() [5/7]
|
inlineexplicit |
Definition at line 112 of file duchainpointer.h.
◆ DUChainPointer() [6/7]
|
inlineexplicit |
Definition at line 118 of file duchainpointer.h.
◆ DUChainPointer() [7/7]
|
inlineexplicit |
Definition at line 124 of file duchainpointer.h.
◆ ~DUChainPointer()
|
default |
Member Function Documentation
◆ data()
|
inline |
Definition at line 173 of file duchainpointer.h.
◆ dynamicCast()
|
inline |
Definition at line 165 of file duchainpointer.h.
◆ operator bool()
|
inline |
Returns whether the pointed object is still existing.
Definition at line 143 of file duchainpointer.h.
◆ operator!=()
|
inline |
Definition at line 137 of file duchainpointer.h.
◆ operator*()
|
inline |
Definition at line 147 of file duchainpointer.h.
◆ operator->()
|
inline |
Definition at line 153 of file duchainpointer.h.
◆ operator<()
|
inline |
Definition at line 159 of file duchainpointer.h.
◆ operator=() [1/3]
|
default |
◆ operator=() [2/3]
|
default |
◆ operator=() [3/3]
|
inline |
Definition at line 183 of file duchainpointer.h.
◆ operator==()
|
inline |
Definition at line 132 of file duchainpointer.h.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 16 2021 23:35:06 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.