Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QtPrivate::QGenericArrayOps< T >::Inserter Struct Reference

#include <qarraydataops.h>

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

Public Member Functions

 Inserter (QArrayDataPointer< T > *d)
 
 ~Inserter ()
 
void setup (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 * begin
 
qsizetype size
 
qsizetype sourceCopyConstruct = 0
 
qsizetype nSource = 0
 
qsizetype move = 0
 
qsizetype sourceCopyAssign = 0
 
T * end = nullptr
 
T * last = nullptr
 
T * where = nullptr
 

Detailed Description

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

Definition at line 401 of file qarraydataops.h.

Constructor & Destructor Documentation

◆ Inserter()

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

◆ ~Inserter()

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

Member Function Documentation

◆ insert() [1/2]

◆ insert() [2/2]

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

Definition at line 438 of file qarraydataops.h.

References i, QtPrivate::QGenericArrayOps< T >::Inserter::last, QtPrivate::QGenericArrayOps< T >::Inserter::move, QtPrivate::QGenericArrayOps< T >::Inserter::nSource, pos, Q_ASSERT, Q_UNUSED, QtPrivate::QGenericArrayOps< T >::Inserter::setup(), QtPrivate::QGenericArrayOps< T >::Inserter::size, QtPrivate::QGenericArrayOps< T >::Inserter::sourceCopyAssign, QtPrivate::QGenericArrayOps< T >::Inserter::sourceCopyConstruct, and QtPrivate::QGenericArrayOps< T >::Inserter::where.

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

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

◆ insertOne()

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

Definition at line 504 of file qarraydataops.h.

References QtPrivate::QGenericArrayOps< T >::Inserter::end, i, QtPrivate::QGenericArrayOps< T >::Inserter::last, QtPrivate::QGenericArrayOps< T >::Inserter::move, pos, Q_ASSERT, QtPrivate::QGenericArrayOps< T >::Inserter::setup(), QtPrivate::QGenericArrayOps< T >::Inserter::size, QtPrivate::QGenericArrayOps< T >::Inserter::sourceCopyConstruct, and QtPrivate::QGenericArrayOps< T >::Inserter::where.

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

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

◆ setup()

template<class T >
void QtPrivate::QGenericArrayOps< T >::Inserter::setup ( qsizetype pos,
qsizetype n )
inline

Member Data Documentation

◆ begin

◆ data

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

Definition at line 403 of file qarraydataops.h.

◆ end

template<class T >
T* QtPrivate::QGenericArrayOps< T >::Inserter::end = nullptr

◆ last

◆ move

◆ nSource

◆ size

◆ sourceCopyAssign

◆ sourceCopyConstruct

◆ where


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