summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qshareddata.cpp
diff options
context:
space:
mode:
authorGeir Vattekar <geir.vattekar@digia.com>2013-09-26 12:16:39 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-27 21:47:55 +0200
commit3705c1263d4d2232d5527361692d25a8519c222b (patch)
tree3d89fde7ca666151ff674f86d734c7ef02e9cd3e /src/corelib/tools/qshareddata.cpp
parenta0792f0e5135588437ed76d4d0e257a276fd80da (diff)
Doc: Add docs for rvalue references and move constructors
These members were introduced in 4.8, but left undocumented. Because we consider undocumented API to be internal, the members are \since 5.2. Change-Id: I52e2840a8cfaa7f59f410b3e2a06c0942ea06539 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'src/corelib/tools/qshareddata.cpp')
-rw-r--r--src/corelib/tools/qshareddata.cpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/corelib/tools/qshareddata.cpp b/src/corelib/tools/qshareddata.cpp
index cee0c1d450..0afda357a6 100644
--- a/src/corelib/tools/qshareddata.cpp
+++ b/src/corelib/tools/qshareddata.cpp
@@ -306,6 +306,14 @@ QT_BEGIN_NAMESPACE
data pointer in \a other.
*/
+/*!
+ \fn QSharedDataPointer<T> &QSharedDataPointer::operator=(QSharedDataPointer<T> &&other)
+
+ Move-assigns \a other to this QSharedDataPointer instance.
+
+ \since 5.2
+*/
+
/*! \fn bool QSharedDataPointer::operator==(const QSharedDataPointer<T>& other) const
Returns true if \a other and \e this have the same \e{d pointer}.
This function does \e not call detach().
@@ -320,6 +328,15 @@ QT_BEGIN_NAMESPACE
Constructs a QSharedDataPointer initialized with a null \e{d pointer}.
*/
+/*!
+ \fn QSharedDataPointer::QSharedDataPointer(QSharedDataPointer &&o)
+
+ Move-constructs a QSharedDataPointer instance, making it point at the same
+ object that \a o was pointing to.
+
+ \since 5.2
+*/
+
/*! \fn QSharedDataPointer::~QSharedDataPointer()
Decrements the reference count of the shared data object.
If the reference count becomes 0, the shared data object
@@ -465,6 +482,14 @@ QT_BEGIN_NAMESPACE
Returns true if \a other and \e this have the same \e{d pointer}.
*/
+/*!
+ \fn QExplicitlySharedDataPointer<T> &QExplicitlySharedDataPointer::operator=(QExplicitlySharedDataPointer<T> &&other)
+
+ Move-assigns \a other to this QExplicitlySharedDataPointer instance.
+
+ \since 5.2
+*/
+
/*! \fn bool QExplicitlySharedDataPointer::operator==(const T* ptr) const
Returns true if the \e{d pointer} of \e this is \a ptr.
*/
@@ -489,6 +514,15 @@ QT_BEGIN_NAMESPACE
is deleted. \e This is then destroyed.
*/
+/*!
+ \fn QExplicitlySharedDataPointer::QExplicitlySharedDataPointer(QExplicitlySharedDataPointer &&o)
+
+ Move-constructs a QExplicitlySharedDataPointer instance, making it point at the same
+ object that \a o was pointing to.
+
+ \since 5.2
+*/
+
/*! \fn QExplicitlySharedDataPointer::QExplicitlySharedDataPointer(T* sharedData)
Constructs a QExplicitlySharedDataPointer with \e{d pointer}
set to \a sharedData and increments \a{sharedData}'s reference