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>.
|
#include <qcborvalue_p.h>
Public Types | |
enum | ContainerDisposition { CopyContainer , MoveContainer } |
Public Attributes | |
QByteArray::size_type | usedData = 0 |
QByteArray | data |
QList< QtCbor::Element > | elements |
Public Attributes inherited from QSharedData | |
QAtomicInt | ref |
Friends | |
class | QExplicitlySharedDataPointer< QCborContainerPrivate > |
Definition at line 98 of file qcborvalue_p.h.
Enumerator | |
---|---|
CopyContainer | |
MoveContainer |
Definition at line 104 of file qcborvalue_p.h.
Definition at line 143 of file qcborvalue_p.h.
References addByteDataImpl(), and usedData.
Referenced by appendAsciiString(), and replaceAt_complex().
|
inlinestatic |
Definition at line 116 of file qcborvalue_p.h.
References increment(), QtCbor::ByteData::len, and ptr().
Referenced by addByteData(), and compact().
|
inline |
Definition at line 252 of file qcborvalue_p.h.
References elements, insertAt(), and QList< T >::size().
Definition at line 240 of file qcborvalue_p.h.
References append(), and qToStringViewIgnoringNull().
Definition at line 209 of file qcborvalue_p.h.
References QList< T >::append(), elements, QCborValue::Tag, and tag.
Definition at line 205 of file qcborvalue_p.h.
References QList< T >::append(), elements, and QCborValue::Integer.
|
inline |
Definition at line 228 of file qcborvalue_p.h.
References appendByteData(), appendNonAsciiString(), QtPrivate::isAscii(), and QCborValue::String.
|
inline |
Definition at line 245 of file qcborvalue_p.h.
References appendAsciiString(), appendNonAsciiString(), and QtPrivate::isAscii().
|
inline |
Definition at line 201 of file qcborvalue_p.h.
References QList< T >::append(), and elements.
Referenced by QCborValue::QCborValue(), QCborValue::QCborValue(), QCborValue::QCborValue(), StashedContainer::~StashedContainer(), append(), and findOrAddMapKey().
Definition at line 220 of file qcborvalue_p.h.
References appendByteData(), str, and QCborValue::String.
Q_NEVER_INLINE void QCborContainerPrivate::appendAsciiString | ( | QStringView | s | ) |
Definition at line 1054 of file qcborvalue.cpp.
References addByteData(), QList< T >::append(), elements, QtCbor::Element::flags, ptr(), qt_to_latin1_unchecked(), QCborValue::String, QtCbor::Element::type, and QtCbor::Element::value.
|
inline |
Definition at line 213 of file qcborvalue_p.h.
Referenced by QCborValue::QCborValue(), append(), appendAsciiString(), appendNonAsciiString(), appendUtf8String(), and extractAt_complex().
void QCborContainerPrivate::appendNonAsciiString | ( | QStringView | s | ) |
Definition at line 1068 of file qcborvalue.cpp.
References appendByteData(), and QCborValue::String.
Referenced by append(), and append().
Definition at line 224 of file qcborvalue_p.h.
References appendByteData(), str, and QCborValue::String.
|
inline |
Definition at line 257 of file qcborvalue_p.h.
References QList< T >::at(), byteData(), elements, and QByteArray().
Referenced by QCborValue::toByteArray().
|
inline |
Definition at line 161 of file qcborvalue_p.h.
References QList< T >::at(), byteData(), and elements.
|
inline |
Definition at line 148 of file qcborvalue_p.h.
References QtCbor::Element::flags, Q_ASSERT, and QtCbor::Element::value.
Referenced by byteArrayAt(), byteData(), compact(), extractAt_complex(), replaceAt(), sortContainer(), stringAt(), stringCompareElement(), QCborValue::toDateTime(), QAnyStringViewUtils::toStringView(), QCborValue::toUrl(), and QCborValue::toUuid().
|
static |
Definition at line 946 of file qcborvalue.cpp.
References d, and QExplicitlySharedDataPointer< T >::take().
Referenced by detach(), and replaceAt_complex().
void QCborContainerPrivate::compact | ( | ) |
Definition at line 926 of file qcborvalue.cpp.
References addByteDataImpl(), byteData(), elements, and usedData.
Referenced by extractAt_complex(), and replaceAt_complex().
|
inline |
Definition at line 386 of file qcborvalue_p.h.
References QList< T >::at(), compareElement_helper(), elementFromValue(), and elements.
Referenced by QCborArray::contains(), and findCborMapKey().
|
inlinestaticnoexcept |
Definition at line 1336 of file qcborvalue.cpp.
References c2, and compareElementRecursive().
Referenced by compareElement().
|
inlinestatic |
Definition at line 343 of file qcborvalue_p.h.
References QUtf8::compareUtf8().
Referenced by sortContainer(), and stringCompareElement().
|
inlinestatic |
Definition at line 348 of file qcborvalue_p.h.
References QUtf8::compareUtf8().
|
inline |
Definition at line 166 of file qcborvalue_p.h.
References QList< T >::at(), QtCbor::Element::container, elements, QtCbor::Element::flags, and QtCbor::Element::type.
|
inline |
Definition at line 110 of file qcborvalue_p.h.
Referenced by extractAt(), findOrAddMapKey(), replaceAt(), and sortContainer().
|
static |
Definition at line 969 of file qcborvalue.cpp.
Referenced by convertArrayToMap(), findOrAddMapKey(), and grow().
|
inlinestatic |
Definition at line 328 of file qcborvalue_p.h.
References QtCbor::Element::container, QtCbor::Element::flags, QtCbor::Element::type, and QtCbor::Element::value.
Referenced by QCborValue::compare(), compareElement(), QCborValueConstRef::comparesEqual_helper(), and QCborValueConstRef::compareThreeWay_helper().
|
inline |
Definition at line 310 of file qcborvalue_p.h.
References QtCbor::Element::container, deref(), elements, extractAt_complex(), QtCbor::Element::flags, QCborValue::Invalid, makeValue(), MoveContainer, qSwap(), QList< T >::size(), QCborValue::Tag, QtCbor::Element::type, and QtCbor::Element::value.
Referenced by QCborArray::extract(), and QCborMap::extract().
QCborValue QCborContainerPrivate::extractAt_complex | ( | QtCbor::Element | e | ) |
Definition at line 1074 of file qcborvalue.cpp.
References appendByteData(), byteData(), compact(), data, QtCbor::Element::flags, makeValue(), Q_ASSERT, QByteArray::reserve(), QtCbor::Element::type, and usedData.
Referenced by extractAt().
|
inlinestatic |
Definition at line 419 of file qcborvalue_p.h.
References elements, QCborValue(), and QList< T >::size().
|
inline |
Definition at line 400 of file qcborvalue_p.h.
References QList< T >::at(), compareElement(), elements, QtCbor::ForEquality, i, QCborValue::Integer, QList< T >::size(), and stringEqualsElement().
Referenced by QCborMap::constFind(), QCborMap::constFind(), QCborMap::constFind(), QCborMap::constFind(), findOrAddMapKey(), QCborValue::operator[](), QCborValue::operator[](), and QCborValue::operator[]().
|
inlinestatic |
Definition at line 429 of file qcborvalue_p.h.
References append(), detach(), elements, findCborMapKey(), i, Q_ASSERT, QCborValue(), qMax(), and QList< T >::size().
Referenced by QCborMap::operator[](), QCborValue::operator[](), QCborMap::operator[](), QCborValue::operator[](), QCborMap::operator[](), and QCborValue::operator[]().
|
inlinestatic |
Definition at line 769 of file qcbormap.cpp.
References map.
|
inlinestatic |
Definition at line 2485 of file qcborvalue.cpp.
References assignContainer(), convertArrayToMap(), QCborValue::Map, and QCborValue().
|
static |
Definition at line 2501 of file qcborvalue.cpp.
References QCborValue::Array, assignContainer(), QtCbor::Element::container, convertArrayToMap(), deref(), QtCbor::Element::flags, QCborValue::Map, and QtCbor::Element::type.
|
static |
Prepare for an insertion at position index.
Detaches and ensures there are at least index entries in the array, padding with Undefined as needed.
Definition at line 982 of file qcborvalue.cpp.
References d, detach(), j, Q_ASSERT, and Undefined.
Referenced by QCborArray::insert(), QCborArray::insert(), and maybeGrow().
|
inline |
Definition at line 196 of file qcborvalue_p.h.
References elements, QList< T >::insert(), and replaceAt_internal().
Referenced by append(), QCborArray::insert(), and QCborArray::insert().
|
inlinestatic |
Definition at line 283 of file qcborvalue_p.h.
References CopyContainer, and d.
Referenced by StashedContainer::~StashedContainer(), extractAt(), extractAt_complex(), QJsonPrivate::Parser::parse(), and valueAt().
Definition at line 393 of file qcborvalue_p.h.
References elements, QList< T >::remove(), and replaceAt().
Referenced by QCborMap::erase(), QCborArray::extract(), QCborMap::extract(), and QCborArray::removeAt().
|
inline |
Definition at line 184 of file qcborvalue_p.h.
References byteData(), QtCbor::Element::container, deref(), elements, QtCbor::Element::flags, replaceAt_internal(), and usedData.
Referenced by removeAt().
void QCborContainerPrivate::replaceAt_complex | ( | QtCbor::Element & | e, |
const QCborValue & | value, | ||
ContainerDisposition | disp ) |
Definition at line 998 of file qcborvalue.cpp.
References addByteData(), QList< T >::at(), clone(), compact(), QtCbor::Element::container, CopyContainer, d, elements, QtCbor::Element::flags, MoveContainer, Q_ASSERT, Q_UNLIKELY, QBasicAtomicInteger< T >::ref(), QSharedData::ref, QtCbor::Element::type, and QtCbor::Element::value.
Referenced by replaceAt_internal().
|
inline |
Definition at line 175 of file qcborvalue_p.h.
References QtCbor::Element::container, replaceAt_complex(), and QtCbor::Element::type.
Referenced by insertAt(), and replaceAt().
|
inlinestatic |
Definition at line 278 of file qcborvalue_p.h.
Referenced by QCborArray::insert().
Definition at line 265 of file qcborvalue_p.h.
References QList< T >::at(), byteData(), and elements.
Referenced by QJsonValueConstRef::concreteString(), QJsonObject::keys(), QJsonValueConstRef::objectKey(), and QCborValue::toString().
|
inline |
Definition at line 354 of file qcborvalue_p.h.
References byteData(), QtPrivate::compareStrings(), compareUtf8(), QtPrivate::equalStrings(), QtCbor::Element::flags, QtCbor::ForEquality, QCborValue::String, and QtCbor::Element::type.
Referenced by stringEqualsElement().
|
inline |
Definition at line 372 of file qcborvalue_p.h.
References QtCbor::ForEquality, and stringCompareElement().
Referenced by findCborMapKey(), and stringEqualsElement().
|
inline |
Definition at line 378 of file qcborvalue_p.h.
References QList< T >::at(), elements, and stringEqualsElement().
|
inline |
Definition at line 294 of file qcborvalue_p.h.
References QList< T >::at(), elements, QCborValue::Invalid, makeValue(), and QCborValue::Tag.
Referenced by QCborArray::at(), QCborMap::keys(), QCborValueConstRef::operator[](), QCborValue::operator[](), QCborValueConstRef::operator[](), QCborValueConstRef::operator[](), and QCborValue::taggedValue().
|
friend |
Definition at line 90 of file qcborvalue_p.h.
QByteArray QCborContainerPrivate::data |
Definition at line 107 of file qcborvalue_p.h.
Referenced by extractAt_complex(), QCborMap::fromVariantHash(), and QCborMap::fromVariantMap().
QList<QtCbor::Element> QCborContainerPrivate::elements |
Definition at line 108 of file qcborvalue_p.h.
Referenced by QCborValue::QCborValue(), QCborValue::QCborValue(), append(), append(), append(), append(), appendAsciiString(), byteArrayAt(), byteData(), compact(), compareElement(), QJsonValueConstRef::concreteString(), containerAt(), extractAt(), findCborMapKey(), findCborMapKey(), findOrAddMapKey(), insertAt(), QJsonObject::isEmpty(), QCborMap::keys(), QJsonObject::keys(), QCborValue::operator[](), removeAt(), replaceAt(), replaceAt_complex(), shouldArrayRemainArray(), QJsonObject::size(), QCborArray::size(), QCborMap::size(), sortContainer(), stringAt(), stringEqualsElement(), QCborValue::tag(), QCborValue::taggedValue(), QCborValue::toDateTime(), QAnyStringViewUtils::toStringView(), QCborValue::toUrl(), QCborValue::toUuid(), and valueAt().
QByteArray::size_type QCborContainerPrivate::usedData = 0 |
Definition at line 106 of file qcborvalue_p.h.
Referenced by addByteData(), compact(), extractAt_complex(), and replaceAt().