Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QQuickParticleVarLengthArray< T, Prealloc > Class Template Reference

#include <qquickparticlesystem_p.h>

Inheritance diagram for QQuickParticleVarLengthArray< T, Prealloc >:
Collaboration diagram for QQuickParticleVarLengthArray< T, Prealloc >:

Public Member Functions

void insert (const T &element)
bool removeOne (const T &element)
Public Member Functions inherited from QVarLengthArray< T, Prealloc >
 QVarLengthArray () noexcept
 QVarLengthArray (qsizetype size)
template<typename U = T, if_copyable< U > = true>
 QVarLengthArray (qsizetype sz, const T &v)
 QVarLengthArray (const QVarLengthArray &other)
 QVarLengthArray (QVarLengthArray &&other) noexcept(std::is_nothrow_move_constructible_v< T >)
 QVarLengthArray (std::initializer_list< T > args)
template<typename InputIterator, if_input_iterator< InputIterator > = true>
 QVarLengthArray (InputIterator first, InputIterator last)
 ~QVarLengthArray ()
QVarLengthArray< T, Prealloc > & operator= (const QVarLengthArray< T, Prealloc > &other)
QVarLengthArrayoperator= (QVarLengthArray &&other) noexcept(std::is_nothrow_move_constructible_v< T >)
QVarLengthArray< T, Prealloc > & operator= (std::initializer_list< T > list)
void removeLast ()
qsizetype count () const
qsizetype length () const
T & first ()
const T & first () const
T & last ()
const T & last () const
bool isEmpty () const
void resize (qsizetype sz)
template<typename U = T, if_copyable< U > = true>
void resize (qsizetype sz, const T &v)
void squeeze ()
void reserve (qsizetype sz)
const T & at (qsizetype idx) const
void append (const T &t)
void append (T &&t)
void append (const T *buf, qsizetype sz)
QVarLengthArray< T, Prealloc > & operator<< (const T &t)
QVarLengthArray< T, Prealloc > & operator<< (T &&t)
QVarLengthArray< T, Prealloc > & operator+= (const T &t)
QVarLengthArray< T, Prealloc > & operator+= (T &&t)
void insert (qsizetype i, T &&t)
void insert (qsizetype i, const T &t)
void insert (qsizetype i, qsizetype n, const T &t)
QVarLengthArrayassign (qsizetype n, const T &t)
template<typename InputIterator, if_input_iterator< InputIterator > = true>
QVarLengthArrayassign (InputIterator first, InputIterator last)
QVarLengthArrayassign (std::initializer_list< T > list)
const T * constData () const
auto constBegin () const -> const_iterator
const_iterator constEnd () const
iterator insert (const_iterator before, qsizetype n, const T &x)
iterator insert (const_iterator before, T &&x)
iterator insert (const_iterator before, const T &x)
void push_back (const T &t)
void push_back (T &&t)
void shrink_to_fit ()
template<typename... Args>
iterator emplace (const_iterator pos, Args &&...args)
template<typename... Args>
T & emplace_back (Args &&...args)
constexpr qsizetype max_size () const noexcept
void clear ()
template<typename AT = T>
qsizetype indexOf (const AT &t, qsizetype from=0) const
template<typename AT = T>
qsizetype lastIndexOf (const AT &t, qsizetype from=-1) const
template<typename AT = T>
bool contains (const AT &t) const
reference operator[] (qsizetype idx)
const_reference operator[] (qsizetype idx) const
value_type value (qsizetype i) const
value_type value (qsizetype i, const T &defaultValue) const
void replace (qsizetype i, const T &t)
void remove (qsizetype i, qsizetype n=1)
template<typename AT = T>
qsizetype removeAll (const AT &t)
template<typename AT = T>
bool removeOne (const AT &t)
template<typename Predicate>
qsizetype removeIf (Predicate pred)
T * data () noexcept
const T * data () const noexcept
iterator begin () noexcept
const_iterator begin () const noexcept
const_iterator cbegin () const noexcept
iterator end () noexcept
const_iterator end () const noexcept
const_iterator cend () const noexcept
reverse_iterator rbegin () noexcept
const_reverse_iterator rbegin () const noexcept
const_reverse_iterator crbegin () const noexcept
reverse_iterator rend () noexcept
const_reverse_iterator rend () const noexcept
const_reverse_iterator crend () const noexcept
iterator erase (const_iterator begin, const_iterator end)
iterator erase (const_iterator pos)
void pop_back ()
reference front ()
const_reference front () const
reference back ()
const_reference back () const
Public Member Functions inherited from QVLABase< T >
T * data () noexcept
const T * data () const noexcept
iterator begin () noexcept
const_iterator begin () const noexcept
const_iterator cbegin () const noexcept
iterator end () noexcept
const_iterator end () const noexcept
const_iterator cend () const noexcept
reverse_iterator rbegin () noexcept
const_reverse_iterator rbegin () const noexcept
const_reverse_iterator crbegin () const noexcept
reverse_iterator rend () noexcept
const_reverse_iterator rend () const noexcept
const_reverse_iterator crend () const noexcept
reference front ()
const_reference front () const
reference back ()
const_reference back () const
void pop_back ()
template<typename AT = T>
qsizetype indexOf (const AT &t, qsizetype from=0) const
template<typename AT = T>
qsizetype lastIndexOf (const AT &t, qsizetype from=-1) const
template<typename AT = T>
bool contains (const AT &t) const
reference operator[] (qsizetype idx)
const_reference operator[] (qsizetype idx) const
value_type value (qsizetype i) const
value_type value (qsizetype i, const T &defaultValue) const
void replace (qsizetype i, const T &t)
void remove (qsizetype i, qsizetype n=1)
template<typename AT = T>
qsizetype removeAll (const AT &t)
template<typename AT = T>
bool removeOne (const AT &t)
template<typename Predicate>
qsizetype removeIf (Predicate pred)
void clear ()
iterator erase (const_iterator begin, const_iterator end)
iterator erase (const_iterator pos)
constexpr qsizetype max_size () const noexcept
size_t hash (size_t seed) const noexcept(QtPrivate::QNothrowHashable_v< T >)
template<typename AT>
Q_INLINE_TEMPLATE qsizetype indexOf (const AT &t, qsizetype from) const
template<typename AT>
Q_INLINE_TEMPLATE qsizetype lastIndexOf (const AT &t, qsizetype from) const
template<typename AT>
Q_INLINE_TEMPLATE bool contains (const AT &t) const
template<typename Iterator>
Q_OUTOFLINE_TEMPLATE void assign_impl (qsizetype prealloc, void *array, Iterator first, Iterator last, std::forward_iterator_tag)
template<typename Iterator>
Q_OUTOFLINE_TEMPLATE void assign_impl (qsizetype prealloc, void *array, Iterator first, Iterator last, std::input_iterator_tag)
template<typename Iterator>
Q_OUTOFLINE_TEMPLATE void assign_impl (qsizetype prealloc, void *array, Iterator first, Iterator last)
template<typename... Args>
Q_OUTOFLINE_TEMPLATE auto emplace_impl (qsizetype prealloc, void *array, const_iterator before, Args &&...args) -> iterator
Public Member Functions inherited from QVLABaseBase
constexpr size_type capacity () const noexcept
constexpr size_type size () const noexcept
constexpr bool empty () const noexcept

