Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QtPrivate::QMovableArrayOps< T >::Inserter Struct Reference

#include <qarraydataops.h>

+ Collaboration diagram for QtPrivate::QMovableArrayOps< T >::Inserter:

Public Member Functions

 Inserter (QArrayDataPointer< T > *d)
 
 ~Inserter ()
 
T * displace (qsizetype pos, qsizetype n)
 
void insert (qsizetype pos, const T *source, qsizetype n)
 
void insert (qsizetype pos, const T &t, qsizetype n)
 
void insertOne (qsizetype pos, T &&t)
 

Public Attributes

QArrayDataPointer< T > * data
 
T * displaceFrom
 
T * displaceTo
 
qsizetype nInserts = 0
 
qsizetype bytes
 

Detailed Description

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

Definition at line 696 of file qarraydataops.h.

Constructor & Destructor Documentation

◆ Inserter()

template<class T >
QtPrivate::QMovableArrayOps< T >::Inserter::Inserter ( QArrayDataPointer< T > *  d)
inline

Definition at line 704 of file qarraydataops.h.

◆ ~Inserter()

template<class T >
QtPrivate::QMovableArrayOps< T >::Inserter::~Inserter ( )
inline

Definition at line 705 of file qarraydataops.h.

References QtPrivate::QMovableArrayOps< T >::Inserter::bytes, QtPrivate::QMovableArrayOps< T >::Inserter::displaceFrom, QtPrivate::QMovableArrayOps< T >::Inserter::displaceTo, QtPrivate::QMovableArrayOps< T >::Inserter::nInserts, and qAbs().

+ Here is the call graph for this function:

Member Function Documentation

◆ displace()

template<class T >
T * QtPrivate::QMovableArrayOps< T >::Inserter::displace ( qsizetype  pos,
qsizetype  n 
)
inline

◆ insert() [1/2]

template<class T >
void QtPrivate::QMovableArrayOps< T >::Inserter::insert ( qsizetype  pos,
const T &  t,
qsizetype  n 
)
inline

Definition at line 740 of file qarraydataops.h.

References QtPrivate::QMovableArrayOps< T >::Inserter::displace(), QtPrivate::QMovableArrayOps< T >::Inserter::displaceFrom, and pos.

+ Here is the call graph for this function:

◆ insert() [2/2]

template<class T >
void QtPrivate::QMovableArrayOps< T >::Inserter::insert ( qsizetype  pos,
const T *  source,
qsizetype  n 
)
inline

Definition at line 728 of file qarraydataops.h.

References QtPrivate::QMovableArrayOps< T >::Inserter::displace(), QtPrivate::QMovableArrayOps< T >::Inserter::displaceFrom, and pos.

Referenced by QtPrivate::QMovableArrayOps< T >::insert(), and QtPrivate::QMovableArrayOps< T >::insert().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertOne()

template<class T >
void QtPrivate::QMovableArrayOps< T >::Inserter::insertOne ( qsizetype  pos,
T &&  t 
)
inline

Definition at line 751 of file qarraydataops.h.

References QtPrivate::QMovableArrayOps< T >::Inserter::displace(), QtPrivate::QMovableArrayOps< T >::Inserter::displaceFrom, QtPrivate::QMovableArrayOps< T >::Inserter::displaceTo, pos, and Q_ASSERT.

Referenced by QtPrivate::QMovableArrayOps< T >::emplace().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ bytes

◆ data

template<class T >
QArrayDataPointer<T>* QtPrivate::QMovableArrayOps< T >::Inserter::data

Definition at line 698 of file qarraydataops.h.

◆ displaceFrom

◆ displaceTo

◆ nInserts


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