QtBase  v6.3.1
Classes | Public Types | Public Member Functions | Protected Types | List of all members
QtPrivate::QMovableArrayOps< T > Struct Template Reference

#include <qarraydataops.h>

Inheritance diagram for QtPrivate::QMovableArrayOps< T >:
Inheritance graph
[legend]
Collaboration diagram for QtPrivate::QMovableArrayOps< T >:
Collaboration graph
[legend]

Classes

struct  Inserter
 

Public Types

typedef QGenericArrayOps< T >::parameter_type parameter_type
 
- Public Types inherited from QtPrivate::QGenericArrayOps< T >
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, const T & >::type parameter_type
 

Public Member Functions

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 reallocate (qsizetype alloc, QArrayData::AllocationOption option)
 
- Public Member Functions inherited from QtPrivate::QGenericArrayOps< T >
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 >
constexpr QArrayDataPointer () noexcept
 
 QArrayDataPointer (const QArrayDataPointer &other) noexcept
 
constexpr QArrayDataPointer (Data *header, T *adata, qsizetype n=0) noexcept
 
 QArrayDataPointer (QPair< QTypedArrayData< T > *, T * > adata, qsizetype n=0) noexcept
 
QArrayDataPointeroperator= (const QArrayDataPointer &other) noexcept
 
 QArrayDataPointer (QArrayDataPointer &&other) noexcept
 
DataOpsoperator* () noexcept
 
DataOpsoperator-> () noexcept
 
const DataOpsoperator* () const noexcept
 
const DataOpsoperator-> () const noexcept
 
 ~QArrayDataPointer ()
 
bool isNull () const noexcept
 
Tdata () noexcept
 
const Tdata () const noexcept
 
Tbegin () noexcept
 
Tend () noexcept
 
const Tbegin () const noexcept
 
const Tend () const noexcept
 
const TconstBegin () const noexcept
 
const TconstEnd () const noexcept
 
void swap (QArrayDataPointer &other) noexcept
 
void clear () noexcept(std::is_nothrow_destructible< T >::value)
 
void detach (QArrayDataPointer *old=nullptr)
 
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)
 
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
 
Datad_ptr () noexcept
 
void setBegin (T *begin) noexcept
 
qsizetype freeSpaceAtBegin () const noexcept
 
qsizetype freeSpaceAtEnd () const noexcept
 

Protected Types

typedef QTypedArrayData< TData
 
using DataPointer = QArrayDataPointer< T >
 
- Protected Types inherited from QtPrivate::QGenericArrayOps< T >
typedef QTypedArrayData< TData
 
using DataPointer = QArrayDataPointer< T >
 

Additional Inherited Members

- Static Public Member Functions inherited from QArrayDataPointer< T >
static 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 >
Datad
 
Tptr
 
qsizetype size
 

Detailed Description

template<class T>
struct QtPrivate::QMovableArrayOps< T >

Definition at line 669 of file qarraydataops.h.

Member Typedef Documentation

◆ Data

template<class T >
typedef QTypedArrayData<T> QtPrivate::QMovableArrayOps< T >::Data
protected

Definition at line 675 of file qarraydataops.h.

◆ DataPointer

template<class T >
using QtPrivate::QMovableArrayOps< T >::DataPointer = QArrayDataPointer<T>
protected

Definition at line 676 of file qarraydataops.h.

◆ parameter_type

Definition at line 683 of file qarraydataops.h.

Member Function Documentation

◆ emplace()

template<class T >
template<typename... Args>
void QtPrivate::QMovableArrayOps< T >::emplace ( qsizetype  i,
Args &&...  args 
)
inline

Definition at line 800 of file qarraydataops.h.

Here is the call graph for this function:

◆ erase()

template<class T >
void QtPrivate::QMovableArrayOps< T >::erase ( T b,
qsizetype  n 
)
inline

Definition at line 831 of file qarraydataops.h.

Here is the call graph for this function:

◆ insert() [1/2]

template<class T >
void QtPrivate::QMovableArrayOps< T >::insert ( qsizetype  i,
const T data,
qsizetype  n 
)
inline

Definition at line 751 of file qarraydataops.h.

Here is the call graph for this function:

◆ insert() [2/2]

template<class T >
void QtPrivate::QMovableArrayOps< T >::insert ( qsizetype  i,
qsizetype  n,
parameter_type  t 
)
inline

Definition at line 775 of file qarraydataops.h.

◆ reallocate()

template<class T >
void QtPrivate::QMovableArrayOps< T >::reallocate ( qsizetype  alloc,
QArrayData::AllocationOption  option 
)
inline

Definition at line 854 of file qarraydataops.h.

Here is the call graph for this function:

The documentation for this struct was generated from the following file: