![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qjsonvalue.h>
Public Member Functions | |
QJsonValueConstRef (const QJsonValueConstRef &)=default | |
QJsonValueConstRef & | operator= (const QJsonValueConstRef &)=delete |
operator QJsonValue () const | |
Q_CORE_EXPORT QVariant | toVariant () const |
QJsonValue::Type | type () const |
bool | isNull () const |
bool | isBool () const |
bool | isDouble () const |
bool | isString () const |
bool | isArray () const |
bool | isObject () const |
bool | isUndefined () const |
bool | toBool (bool defaultValue=false) const |
int | toInt (int defaultValue=0) const |
qint64 | toInteger (qint64 defaultValue=0) const |
double | toDouble (double defaultValue=0) const |
QString | toString (const QString &defaultValue={}) const |
QAnyStringView | toStringView (QAnyStringView defaultValue={}) const |
Q_CORE_EXPORT QJsonArray | toArray () const |
Q_CORE_EXPORT QJsonObject | toObject () const |
const QJsonValue | operator[] (QStringView key) const |
const QJsonValue | operator[] (QLatin1StringView key) const |
const QJsonValue | operator[] (qsizetype i) const |
Protected Member Functions | |
QString | objectKey () const |
QAnyStringView | objectKeyView () const |
constexpr | QJsonValueConstRef (QCborContainerPrivate *d, size_t index, bool is_object) |
QJsonValueConstRef (QJsonArray *array, qsizetype idx) | |
QJsonValueConstRef (QJsonObject *object, qsizetype idx) | |
void | rebind (QJsonValueConstRef other) |
Static Protected Member Functions | |
static Q_CORE_EXPORT QJsonValue::Type | concreteType (QJsonValueConstRef self) noexcept Q_DECL_PURE_FUNCTION |
static Q_CORE_EXPORT bool | concreteBool (QJsonValueConstRef self, bool defaultValue) noexcept Q_DECL_PURE_FUNCTION |
static Q_CORE_EXPORT qint64 | concreteInt (QJsonValueConstRef self, qint64 defaultValue, bool clamp) noexcept Q_DECL_PURE_FUNCTION |
static Q_CORE_EXPORT double | concreteDouble (QJsonValueConstRef self, double defaultValue) noexcept Q_DECL_PURE_FUNCTION |
static Q_CORE_EXPORT QString | concreteString (QJsonValueConstRef self, const QString &defaultValue) |
static Q_CORE_EXPORT QAnyStringView | concreteStringView (QJsonValueConstRef self, QAnyStringView defaultValue) |
static Q_CORE_EXPORT QJsonValue | concrete (QJsonValueConstRef self) noexcept |
static Q_CORE_EXPORT QString | objectKey (QJsonValueConstRef self) |
static Q_CORE_EXPORT QAnyStringView | objectKeyView (QJsonValueConstRef self) |
Protected Attributes | |
QCborContainerPrivate * | d = nullptr |
size_t | is_object: 1 |
size_t | index: std::numeric_limits<size_t>::digits - 1 |
Friends | |
class | QJsonArray |
class | QJsonObject |
class | QJsonPrivate::Value |
bool | comparesEqual (const QJsonValueConstRef &lhs, const QJsonValueConstRef &rhs) |
bool | comparesEqual (const QJsonValueConstRef &lhs, const QJsonValue &rhs) |
Definition at line 142 of file qjsonvalue.h.
|
default |
|
inlineconstexprprotected |
Definition at line 235 of file qjsonvalue.h.
References QJsonValueConstRef(), and d.
Referenced by QJsonValueConstRef().
|
inlineprotected |
Definition at line 321 of file qjsonarray.h.
|
inlineprotected |
Definition at line 364 of file qjsonobject.h.
|
staticprotectednoexcept |
Definition at line 1100 of file qjsonvalue.cpp.
References QJsonPrivate::Value::container().
|
staticprotectednoexcept |
Definition at line 1046 of file qjsonvalue.cpp.
Referenced by toBool().
|
staticprotectednoexcept |
Definition at line 1072 of file qjsonvalue.cpp.
Referenced by toDouble().
|
staticprotectednoexcept |
Definition at line 1056 of file qjsonvalue.cpp.
|
staticprotected |
Definition at line 1082 of file qjsonvalue.cpp.
References QJsonPrivate::Value::container().
|
staticprotected |
Definition at line 1091 of file qjsonvalue.cpp.
References QJsonPrivate::Value::container().
|
staticprotectednoexcept |
Definition at line 1041 of file qjsonvalue.cpp.
|
inline |
Definition at line 155 of file qjsonvalue.h.
|
inline |
Definition at line 152 of file qjsonvalue.h.
|
inline |
Definition at line 153 of file qjsonvalue.h.
|
inline |
Definition at line 151 of file qjsonvalue.h.
|
inline |
Definition at line 156 of file qjsonvalue.h.
|
inline |
Definition at line 154 of file qjsonvalue.h.
|
inline |
Definition at line 157 of file qjsonvalue.h.
|
inlineprotected |
Definition at line 206 of file qjsonvalue.h.
|
staticprotected |
Definition at line 1118 of file qjsonvalue.cpp.
References QJsonPrivate::Value::container().
|
inlineprotected |
Definition at line 209 of file qjsonvalue.h.
|
staticprotected |
Definition at line 1107 of file qjsonvalue.cpp.
References QJsonPrivate::Value::container().
|
inline |
Definition at line 147 of file qjsonvalue.h.
|
delete |
|
inline |
Definition at line 175 of file qjsonvalue.h.
|
inline |
Definition at line 176 of file qjsonvalue.h.
|
inline |
Definition at line 174 of file qjsonvalue.h.
|
inlineprotected |
Definition at line 243 of file qjsonvalue.h.
References d.
QJsonArray QJsonValueConstRef::toArray | ( | ) | const |
Definition at line 1031 of file qjsonvalue.cpp.
|
inline |
Definition at line 159 of file qjsonvalue.h.
References concreteBool().
|
inline |
Definition at line 165 of file qjsonvalue.h.
References concreteDouble().
|
inline |
Definition at line 161 of file qjsonvalue.h.
Definition at line 163 of file qjsonvalue.h.
QJsonObject QJsonValueConstRef::toObject | ( | ) | const |
Definition at line 1036 of file qjsonvalue.cpp.
Definition at line 167 of file qjsonvalue.h.
|
inline |
Definition at line 169 of file qjsonvalue.h.
QVariant QJsonValueConstRef::toVariant | ( | ) | const |
Definition at line 1025 of file qjsonvalue.cpp.
|
inline |
Definition at line 150 of file qjsonvalue.h.
|
friend |
Definition at line 184 of file qjsonvalue.h.
|
friend |
Definition at line 179 of file qjsonvalue.h.
|
friend |
Definition at line 254 of file qjsonvalue.h.
|
friend |
Definition at line 255 of file qjsonvalue.h.
|
friend |
Definition at line 256 of file qjsonvalue.h.
|
protected |
Definition at line 249 of file qjsonvalue.h.
Referenced by QJsonValueConstRef(), QJsonPrivate::Value::container(), and rebind().
|
protected |
Definition at line 251 of file qjsonvalue.h.
|
protected |
Definition at line 250 of file qjsonvalue.h.