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>.
Loading...
Searching...
No Matches
qjsonobject.cpp File Reference

(de2a467a77f338d4b1e0a5044b809bdaf413ca72)

#include <qjsonobject.h>
#include <qjsonvalue.h>
#include <qjsonarray.h>
#include <qjsondocument.h>
#include <qstringlist.h>
#include <qdebug.h>
#include <qvariant.h>
#include <qcbormap.h>
#include <qmap.h>
#include <qhash.h>
#include <private/qcborvalue_p.h>
#include "qjsonwriter_p.h"
#include "qjson_p.h"
#include <algorithm>
+ Include dependency graph for qjsonobject.cpp:

Go to the source code of this file.

Functions

template<typename String >
static qsizetype indexOf (const QExplicitlySharedDataPointer< QCborContainerPrivate > &o, String key, bool *keyExists)
 
bool comparesEqual (const QJsonObject &lhs, const QJsonObject &rhs) noexcept
 
size_t qHash (const QJsonObject &object, size_t seed)
 
QDebug operator<< (QDebug dbg, const QJsonObject &o)
 
QDataStreamoperator<< (QDataStream &stream, const QJsonObject &object)
 
QDataStreamoperator>> (QDataStream &stream, QJsonObject &object)
 

Function Documentation

◆ comparesEqual()

bool comparesEqual ( const QJsonObject & lhs,
const QJsonObject & rhs )
noexcept

Definition at line 624 of file qjsonobject.cpp.

◆ indexOf()

template<typename String >
static qsizetype indexOf ( const QExplicitlySharedDataPointer< QCborContainerPrivate > & o,
String key,
bool * keyExists )
static

Definition at line 263 of file qjsonobject.cpp.

References begin(), QtCbor::ForOrdering, it, and o.

+ Here is the call graph for this function:

◆ operator<<() [1/2]

QDataStream & operator<< ( QDataStream & stream,
const QJsonObject & object )

Definition at line 1446 of file qjsonobject.cpp.

References QJsonDocument::Compact, and QJsonDocument::toJson().

+ Here is the call graph for this function:

◆ operator<<() [2/2]

QDebug operator<< ( QDebug dbg,
const QJsonObject & o )

Definition at line 1429 of file qjsonobject.cpp.

◆ operator>>()

QDataStream & operator>> ( QDataStream & stream,
QJsonObject & object )

Definition at line 1453 of file qjsonobject.cpp.

References QJsonDocument::object().

+ Here is the call graph for this function:

◆ qHash()

size_t qHash ( const QJsonObject & object,
size_t seed )

Definition at line 1417 of file qjsonobject.cpp.

References begin(), hash, it, and seed.

+ Here is the call graph for this function: