761 return QCborContainerPrivate::findOrAddMapKey<const QCborValue &>(*
this,
key);
764template <
typename KeyType>
inline QCborValueRef
767 QCborValueRef
result = findOrAddMapKey<KeyType>(
map.d.data(),
key);
795 return { d.
data(),
it.item.i };
820 return { d.
data(),
it.item.i };
845 return { d.
data(),
it.item.i };
870 return { d.
data(),
it.item.i };
1164void QCborMap::detach(
qsizetype reserved)
1686#if !defined(QT_NO_DEBUG_STREAM)
1690 dbg.nospace() <<
"QCborMap{";
1691 const char *
open =
"{";
1692 for (
auto pair :
m) {
1693 dbg <<
open << pair.first <<
", " << pair.second <<
'}';
1700#ifndef QT_NO_DATASTREAM
1701#if QT_CONFIG(cborstreamwriter)
1714 value = QCborValue::fromCbor(
buffer, &parseError).toMap();
1715 if (parseError.error)
static QCborContainerPrivate * detach(QCborContainerPrivate *d, qsizetype reserved)
void removeAt(qsizetype idx)
QCborValueConstRef findCborMapKey(KeyType key)
QList< QtCbor::Element > elements
QCborValue extractAt(qsizetype idx)
static QCborValueRef findOrAddMapKey(QCborContainerPrivate *container, KeyType key)
QCborValue valueAt(qsizetype idx) const
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
QList< QCborValue > keys() const
Returns a list of all keys in this map.
iterator erase(iterator it)
This is an overloaded member function, provided for convenience. It differs from the above function o...
const_iterator constFind(qint64 key) const
Returns a map iterator to the key-value pair whose key is key, if the map contains such a pair.
QCborValue extract(iterator it)
QCborMap & operator=(const QCborMap &other) noexcept
Replaces the contents of this object with a copy of other, then returns a reference to this object.
void clear()
Empties this map.
QCborMap() noexcept
Constructs an empty CBOR Map object.
iterator find(qint64 key)
~QCborMap()
Destroys this QCborMap object and frees any associated resources it owns.
const QCborValue operator[](qint64 key) const
Returns the QCborValue element in this map that corresponds to key key, if there is one.
const_iterator constEnd() const
Returns a map iterator representing an element just past the last element in the map.
qsizetype size() const noexcept Q_DECL_PURE_FUNCTION
Returns the number of elements in this map.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
void reset(T *ptr=nullptr) noexcept
T * data() const noexcept
Returns a pointer to the shared data object.
qsizetype size() const noexcept
\macro QT_RESTRICTED_CAST_FROM_ASCII
QMap< QString, QString > map
[6]
QSet< QString >::iterator it
Combined button and popup list for selecting options.
QDebug operator<<(QDebug dbg, const QCborMap &m)
size_t qHash(const QCborMap &map, size_t seed)
QDataStream & operator>>(QDataStream &stream, QCborMap &value)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
size_t qHashRange(InputIterator first, InputIterator last, size_t seed=0) noexcept(noexcept(qHash(*first)))
GLsizei const GLfloat * v
[13]
GLenum GLuint GLintptr GLsizeiptr size
[1]
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
QStringView qToStringViewIgnoringNull(const QStringLike &s) noexcept
file open(QIODevice::ReadOnly)
\inmodule QtCore\reentrant