|
| QSharedArrayPointer (const QSharedArrayPointer< element_type > &other) |
|
| QSharedArrayPointer (const QSharedArrayPointer< element_type[]> &other) |
|
| QSharedArrayPointer (QSharedArrayPointer< element_type > &&other) |
|
| QSharedArrayPointer (QSharedArrayPointer< element_type[]> &&other) |
|
| ~QSharedArrayPointer () |
|
bool | isNull () const |
|
element_type & | operator* () const noexcept |
|
QSharedArrayPointer & | operator= (const QSharedArrayPointer< element_type > &other) |
|
QSharedArrayPointer & | operator= (const QSharedArrayPointer< element_type[]> &other) |
|
QSharedArrayPointer & | operator= (QSharedArrayPointer< element_type > &&other) |
|
QSharedArrayPointer & | operator= (QSharedArrayPointer< element_type[]> &&other) |
|
element_type & | operator[] (std::size_t index) const noexcept |
|
void | swap (QSharedArrayPointer &other) |
|
constexpr | QSharedPointer () noexcept |
|
| QSharedPointer (const QSharedPointer< T > &other) = default |
|
template<typename U > |
| QSharedPointer (const QSharedPointer< U > &p) noexcept |
|
template<typename U > |
| QSharedPointer (const QSharedPointer< U > &p1, element_type *p2) noexcept |
|
template<typename U > |
| QSharedPointer (const QWeakPointer< U > &p) |
|
template<typename U > |
| QSharedPointer (const std::shared_ptr< U > &p) noexcept |
|
| QSharedPointer (QSharedPointer< T > &&other) = default |
|
template<typename U > |
| QSharedPointer (QSharedPointer< U > &&p) noexcept |
|
template<typename U > |
| QSharedPointer (QSharedPointer< U > &&p1, element_type *p2) noexcept |
|
template<typename U , typename Deleter > |
| QSharedPointer (QUniquePointer< U, Deleter > &&p) |
|
constexpr | QSharedPointer (std::nullptr_t) noexcept |
|
template<typename Deleter > |
| QSharedPointer (std::nullptr_t, Deleter d) |
|
template<typename Deleter , typename Alloc > |
| QSharedPointer (std::nullptr_t, Deleter d, Alloc a) |
|
template<typename U > |
| QSharedPointer (std::shared_ptr< U > &&p) noexcept |
|
template<typename U > |
| QSharedPointer (U *p) |
|
template<typename U , typename Deleter > |
| QSharedPointer (U *p, Deleter d) |
|
template<typename U , typename Deleter , typename Alloc > |
| QSharedPointer (U *p, Deleter d, Alloc a) |
|
| ~QSharedPointer () |
|
void | clear () |
|
template<typename U > |
QSharedPointer< U > | constCast () const |
|
QSharedPointer< T > | create (Args &&...args) |
|
T * | data () const |
|
template<typename U > |
QSharedPointer< U > | dynamicCast () const |
|
bool | isNull () const |
|
template<typename U > |
QSharedPointer< U > | objectCast () const |
|
| operator bool () const |
|
bool | operator! () const |
|
bool | operator!= (const QSharedPointer< T > &other) const |
|
bool | operator!= (const T *ptr) const |
|
bool | operator!= (std::nullptr_t) const |
|
T & | operator* () const |
|
T * | operator-> () const |
|
bool | operator< (const QSharedPointer< T > &other) const |
|
bool | operator< (const T *ptr) const |
|
bool | operator< (std::nullptr_t) const |
|
bool | operator<= (const QSharedPointer< T > &other) const |
|
bool | operator<= (const T *ptr) const |
|
bool | operator<= (std::nullptr_t) const |
|
QSharedPointer & | operator= (const QSharedPointer< T > &other) = default |
|
template<typename U > |
QSharedPointer & | operator= (const QSharedPointer< U > &p) noexcept |
|
template<typename U > |
QSharedPointer & | operator= (const QWeakPointer< U > &p) |
|
QSharedPointer & | operator= (QSharedPointer< T > &&other) = default |
|
template<typename U > |
QSharedPointer & | operator= (QSharedPointer< U > &&p) noexcept |
|
bool | operator== (const QSharedPointer< T > &other) const |
|
bool | operator== (const T *ptr) const |
|
bool | operator== (std::nullptr_t) const |
|
bool | operator> (const QSharedPointer< T > &other) const |
|
bool | operator> (const T *ptr) const |
|
bool | operator> (std::nullptr_t) const |
|
bool | operator>= (const QSharedPointer< T > &other) const |
|
bool | operator>= (const T *ptr) const |
|
bool | operator>= (std::nullptr_t) const |
|
void | reset () |
|
void | reset (U *value) |
|
void | reset (U *value, Deleter d) |
|
void | reset (U *value, Deleter d, Alloc a) |
|
template<typename U > |
QSharedPointer< U > | staticCast () const |
|
void | swap (QSharedPointer &other) |
|
QWeakPointer< T > | toWeakRef () const |
|
long | use_count () const noexcept |
|
template<typename T>
class QSharedArrayPointer< T >
The QSharedArrayPointer class stores a shared pointer to a dynamically allocated array of objects. The array will be deleted when the last QSharedArrayPointer pointing to the array is destroyed or reset.
Additional Documentation
Refer to the QSharedPointer documentation for inherited methods like reset() and toWeakRef().
Example
void someFunction()
{
data[2] = 42;
return;
}