40 #ifndef QSHAREDPOINTER_H
41 #define QSHAREDPOINTER_H
43 #include <QtCore/qglobal.h>
44 #include <QtCore/qatomic.h>
45 #include <QtCore/qshareddata.h>
48 # include <QtCore/qsharedpointer_impl.h>
66 operator bool()
const;
95 template <
typename Deleter>
96 void reset(
T *
t, Deleter deleter);
104 template <
typename...
Args>
114 operator bool()
const;
A base class that allows obtaining a QSharedPointer for an object already managed by a shared pointer...
QSharedPointer< T > sharedFromThis()
template< typename Enum > bool operator!=(Enum lhs, QFlags< Enum > rhs)
template< typename Enum > bool operator==(Enum lhs, QFlags< Enum > rhs)
The QObject class is the base class of all Qt objects.
The QSharedPointer class holds a strong reference to a shared pointer.
template< class X, class T > std::shared_ptr< X > qobject_pointer_cast(const std::shared_ptr< T > &src)
bool isNull() const noexcept
QSharedPointer< X > constCast() const
bool operator!() const noexcept
friend class QSharedPointer
template< class X > template< class T > QSharedPointer< X > qSharedPointerObjectCast(const QSharedPointer< T > &src)
The qSharedPointerObjectCast function is for casting a shared pointer.
QWeakPointer< T > toWeakRef() const
QSharedPointer< X > objectCast() const
T * data() const noexcept
QSharedPointer< X > dynamicCast() const
static QSharedPointer create(Args &&...arguments)
template< class X > template< class T > QSharedPointer< X > qSharedPointerCast(const QSharedPointer< T > &other)
QSharedPointer & operator=(const QSharedPointer &other) noexcept
QSharedPointer< X > staticCast() const
T * operator->() const noexcept
void swap(QSharedPointer &other) noexcept
template< class X > template< class T > QSharedPointer< X > qSharedPointerConstCast(const QSharedPointer< T > &src)
template< class X > template< class T > QSharedPointer< X > qSharedPointerDynamicCast(const QSharedPointer< T > &src)
The QWeakPointer class holds a weak reference to a shared pointer.
QWeakPointer & operator=(QWeakPointer< X > &&other) noexcept
QSharedPointer< T > toStrongRef() const
bool operator!() const noexcept
QSharedPointer< T > lock() const
bool isNull() const noexcept
friend class QWeakPointer
template< class X > template< class T > QWeakPointer< X > qWeakPointerCast(const QWeakPointer< T > &src)
void swap(QWeakPointer &other) noexcept
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data