KDECore
Go to the documentation of this file.
30 #include <QtCore/QExplicitlySharedDataPointer>
31 #include <QtCore/QAtomicPointer>
32 #include <kdemacros.h>
77 :
d(p) {
if(
d)
d->ref.ref(); }
84 :
d(o.
d) {
if(
d)
d->ref.ref(); }
98 inline bool operator== (
const T* p )
const {
return (
d == p ); }
99 inline bool operator!= (
const T* p )
const {
return (
d != p ); }
106 inline operator bool()
const {
return (
d != 0 ); }
116 inline const T*
data()
const {
return d; }
144 inline int count()
const {
return d ?
static_cast<int>(
d->ref) : 0; }
151 inline bool isNull()
const {
return (
d == 0); }
213 if (
d && !
d->ref.deref())
222 attach(static_cast<T*>(0));
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Apr 20 2013 05:59:11 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.