Additional Inherited Members

Public Types inherited from QVarLengthArray< T, Prealloc >
using size_type = typename Base::size_type
using value_type = typename Base::value_type
using pointer = typename Base::pointer
using const_pointer = typename Base::const_pointer
using reference = typename Base::reference
using const_reference = typename Base::const_reference
using difference_type = typename Base::difference_type
using iterator = typename Base::iterator
using const_iterator = typename Base::const_iterator
using reverse_iterator = typename Base::reverse_iterator
using const_reverse_iterator = typename Base::const_reverse_iterator
Public Types inherited from QVLABase< T >
using iterator = T*
using const_iterator = const T*
using reverse_iterator = std::reverse_iterator<iterator>
using const_reverse_iterator = std::reverse_iterator<const_iterator>
using value_type = T
using reference = value_type&
using const_reference = const value_type&
using pointer = value_type*
using const_pointer = const value_type*
using difference_type = qptrdiff
Public Types inherited from QVLABaseBase
using size_type = qsizetype
Static Public Member Functions inherited from QVLABase< T >
static constexpr qsizetype maxSize () noexcept
Static Public Attributes inherited from QVarLengthArray< T, Prealloc >
static constexpr qsizetype PreallocatedSize = Prealloc
Protected Types inherited from QVLABaseBase
using malloced_ptr = std::unique_ptr<void, free_deleter>
Protected Member Functions inherited from QVLAStorage< sizeof(T), alignof(T), Prealloc >
 QVLAStorage ()=default
Protected Member Functions inherited from QVLABase< T >
 QVLABase ()=default
void growBy (qsizetype prealloc, void *array, qsizetype increment)
template<typename... Args>
reference emplace_back_impl (qsizetype prealloc, void *array, Args &&...args)
template<typename... Args>
iterator emplace_impl (qsizetype prealloc, void *array, const_iterator pos, Args &&...arg)
iterator insert_impl (qsizetype prealloc, void *array, const_iterator pos, qsizetype n, const T &t)
template<typename S>
bool equal (const QVLABase< S > &other) const
template<typename S>
bool less_than (const QVLABase< S > &other) const
void append_impl (qsizetype prealloc, void *array, const T *buf, qsizetype n)
void reallocate_impl (qsizetype prealloc, void *array, qsizetype size, qsizetype alloc)
void resize_impl (qsizetype prealloc, void *array, qsizetype sz, const T &v)
void resize_impl (qsizetype prealloc, void *array, qsizetype sz)
void assign_impl (qsizetype prealloc, void *array, qsizetype n, const T &t)
template<typename Iterator>
void assign_impl (qsizetype prealloc, void *array, Iterator first, Iterator last, std::forward_iterator_tag)
template<typename Iterator>
void assign_impl (qsizetype prealloc, void *array, Iterator first, Iterator last, std::input_iterator_tag)
template<typename Iterator>
void assign_impl (qsizetype prealloc, void *array, Iterator first, Iterator last)
bool isValidIterator (const const_iterator &i) const
Protected Member Functions inherited from QVLABaseBase
 QVLABaseBase ()=default
Q_ALWAYS_INLINE constexpr void verify (qsizetype pos=0, qsizetype n=1) const
Protected Attributes inherited from QVLAStorage< sizeof(T), alignof(T), Prealloc >
char array [Prealloc *(Align > Size ? Align :Size)]
QT_WARNING_PUSH QT_WARNING_DISABLE_DEPRECATED
Protected Attributes inherited from QVLABaseBase
qsizetype a
qsizetype s
voidptr

Detailed Description

template<class T, int Prealloc>
class QQuickParticleVarLengthArray< T, Prealloc >

Definition at line 36 of file qquickparticlesystem_p.h.

Member Function Documentation

◆ insert()

template<class T, int Prealloc>
void QQuickParticleVarLengthArray< T, Prealloc >::insert ( const T & element)
inline

Definition at line 39 of file qquickparticlesystem_p.h.

◆ removeOne()

template<class T, int Prealloc>
bool QQuickParticleVarLengthArray< T, Prealloc >::removeOne ( const T & element)
inline

Definition at line 46 of file qquickparticlesystem_p.h.


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