7#include <QtCore/qjsonvalue.h>
8#include <QtCore/qiterator.h>
9#include <QtCore/qshareddata.h>
10#include <initializer_list>
97 {
return item.d ==
o.item.d &&
item.index ==
o.item.index; }
106 {
return item.d ==
o.item.d &&
item.index ==
o.item.index; }
155 {
return item.d ==
o.item.d &&
item.index ==
o.item.index; }
189 {
insert(before.item.index,
value);
return before; }
191 { removeAt(
it.item.index);
return it; }
210 inline bool empty()
const {
return isEmpty(); }
236#if QT_VERSION >= QT_VERSION_CHECK(7, 0, 0) || defined(QT_BOOTSTRAPPED)
244#if !defined(QT_NO_DEBUG_STREAM) && !defined(QT_JSON_READONLY)
248#ifndef QT_NO_DATASTREAM
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
QJsonValueConstRef operator[](qsizetype j) const
Returns the item at offset j from the item pointed to by this iterator (the item at position {*this +...
qsizetype operator-(const_iterator j) const
Returns the number of items between the item pointed to by other and the item pointed to by this iter...
const QJsonValueConstRef operator*() const
Returns the current item.
bool operator>=(const const_iterator &other) const
Returns true if the item pointed to by this iterator is greater than or equal to the item pointed to ...
bool operator>(const const_iterator &other) const
Returns true if the item pointed to by this iterator is greater than the item pointed to by the other...
const_iterator(const iterator &o)
Constructs a copy of other.
const_iterator & operator=(const const_iterator &other)
const_iterator & operator-=(qsizetype j)
Makes the iterator go back by j items.
std::random_access_iterator_tag iterator_category
A synonym for {std::random_access_iterator_tag} indicating this iterator is a random access iterator.
const_iterator & operator++()
The prefix {++} operator, {++it}, advances the iterator to the next item in the array and returns an ...
const_iterator & operator--()
The prefix {–} operator, {–it}, makes the preceding item current and returns an iterator to the new c...
const_iterator(const QJsonArray *array, qsizetype index)
bool operator<=(const const_iterator &other) const
Returns true if the item pointed to by this iterator is less than or equal to the item pointed to by ...
bool operator==(const const_iterator &o) const
Returns true if other points to the same item as this iterator; otherwise returns false.
const_iterator operator-(qsizetype j) const
Returns an iterator to the item at j positions backward from this iterator.
const QJsonValueConstRef * operator->() const
Returns a pointer to the current item.
const QJsonValueRef * pointer
constexpr const_iterator(const const_iterator &other)=default
const QJsonValueRef reference
bool operator<(const const_iterator &other) const
Returns true if the item pointed to by this iterator is less than the item pointed to by the other it...
bool operator!=(const const_iterator &o) const
Returns true if other points to a different item than this iterator; otherwise returns false.
const_iterator operator+(qsizetype j) const
Returns an iterator to the item at j positions forward from this iterator.
const_iterator operator++(int)
This is an overloaded member function, provided for convenience. It differs from the above function o...
const_iterator()
Constructs an uninitialized iterator.
const_iterator & operator+=(qsizetype j)
Advances the iterator by j items.
const_iterator operator--(int)
This is an overloaded member function, provided for convenience. It differs from the above function o...
iterator & operator+=(qsizetype j)
Advances the iterator by j items.
bool operator!=(const iterator &o) const
iterator & operator++()
The prefix {++} operator, {++it}, advances the iterator to the next item in the array and returns an ...
bool operator>=(const iterator &other) const
iterator & operator--()
The prefix {–} operator, {–it}, makes the preceding item current and returns an iterator to the new c...
qsizetype operator-(iterator j) const
Returns the number of items between the item pointed to by other and the item pointed to by this iter...
iterator & operator=(const iterator &other)
iterator operator+(qsizetype j) const
Returns an iterator to the item at j positions forward from this iterator.
bool operator!=(const const_iterator &o) const
Returns true if other points to a different item than this iterator; otherwise returns false.
QJsonValueRef * operator->()
bool operator>(const const_iterator &other) const
Returns true if the item pointed to by this iterator is greater than the item pointed to by the other...
const QJsonValueConstRef * operator->() const
Returns a pointer to a modifiable reference to the current item.
iterator(QJsonArray *array, qsizetype index)
QJsonValueRef operator*() const
Returns a modifiable reference to the current item.
iterator operator-(qsizetype j) const
Returns an iterator to the item at j positions backward from this iterator.
QJsonValueRef operator[](qsizetype j) const
Returns a modifiable reference to the item at offset j from the item pointed to by this iterator (the...
constexpr iterator(const iterator &other)=default
iterator()
Constructs an uninitialized iterator.
bool operator<(const const_iterator &other) const
Returns true if the item pointed to by this iterator is less than the item pointed to by the other it...
std::random_access_iterator_tag iterator_category
A synonym for {std::random_access_iterator_tag} indicating this iterator is a random access iterator.
qsizetype difference_type
bool operator==(const const_iterator &o) const
Returns true if other points to the same item as this iterator; otherwise returns false.
iterator operator--(int)
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool operator>(const iterator &other) const
iterator operator++(int)
This is an overloaded member function, provided for convenience. It differs from the above function o...
iterator & operator-=(qsizetype j)
Makes the iterator go back by j items.
bool operator==(const iterator &o) const
bool operator<=(const const_iterator &other) const
Returns true if the item pointed to by this iterator is less than or equal to the item pointed to by ...
bool operator<=(const iterator &other) const
bool operator>=(const const_iterator &other) const
Returns true if the item pointed to by this iterator is greater than or equal to the item pointed to ...
bool operator<(const iterator &other) const
\inmodule QtCore\reentrant
void pop_front()
This function is provided for STL compatibility.
bool empty() const
This function is provided for STL compatibility.
~QJsonArray()
Deletes the array.
iterator end()
Returns an \l{STL-style iterators}{STL-style iterator} pointing to the imaginary item after the last ...
qsizetype difference_type
Typedef for qsizetype.
QJsonArray(const QJsonArray &other) noexcept
Creates a copy of other.
qsizetype size_type
Typedef for qsizetype.
iterator Iterator
Qt-style synonym for QJsonArray::iterator.
const_iterator end() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
QJsonArray()
Creates an empty array.
QJsonValue const_reference
Typedef for const QJsonValue &.
QJsonArray operator+(const QJsonValue &v) const
Returns an array that contains all the items in this array followed by the provided value.
iterator insert(iterator before, const QJsonValue &value)
Inserts value before the position pointed to by before, and returns an iterator pointing to the newly...
value_type * pointer
Typedef for QJsonValue *.
const_iterator cend() const
Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the imaginary item after the ...
void pop_back()
This function is provided for STL compatibility.
void push_front(const QJsonValue &t)
This function is provided for STL compatibility.
const_iterator constBegin() const
Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the first item in the array.
const_iterator constEnd() const
Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the imaginary item after the ...
QJsonValueRef reference
Typedef for QJsonValue &.
void removeFirst()
Removes the first item in the array.
iterator erase(iterator it)
Removes the item pointed to by it, and returns an iterator pointing to the next item.
const_iterator cbegin() const
Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the first item in the array.
qsizetype count() const
Same as size().
QJsonArray & operator+=(const QJsonValue &v)
Appends value to the array, and returns a reference to the array itself.
const value_type * const_pointer
Typedef for const QJsonValue *.
void swap(QJsonArray &other) noexcept
const_iterator begin() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
iterator begin()
Returns an \l{STL-style iterators}{STL-style iterator} pointing to the first item in the array.
const_iterator ConstIterator
Qt-style synonym for QJsonArray::const_iterator.
QJsonValue value_type
Typedef for QJsonValue.
void push_back(const QJsonValue &t)
This function is provided for STL compatibility.
void removeLast()
Removes the last item in the array.
\inmodule QtCore\reentrant
QJsonValueConstRef(const QJsonValueConstRef &)=default
\inmodule QtCore \reentrant
\inmodule QtCore\reentrant
list append(new Employee("Blackpool", "Stephen"))
cache insert(employee->id(), employee)
QSet< QString >::iterator it
Combined button and popup list for selecting options.
constexpr bool operator!=(const timespec &t1, const timespec &t2)
constexpr timespec operator+(const timespec &t1, const timespec &t2)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
Q_CORE_EXPORT QDataStream & operator>>(QDataStream &, QJsonArray &)
Q_CORE_EXPORT QDebug operator<<(QDebug, const QJsonArray &)
Q_CORE_EXPORT size_t qHash(const QJsonArray &array, size_t seed=0)
QList< QVariant > QVariantList
static bool contains(const QJsonArray &haystack, unsigned needle)
GLsizei const GLfloat * v
[13]
GLboolean GLboolean GLboolean GLboolean a
[7]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
unsigned long long quint64