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
qjsonvalue.cpp File Reference

(839cffd5212cc1437661e9c650eb2ff4b19fa4e8)

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

Go to the source code of this file.

Functions

static QT_BEGIN_NAMESPACE QJsonValue::Type convertFromCborType (QCborValue::Type type) noexcept
 
static QCborValue doubleValueHelper (double v)
 
bool comparesEqual (const QJsonValue &lhs, const QJsonValue &rhs) noexcept
 
static QJsonValueRefassignToRef (QJsonValueRef &ref, const QCborValue &value, bool is_object)
 
size_t qHash (const QJsonValue &value, size_t seed)
 
QDebug operator<< (QDebug dbg, const QJsonValue &o)
 
QDataStreamoperator<< (QDataStream &stream, const QJsonValue &v)
 
QDataStreamoperator>> (QDataStream &stream, QJsonValue &v)
 

Function Documentation

◆ assignToRef()

static QJsonValueRef & assignToRef ( QJsonValueRef & ref,
const QCborValue & value,
bool is_object )
static

Definition at line 911 of file qjsonvalue.cpp.

References QJsonPrivate::Value::container(), d, and QJsonPrivate::Value::indexHelper().

+ Here is the call graph for this function:

◆ comparesEqual()

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

Definition at line 834 of file qjsonvalue.cpp.

◆ convertFromCborType()

static QT_BEGIN_NAMESPACE QJsonValue::Type convertFromCborType ( QCborValue::Type type)
staticnoexcept

Definition at line 28 of file qjsonvalue.cpp.

References QCborValue::Array, QJsonValue::Array, QJsonValue::Bool, QCborValue::Double, QJsonValue::Double, QCborValue::False, QCborValue::Integer, QCborValue::Map, QCborValue::Null, QJsonValue::Null, QJsonValue::Object, QCborValue::String, QJsonValue::String, QCborValue::True, QCborValue::Undefined, and QJsonValue::Undefined.

Referenced by QJsonValueConstRef::concreteType(), and QJsonValue::type().

+ Here is the caller graph for this function:

◆ doubleValueHelper()

static QCborValue doubleValueHelper ( double v)
inlinestatic

Definition at line 145 of file qjsonvalue.cpp.

◆ operator<<() [1/2]

◆ operator<<() [2/2]

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

Definition at line 1113 of file qjsonvalue.cpp.

◆ operator>>()

◆ qHash()

size_t qHash ( const QJsonValue & value,
size_t seed )

Definition at line 1091 of file qjsonvalue.cpp.

References QJsonValue::Array, QJsonValue::Bool, QJsonValue::Double, QJsonValue::Null, QJsonValue::Object, qHash(), seed, QJsonValue::String, and QJsonValue::Undefined.

Referenced by qHash().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: