![]() |
Qt 6.x
The Qt SDK
|
#include <qarraydataops.h>
Inheritance diagram for QtPrivate::QGenericArrayOps< T >:
Collaboration diagram for QtPrivate::QGenericArrayOps< T >:Classes | |
| struct | Inserter |
Public Types | |
| typedef QArrayDataPointer< T >::parameter_type | parameter_type |
Public Types inherited from QArrayDataPointer< T > | |
| enum | { pass_parameter_by_value } |
| typedef std::conditional< pass_parameter_by_value, T, constT & >::type | parameter_type |
Public Member Functions | |
| void | appendInitialize (qsizetype newSize) |
| void | copyAppend (const T *b, const T *e) |
| void | copyAppend (qsizetype n, parameter_type t) |
| void | moveAppend (T *b, T *e) |
| void | truncate (size_t newSize) |
| void | destroyAll () |
| void | insert (qsizetype i, const T *data, qsizetype n) |
| void | insert (qsizetype i, qsizetype n, parameter_type t) |
| template<typename... Args> | |
| void | emplace (qsizetype i, Args &&... args) |
| void | erase (T *b, qsizetype n) |
| void | eraseFirst () noexcept |
| void | eraseLast () noexcept |
| void | assign (T *b, T *e, parameter_type t) |
| bool | compare (const T *begin1, const T *begin2, size_t n) const |
Public Member Functions inherited from QArrayDataPointer< T > | |
| Q_NODISCARD_CTOR constexpr | QArrayDataPointer () noexcept |
| Q_NODISCARD_CTOR | QArrayDataPointer (const QArrayDataPointer &other) noexcept |
| Q_NODISCARD_CTOR constexpr | QArrayDataPointer (Data *header, T *adata, qsizetype n=0) noexcept |
| Q_NODISCARD_CTOR | QArrayDataPointer (QPair< QTypedArrayData< T > *, T * > adata, qsizetype n=0) noexcept |
| QArrayDataPointer & | operator= (const QArrayDataPointer &other) noexcept |
| Q_NODISCARD_CTOR | QArrayDataPointer (QArrayDataPointer &&other) noexcept |
| DataOps & | operator* () noexcept |
| DataOps * | operator-> () noexcept |
| const DataOps & | operator* () const noexcept |
| const DataOps * | operator-> () const noexcept |
| ~QArrayDataPointer () | |
| bool | isNull () const noexcept |
| T * | data () noexcept |
| const T * | data () const noexcept |
| T * | begin () noexcept |
| T * | end () noexcept |
| const T * | begin () const noexcept |
| const T * | end () const noexcept |
| const T * | constBegin () const noexcept |
| const T * | constEnd () const noexcept |
| void | swap (QArrayDataPointer &other) noexcept |
| void | clear () noexcept(std::is_nothrow_destructible< T >::value) |
| void | detach (QArrayDataPointer *old=nullptr) |
| template<typename X > | |
| QArrayDataPointer< X > | reinterpreted () && |
| void | detachAndGrow (QArrayData::GrowthPosition where, qsizetype n, const T **data, QArrayDataPointer *old) |
| Q_NEVER_INLINE void | reallocateAndGrow (QArrayData::GrowthPosition where, qsizetype n, QArrayDataPointer *old=nullptr) |
| bool | tryReadjustFreeSpace (QArrayData::GrowthPosition pos, qsizetype n, const T **data=nullptr) |
| void | relocate (qsizetype offset, const T **data=nullptr) |
| template<typename InputIterator , typename Projection = q20::identity> | |
| void | assign (InputIterator first, InputIterator last, Projection proj={}) |
| qsizetype | allocatedCapacity () noexcept |
| qsizetype | constAllocatedCapacity () const noexcept |
| void | ref () noexcept |
| bool | deref () noexcept |
| bool | isMutable () const noexcept |
| bool | isShared () const noexcept |
| bool | isSharedWith (const QArrayDataPointer &other) const noexcept |
| bool | needsDetach () const noexcept |
| qsizetype | detachCapacity (qsizetype newSize) const noexcept |
| const Data::ArrayOptions | flags () const noexcept |
| void | setFlag (typename Data::ArrayOptions f) noexcept |
| void | clearFlag (typename Data::ArrayOptions f) noexcept |
| Data * | d_ptr () noexcept |
| void | setBegin (T *begin) noexcept |
| qsizetype | freeSpaceAtBegin () const noexcept |
| qsizetype | freeSpaceAtEnd () const noexcept |
Protected Types | |
| typedef QTypedArrayData< T > | Data |
| using | DataPointer = QArrayDataPointer< T > |
Additional Inherited Members | |
Static Public Member Functions inherited from QArrayDataPointer< T > | |
| static Q_NODISCARD_CTOR QArrayDataPointer | fromRawData (const T *rawData, qsizetype length) noexcept |
| static QArrayDataPointer | allocateGrow (const QArrayDataPointer &from, qsizetype n, QArrayData::GrowthPosition position) |
Public Attributes inherited from QArrayDataPointer< T > | |
| Data * | d |
| T * | ptr |
| qsizetype | size |
Definition at line 304 of file qarraydataops.h.
|
protected |
Definition at line 310 of file qarraydataops.h.
|
protected |
Definition at line 311 of file qarraydataops.h.
| typedef QArrayDataPointer<T>::parameter_type QtPrivate::QGenericArrayOps< T >::parameter_type |
Definition at line 314 of file qarraydataops.h.
|
inline |
Definition at line 316 of file qarraydataops.h.
References QArrayDataPointer< T >::begin(), QArrayDataPointer< T >::freeSpaceAtEnd(), QArrayDataPointer< T >::isMutable(), QArrayDataPointer< T >::isShared(), Q_ASSERT, and QArrayDataPointer< T >::size.
Referenced by QList< T >::resize().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 655 of file qarraydataops.h.
References QArrayDataPointer< T >::begin(), e, QArrayDataPointer< T >::end(), and Q_ASSERT.
Here is the call graph for this function:
|
inline |
Definition at line 664 of file qarraydataops.h.
|
inline |
Definition at line 329 of file qarraydataops.h.
References QArrayDataPointer< T >::begin(), e, QArrayDataPointer< T >::freeSpaceAtEnd(), QArrayDataPointer< T >::isMutable(), QArrayDataPointer< T >::isShared(), Q_ASSERT, and QArrayDataPointer< T >::size.
Referenced by QByteArray::append(), QString::append(), QtPrivate::QCommonArrayOps< T >::appendIteratorRange(), QList< T >::fill(), QtPrivate::QCommonArrayOps< T >::growAppend(), QByteArray::insert(), QByteArray::insert(), QList< T >::mid(), QArrayDataPointer< T >::reallocateAndGrow(), QList< T >::reserve(), QList< T >::resize(), and QList< T >::squeeze().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 347 of file qarraydataops.h.
References QArrayDataPointer< T >::begin(), QArrayDataPointer< T >::freeSpaceAtEnd(), QArrayDataPointer< T >::isShared(), Q_ASSERT, and QArrayDataPointer< T >::size.
Here is the call graph for this function:
|
inline |
Definition at line 389 of file qarraydataops.h.
References QArrayDataPointer< T >::begin(), QArrayDataPointer< T >::d, QArrayDataPointer< T >::end(), QBasicAtomicInteger< T >::loadRelaxed(), Q_ASSERT, and QArrayData::ref_.
Here is the call graph for this function:
|
inline |
Definition at line 576 of file qarraydataops.h.
References args, QArrayDataPointer< T >::begin(), QArrayDataPointer< T >::detach(), QArrayDataPointer< T >::detachAndGrow(), QArrayDataPointer< T >::end(), QArrayDataPointer< T >::freeSpaceAtBegin(), QArrayDataPointer< T >::freeSpaceAtEnd(), QArrayData::GrowsAtBeginning, QArrayData::GrowsAtEnd, i, QtPrivate::QGenericArrayOps< T >::Inserter::insertOne(), QArrayDataPointer< T >::needsDetach(), pos, QArrayDataPointer< T >::ptr, Q_ASSERT, and QArrayDataPointer< T >::size.
Here is the call graph for this function:
|
inline |
Definition at line 608 of file qarraydataops.h.
References QArrayDataPointer< T >::begin(), e, QArrayDataPointer< T >::end(), QArrayDataPointer< T >::isMutable(), QArrayDataPointer< T >::ptr, and Q_ASSERT.
Referenced by QString::remove(), QString::remove(), and QByteArray::remove().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinenoexcept |
Definition at line 637 of file qarraydataops.h.
References QArrayDataPointer< T >::begin(), QArrayDataPointer< T >::isMutable(), QArrayDataPointer< T >::ptr, Q_ASSERT, and QArrayDataPointer< T >::size.
Here is the call graph for this function:
|
inlinenoexcept |
Definition at line 646 of file qarraydataops.h.
References QArrayDataPointer< T >::end(), QArrayDataPointer< T >::isMutable(), Q_ASSERT, and QArrayDataPointer< T >::size.
Here is the call graph for this function:
|
inline |
Definition at line 527 of file qarraydataops.h.
References QArrayDataPointer< T >::begin(), QArrayDataPointer< T >::detachAndGrow(), QArrayDataPointer< T >::freeSpaceAtBegin(), QArrayDataPointer< T >::freeSpaceAtEnd(), QArrayData::GrowsAtBeginning, QArrayData::GrowsAtEnd, i, QtPrivate::QGenericArrayOps< T >::Inserter::insert(), pos, QArrayDataPointer< T >::ptr, Q_ASSERT, and QArrayDataPointer< T >::size.
Referenced by QByteArray::insert(), and QByteArray::insert().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 551 of file qarraydataops.h.
References QArrayDataPointer< T >::begin(), copy(), QArrayDataPointer< T >::detachAndGrow(), QArrayDataPointer< T >::freeSpaceAtBegin(), QArrayDataPointer< T >::freeSpaceAtEnd(), QArrayData::GrowsAtBeginning, QArrayData::GrowsAtEnd, i, QtPrivate::QGenericArrayOps< T >::Inserter::insert(), pos, QArrayDataPointer< T >::ptr, Q_ASSERT, and QArrayDataPointer< T >::size.
Here is the call graph for this function:
|
inline |
Definition at line 361 of file qarraydataops.h.
References QArrayDataPointer< T >::begin(), e, QArrayDataPointer< T >::freeSpaceAtEnd(), QArrayDataPointer< T >::isMutable(), QArrayDataPointer< T >::isShared(), Q_ASSERT, and QArrayDataPointer< T >::size.
Referenced by QArrayDataPointer< T >::reallocateAndGrow(), and QList< T >::squeeze().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 379 of file qarraydataops.h.
References QArrayDataPointer< T >::begin(), QArrayDataPointer< T >::end(), QArrayDataPointer< T >::isMutable(), QArrayDataPointer< T >::isShared(), and Q_ASSERT.
Here is the call graph for this function: