![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qvarlengtharray.h>
Public Types | |
| 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 |
Public Member Functions | |
| 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 |
Static Public Member Functions | |
| static constexpr qsizetype | maxSize () noexcept |
Protected Member Functions | |
| 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 |
Additional Inherited Members | |
| Protected Types inherited from QVLABaseBase | |
| using | malloced_ptr = std::unique_ptr<void, free_deleter> |
| Protected Attributes inherited from QVLABaseBase | |
| qsizetype | a |
| qsizetype | s |
| void * | ptr |
Definition at line 84 of file qvarlengtharray.h.
| using QVLABase< T >::const_iterator = const T* |
Definition at line 95 of file qvarlengtharray.h.
| using QVLABase< T >::const_pointer = const value_type* |
Definition at line 118 of file qvarlengtharray.h.
| using QVLABase< T >::const_reference = const value_type& |
Definition at line 116 of file qvarlengtharray.h.
| using QVLABase< T >::const_reverse_iterator = std::reverse_iterator<const_iterator> |
Definition at line 105 of file qvarlengtharray.h.
Definition at line 119 of file qvarlengtharray.h.
| using QVLABase< T >::iterator = T* |
Definition at line 94 of file qvarlengtharray.h.
| using QVLABase< T >::pointer = value_type* |
Definition at line 117 of file qvarlengtharray.h.
| using QVLABase< T >::reference = value_type& |
Definition at line 115 of file qvarlengtharray.h.
Definition at line 104 of file qvarlengtharray.h.
| using QVLABase< T >::value_type = T |
Definition at line 114 of file qvarlengtharray.h.
|
protecteddefault |
|
protected |
Definition at line 797 of file qvarlengtharray.h.
References end().
| Q_OUTOFLINE_TEMPLATE void QVLABase< T >::assign_impl | ( | qsizetype | prealloc, |
| void * | array, | ||
| Iterator | first, | ||
| Iterator | last ) |
Definition at line 898 of file qvarlengtharray.h.
|
protected |
| Q_OUTOFLINE_TEMPLATE void QVLABase< T >::assign_impl | ( | qsizetype | prealloc, |
| void * | array, | ||
| Iterator | first, | ||
| Iterator | last, | ||
| std::forward_iterator_tag | ) |
Definition at line 835 of file qvarlengtharray.h.
|
protected |
| Q_OUTOFLINE_TEMPLATE void QVLABase< T >::assign_impl | ( | qsizetype | prealloc, |
| void * | array, | ||
| Iterator | first, | ||
| Iterator | last, | ||
| std::input_iterator_tag | ) |
Definition at line 871 of file qvarlengtharray.h.
|
protected |
|
protected |
Definition at line 817 of file qvarlengtharray.h.
Definition at line 133 of file qvarlengtharray.h.
References rbegin().
|
inline |
Definition at line 139 of file qvarlengtharray.h.
References rbegin().
|
inlinenoexcept |
Definition at line 98 of file qvarlengtharray.h.
Referenced by QVLABase< KeyValuePair >::assign_impl(), QVLABase< KeyValuePair >::assign_impl(), cbegin(), QVLABase< KeyValuePair >::contains(), QVLABase< KeyValuePair >::emplace_impl(), equal(), front(), front(), hash(), insert_impl(), less_than(), and rend().
Definition at line 97 of file qvarlengtharray.h.
|
inlinenoexcept |
Definition at line 99 of file qvarlengtharray.h.
References begin().
Referenced by QVLABase< KeyValuePair >::emplace_impl(), insert_impl(), and isValidIterator().
|
inlinenoexcept |
Definition at line 102 of file qvarlengtharray.h.
References end().
Referenced by isValidIterator().
Definition at line 183 of file qvarlengtharray.h.
| Q_INLINE_TEMPLATE bool QVLABase< T >::contains | ( | const AT & | t | ) | const |
Definition at line 785 of file qvarlengtharray.h.
|
inlinenoexcept |
Definition at line 109 of file qvarlengtharray.h.
References rbegin().
|
inlinenoexcept |
Definition at line 112 of file qvarlengtharray.h.
References rend().
Definition at line 92 of file qvarlengtharray.h.
Definition at line 91 of file qvarlengtharray.h.
|
inlineprotected |
Definition at line 211 of file qvarlengtharray.h.
| Q_OUTOFLINE_TEMPLATE auto QVLABase< T >::emplace_impl | ( | qsizetype | prealloc, |
| void * | array, | ||
| const_iterator | before, | ||
| Args &&... | args ) -> iterator |
Definition at line 1008 of file qvarlengtharray.h.
|
protected |
|
inlinenoexcept |
Definition at line 101 of file qvarlengtharray.h.
Referenced by append_impl(), QVLABase< KeyValuePair >::assign_impl(), QVLABase< KeyValuePair >::assign_impl(), cend(), QVLABase< KeyValuePair >::contains(), QVLABase< KeyValuePair >::emplace_impl(), equal(), erase(), hash(), insert_impl(), less_than(), and rbegin().
Definition at line 100 of file qvarlengtharray.h.
|
inlineprotected |
Definition at line 225 of file qvarlengtharray.h.
References begin(), and end().
| Q_OUTOFLINE_TEMPLATE auto QVLABase< T >::erase | ( | const_iterator | begin, |
| const_iterator | end ) |
Definition at line 1036 of file qvarlengtharray.h.
References end(), and isValidIterator().
|
inline |
Definition at line 191 of file qvarlengtharray.h.
Definition at line 121 of file qvarlengtharray.h.
References begin().
|
inline |
Definition at line 127 of file qvarlengtharray.h.
References begin().
|
inlineprotected |
Definition at line 208 of file qvarlengtharray.h.
|
inlinenoexcept |
Definition at line 203 of file qvarlengtharray.h.
References begin(), and end().
| Q_INLINE_TEMPLATE qsizetype QVLABase< T >::indexOf | ( | const AT & | t, |
| qsizetype | from ) const |
Definition at line 750 of file qvarlengtharray.h.
| qsizetype QVLABase< T >::indexOf | ( | const AT & | t, |
| qsizetype | from = 0 ) const |
|
protected |
Definition at line 1023 of file qvarlengtharray.h.
References begin(), cbegin(), end(), and isValidIterator().
|
inlineprotected |
Definition at line 273 of file qvarlengtharray.h.
References cbegin(), and cend().
Referenced by QVLABase< KeyValuePair >::emplace_impl(), erase(), and insert_impl().
| Q_INLINE_TEMPLATE qsizetype QVLABase< T >::lastIndexOf | ( | const AT & | t, |
| qsizetype | from ) const |
Definition at line 766 of file qvarlengtharray.h.
| qsizetype QVLABase< T >::lastIndexOf | ( | const AT & | t, |
| qsizetype | from = -1 ) const |
|
inlineprotected |
Definition at line 230 of file qvarlengtharray.h.
References begin(), and end().
Definition at line 198 of file qvarlengtharray.h.
Definition at line 193 of file qvarlengtharray.h.
Definition at line 160 of file qvarlengtharray.h.
|
inline |
Definition at line 165 of file qvarlengtharray.h.
Definition at line 145 of file qvarlengtharray.h.
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 107 of file qvarlengtharray.h.
|
protected |
Definition at line 905 of file qvarlengtharray.h.
References QVLABaseBase::ptr.
Definition at line 975 of file qvarlengtharray.h.
Definition at line 980 of file qvarlengtharray.h.
|
inline |
Definition at line 988 of file qvarlengtharray.h.
Definition at line 984 of file qvarlengtharray.h.
|
inlinenoexcept |
Definition at line 111 of file qvarlengtharray.h.
References begin().
Referenced by crend().
|
inlinenoexcept |
Definition at line 110 of file qvarlengtharray.h.
Definition at line 1000 of file qvarlengtharray.h.
|
inlineprotected |
Definition at line 249 of file qvarlengtharray.h.
|
inlineprotected |
Definition at line 237 of file qvarlengtharray.h.
Definition at line 950 of file qvarlengtharray.h.
| Q_OUTOFLINE_TEMPLATE T QVLABase< T >::value | ( | qsizetype | i, |
| const T & | defaultValue ) const |
Definition at line 957 of file qvarlengtharray.h.