Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qjsonvalue.cpp File Reference
#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)
 
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 905 of file qjsonvalue.cpp.

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

+ Here is the call graph for this function:

◆ 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 141 of file qjsonvalue.cpp.

◆ operator<<() [1/2]

QDataStream & operator<< ( QDataStream stream,
const QJsonValue v 
)

Definition at line 1146 of file qjsonvalue.cpp.

◆ operator<<() [2/2]

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

Definition at line 1105 of file qjsonvalue.cpp.

◆ operator>>()

◆ qHash()

size_t qHash ( const QJsonValue value,
size_t  seed 
)

Definition at line 1083 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: