Qt 4.8
Classes | Functions
qshareddata.h File Reference
#include <QtCore/qglobal.h>
#include <QtCore/qatomic.h>

Go to the source code of this file.

Classes

class  QExplicitlySharedDataPointer< T >
 The QExplicitlySharedDataPointer class represents a pointer to an explicitly shared object. More...
 
class  QSharedData
 The QSharedData class is a base class for shared data objects. More...
 
class  QSharedDataPointer< T >
 The QSharedDataPointer class represents a pointer to an implicitly shared object. More...
 
class  QSharedDataPointer< T >
 The QSharedDataPointer class represents a pointer to an implicitly shared object. More...
 

Functions

template<class T >
Q_INLINE_TEMPLATE void qSwap (QSharedDataPointer< T > &p1, QSharedDataPointer< T > &p2)
 
template<class T >
Q_INLINE_TEMPLATE void qSwap (QExplicitlySharedDataPointer< T > &p1, QExplicitlySharedDataPointer< T > &p2)
 
template<class T >
Q_INLINE_TEMPLATE void std::swap (::QSharedDataPointer< T > &p1, ::QSharedDataPointer< T > &p2)
 
template<class T >
Q_INLINE_TEMPLATE void std::swap (::QExplicitlySharedDataPointer< T > &p1, ::QExplicitlySharedDataPointer< T > &p2)
 

Function Documentation

◆ qSwap() [1/2]

template<class T >
Q_INLINE_TEMPLATE void qSwap ( QSharedDataPointer< T > &  p1,
QSharedDataPointer< T > &  p2 
)

Definition at line 261 of file qshareddata.h.

Referenced by QSharedDataPointer< QSslConfigurationPrivate >::operator=(), QExplicitlySharedDataPointer< QSslConfigurationPrivate >::operator=(), QSharedDataPointer< QSslConfigurationPrivate >::swap(), and QExplicitlySharedDataPointer< QSslConfigurationPrivate >::swap().

262 { p1.swap(p2); }
void swap(QSharedDataPointer &other)
Swap this instance&#39;s shared data pointer with the shared data pointer in other.
Definition: qshareddata.h:124

◆ qSwap() [2/2]

template<class T >
Q_INLINE_TEMPLATE void qSwap ( QExplicitlySharedDataPointer< T > &  p1,
QExplicitlySharedDataPointer< T > &  p2 
)

Definition at line 265 of file qshareddata.h.

266 { p1.swap(p2); }
void swap(QExplicitlySharedDataPointer &other)
Swap this instance&#39;s explicitly shared data pointer with the explicitly shared data pointer in other...
Definition: qshareddata.h:208

◆ swap() [1/2]

template<class T >
Q_INLINE_TEMPLATE void std::swap ( ::QSharedDataPointer< T > &  p1,
::QSharedDataPointer< T > &  p2 
)

Definition at line 272 of file qshareddata.h.

273  { p1.swap(p2); }
void swap(QSharedDataPointer &other)
Swap this instance&#39;s shared data pointer with the shared data pointer in other.
Definition: qshareddata.h:124

◆ swap() [2/2]

template<class T >
Q_INLINE_TEMPLATE void std::swap ( ::QExplicitlySharedDataPointer< T > &  p1,
::QExplicitlySharedDataPointer< T > &  p2 
)

Definition at line 276 of file qshareddata.h.

277  { p1.swap(p2); }
void swap(QExplicitlySharedDataPointer &other)
Swap this instance&#39;s explicitly shared data pointer with the explicitly shared data pointer in other...
Definition: qshareddata.h:208