Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QCborValueConstRef Class Reference

#include <qcborvalue.h>

Collaboration diagram for QCborValueConstRef:

Public Member Functions

 QCborValueConstRef (const QCborValueConstRef &)=default
QCborValueConstRefoperator= (const QCborValueConstRef &)=delete
 operator QCborValue () const
QCborValue::Type type () const
bool isInteger () const
bool isByteArray () const
bool isString () const
bool isArray () const
bool isMap () const
bool isTag () const
bool isFalse () const
bool isTrue () const
bool isBool () const
bool isNull () const
bool isUndefined () const
bool isDouble () const
bool isDateTime () const
bool isUrl () const
bool isRegularExpression () const
bool isUuid () const
bool isInvalid () const
bool isContainer () const
bool isSimpleType () const
bool isSimpleType (QCborSimpleType st) const
QCborSimpleType toSimpleType (QCborSimpleType defaultValue=QCborSimpleType::Undefined) const
QCborTag tag (QCborTag defaultValue=QCborTag(-1)) const
QCborValue taggedValue (const QCborValue &defaultValue=QCborValue()) const
qint64 toInteger (qint64 defaultValue=0) const
bool toBool (bool defaultValue=false) const
double toDouble (double defaultValue=0) const
QByteArray toByteArray (const QByteArray &defaultValue={}) const
QString toString (const QString &defaultValue={}) const
QAnyStringView toStringView (QAnyStringView defaultValue={}) const
QUrl toUrl (const QUrl &defaultValue={}) const
QUuid toUuid (const QUuid &defaultValue={}) const
QCborArray toArray () const
QCborArray toArray (const QCborArray &a) const
QCborMap toMap () const
QCborMap toMap (const QCborMap &m) const
Q_CORE_EXPORT const QCborValue operator[] (const QString &key) const
Q_CORE_EXPORT const QCborValue operator[] (QLatin1StringView key) const
Q_CORE_EXPORT const QCborValue operator[] (qint64 key) const
int compare (const QCborValue &other) const
QVariant toVariant () const
QJsonValue toJsonValue () const
QString toDiagnosticNotation (QCborValue::DiagnosticNotationOptions opt=QCborValue::Compact) const

Protected Member Functions

QCborValue concrete () const noexcept
constexpr QCborValueConstRef ()
constexpr QCborValueConstRef (QCborContainerPrivate *dd, qsizetype ii)

Static Protected Member Functions

static Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool comparesEqual_helper (QCborValueConstRef lhs, QCborValueConstRef rhs) noexcept
static Q_CORE_EXPORT Q_DECL_PURE_FUNCTION Qt::strong_ordering compareThreeWay_helper (QCborValueConstRef lhs, QCborValueConstRef rhs) noexcept
static Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool comparesEqual_helper (QCborValueConstRef lhs, const QCborValue &rhs) noexcept
static Q_CORE_EXPORT Q_DECL_PURE_FUNCTION Qt::strong_ordering compareThreeWay_helper (QCborValueConstRef lhs, const QCborValue &rhs) noexcept
static Q_CORE_EXPORT QCborValue concrete (QCborValueConstRef that) noexcept
static Q_DECL_PURE_FUNCTION Q_CORE_EXPORT QCborValue::Type concreteType (QCborValueConstRef that) noexcept
static Q_CORE_EXPORT bool Q_DECL_PURE_FUNCTION concreteBoolean (QCborValueConstRef that, bool defaultValue) noexcept
static Q_CORE_EXPORT double Q_DECL_PURE_FUNCTION concreteDouble (QCborValueConstRef that, double defaultValue) noexcept
static Q_CORE_EXPORT qint64 Q_DECL_PURE_FUNCTION concreteIntegral (QCborValueConstRef that, qint64 defaultValue) noexcept
static Q_CORE_EXPORT QByteArray concreteByteArray (QCborValueConstRef that, const QByteArray &defaultValue)
static Q_CORE_EXPORT QString concreteString (QCborValueConstRef that, const QString &defaultValue)
static Q_CORE_EXPORT QAnyStringView concreteStringView (QCborValueConstRef that, QAnyStringView defaultValue)

Protected Attributes

QCborContainerPrivated
qsizetype i

Friends

class QCborValue
class QCborArray
class QCborMap
class QCborContainerPrivate
bool comparesEqual (const QCborValueConstRef &lhs, const QCborValueConstRef &rhs) noexcept
Qt::strong_ordering compareThreeWay (const QCborValueConstRef &lhs, const QCborValueConstRef &rhs) noexcept
bool comparesEqual (const QCborValueConstRef &lhs, const QCborValue &rhs) noexcept
Qt::strong_ordering compareThreeWay (const QCborValueConstRef &lhs, const QCborValue &rhs) noexcept

Detailed Description

Definition at line 305 of file qcborvalue.h.

Constructor & Destructor Documentation

◆ QCborValueConstRef() [1/3]

QCborValueConstRef::QCborValueConstRef ( const QCborValueConstRef & )
default

◆ QCborValueConstRef() [2/3]

QCborValueConstRef::QCborValueConstRef ( )
inlineconstexprprotected

Definition at line 452 of file qcborvalue.h.

References d.

◆ QCborValueConstRef() [3/3]

QCborValueConstRef::QCborValueConstRef ( QCborContainerPrivate * dd,
qsizetype ii )
inlineconstexprprotected

Definition at line 453 of file qcborvalue.h.

References QCborValueConstRef(), and d.

Referenced by QCborValueConstRef().

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

Member Function Documentation

◆ compare()

int QCborValueConstRef::compare ( const QCborValue & other) const
inline

Definition at line 382 of file qcborvalue.h.

References concrete().

Here is the call graph for this function:

◆ comparesEqual_helper() [1/2]

bool QCborValueConstRef::comparesEqual_helper ( QCborValueConstRef lhs,
const QCborValue & rhs )
staticprotectednoexcept

Definition at line 2958 of file qcborvalue.cpp.

References d, and QtCbor::ForEquality.

◆ comparesEqual_helper() [2/2]

bool QCborValueConstRef::comparesEqual_helper ( QCborValueConstRef lhs,
QCborValueConstRef rhs )
staticprotectednoexcept

Definition at line 2941 of file qcborvalue.cpp.

References compareElementRecursive(), d, and QtCbor::ForEquality.

Here is the call graph for this function:

◆ compareThreeWay_helper() [1/2]

Qt::strong_ordering QCborValueConstRef::compareThreeWay_helper ( QCborValueConstRef lhs,
const QCborValue & rhs )
staticprotectednoexcept

Definition at line 2966 of file qcborvalue.cpp.

References d, and QtCbor::ForOrdering.

◆ compareThreeWay_helper() [2/2]

Qt::strong_ordering QCborValueConstRef::compareThreeWay_helper ( QCborValueConstRef lhs,
QCborValueConstRef rhs )
staticprotectednoexcept

Definition at line 2949 of file qcborvalue.cpp.

References compareElementRecursive(), d, and QtCbor::ForOrdering.

Here is the call graph for this function:

◆ concrete() [1/2]

QCborValue QCborValueConstRef::concrete ( ) const
inlineprotectednoexcept

Definition at line 404 of file qcborvalue.h.

Referenced by compare(), isSimpleType(), isSimpleType(), isTag(), operator QCborValue(), tag(), taggedValue(), toBool(), toDiagnosticNotation(), toDouble(), toInteger(), toSimpleType(), and toVariant().

Here is the caller graph for this function:

◆ concrete() [2/2]

QCborValue QCborValueConstRef::concrete ( QCborValueConstRef that)
staticprotectednoexcept

Definition at line 3010 of file qcborvalue.cpp.

References d.

◆ concreteBoolean()

bool QCborValueConstRef::concreteBoolean ( QCborValueConstRef that,
bool defaultValue )
staticprotectednoexcept

Definition at line 2886 of file qcborvalue.cpp.

References d.

◆ concreteByteArray()

QByteArray QCborValueConstRef::concreteByteArray ( QCborValueConstRef that,
const QByteArray & defaultValue )
staticprotected

Definition at line 2915 of file qcborvalue.cpp.

References d.

◆ concreteDouble()

double QCborValueConstRef::concreteDouble ( QCborValueConstRef that,
double defaultValue )
staticprotectednoexcept

Definition at line 2894 of file qcborvalue.cpp.

References d, and QtCbor::Element::fpvalue().

Here is the call graph for this function:

◆ concreteIntegral()

qint64 QCborValueConstRef::concreteIntegral ( QCborValueConstRef that,
qint64 defaultValue )
staticprotectednoexcept

Definition at line 2904 of file qcborvalue.cpp.

References d, and QtCbor::Element::fpvalue().

Here is the call graph for this function:

◆ concreteString()

QString QCborValueConstRef::concreteString ( QCborValueConstRef that,
const QString & defaultValue )
staticprotected

Definition at line 2924 of file qcborvalue.cpp.

References d.

◆ concreteStringView()

QAnyStringView QCborValueConstRef::concreteStringView ( QCborValueConstRef that,
QAnyStringView defaultValue )
staticprotected

Definition at line 2932 of file qcborvalue.cpp.

References d.

◆ concreteType()

QCborValue::Type QCborValueConstRef::concreteType ( QCborValueConstRef that)
staticprotectednoexcept

Definition at line 3015 of file qcborvalue.cpp.

References d.

◆ isArray()

bool QCborValueConstRef::isArray ( ) const
inline

Definition at line 316 of file qcborvalue.h.

Referenced by isContainer().

Here is the caller graph for this function:

◆ isBool()

bool QCborValueConstRef::isBool ( ) const
inline

Definition at line 321 of file qcborvalue.h.

References isFalse(), and isTrue().

Here is the call graph for this function:

◆ isByteArray()

bool QCborValueConstRef::isByteArray ( ) const
inline

Definition at line 314 of file qcborvalue.h.

◆ isContainer()

bool QCborValueConstRef::isContainer ( ) const
inline

Definition at line 330 of file qcborvalue.h.

References isArray(), and isMap().

Here is the call graph for this function:

◆ isDateTime()

bool QCborValueConstRef::isDateTime ( ) const
inline

Definition at line 325 of file qcborvalue.h.

◆ isDouble()

bool QCborValueConstRef::isDouble ( ) const
inline

Definition at line 324 of file qcborvalue.h.

◆ isFalse()

bool QCborValueConstRef::isFalse ( ) const
inline

Definition at line 319 of file qcborvalue.h.

Referenced by isBool().

Here is the caller graph for this function:

◆ isInteger()

bool QCborValueConstRef::isInteger ( ) const
inline

Definition at line 313 of file qcborvalue.h.

◆ isInvalid()

bool QCborValueConstRef::isInvalid ( ) const
inline

Definition at line 329 of file qcborvalue.h.

◆ isMap()

bool QCborValueConstRef::isMap ( ) const
inline

Definition at line 317 of file qcborvalue.h.

Referenced by isContainer().

Here is the caller graph for this function:

◆ isNull()

bool QCborValueConstRef::isNull ( ) const
inline

Definition at line 322 of file qcborvalue.h.

◆ isRegularExpression()

bool QCborValueConstRef::isRegularExpression ( ) const
inline

Definition at line 327 of file qcborvalue.h.

◆ isSimpleType() [1/2]

bool QCborValueConstRef::isSimpleType ( ) const
inline

Definition at line 331 of file qcborvalue.h.

References concrete().

Here is the call graph for this function:

◆ isSimpleType() [2/2]

bool QCborValueConstRef::isSimpleType ( QCborSimpleType st) const
inline

Definition at line 332 of file qcborvalue.h.

References concrete().

Here is the call graph for this function:

◆ isString()

bool QCborValueConstRef::isString ( ) const
inline

Definition at line 315 of file qcborvalue.h.

◆ isTag()

bool QCborValueConstRef::isTag ( ) const
inline

Definition at line 318 of file qcborvalue.h.

References concrete().

Here is the call graph for this function:

◆ isTrue()

bool QCborValueConstRef::isTrue ( ) const
inline

Definition at line 320 of file qcborvalue.h.

Referenced by isBool().

Here is the caller graph for this function:

◆ isUndefined()

bool QCborValueConstRef::isUndefined ( ) const
inline

Definition at line 323 of file qcborvalue.h.

◆ isUrl()

bool QCborValueConstRef::isUrl ( ) const
inline

Definition at line 326 of file qcborvalue.h.

◆ isUuid()

bool QCborValueConstRef::isUuid ( ) const
inline

Definition at line 328 of file qcborvalue.h.

◆ operator QCborValue()

QCborValueConstRef::operator QCborValue ( ) const
inline

Definition at line 310 of file qcborvalue.h.

References concrete().

Here is the call graph for this function:

◆ operator=()

QCborValueConstRef & QCborValueConstRef::operator= ( const QCborValueConstRef & )
delete

◆ operator[]() [1/3]

const QCborValue QCborValueConstRef::operator[] ( const QString & key) const

Definition at line 3020 of file qcborvalue.cpp.

◆ operator[]() [2/3]

const QCborValue QCborValueConstRef::operator[] ( qint64 key) const

Definition at line 3032 of file qcborvalue.cpp.

◆ operator[]() [3/3]

const QCborValue QCborValueConstRef::operator[] ( QLatin1StringView key) const

Definition at line 3026 of file qcborvalue.cpp.

◆ tag()

QCborTag QCborValueConstRef::tag ( QCborTag defaultValue = QCborTag(-1)) const
inline

Definition at line 339 of file qcborvalue.h.

References concrete().

Here is the call graph for this function:

◆ taggedValue()

QCborValue QCborValueConstRef::taggedValue ( const QCborValue & defaultValue = QCborValue()) const
inline

Definition at line 341 of file qcborvalue.h.

References concrete().

Here is the call graph for this function:

◆ toArray() [1/2]

QCborArray QCborValueConstRef::toArray ( ) const
inline

Definition at line 379 of file qcborarray.h.

◆ toArray() [2/2]

QCborArray QCborValueConstRef::toArray ( const QCborArray & a) const
inline

Definition at line 384 of file qcborarray.h.

◆ toBool()

bool QCborValueConstRef::toBool ( bool defaultValue = false) const
inline

Definition at line 346 of file qcborvalue.h.

References concrete().

Here is the call graph for this function:

◆ toByteArray()

QByteArray QCborValueConstRef::toByteArray ( const QByteArray & defaultValue = {}) const
inline

Definition at line 351 of file qcborvalue.h.

◆ toDiagnosticNotation()

QString QCborValueConstRef::toDiagnosticNotation ( QCborValue::DiagnosticNotationOptions opt = QCborValue::Compact) const
inline

Definition at line 395 of file qcborvalue.h.

References concrete().

Here is the call graph for this function:

◆ toDouble()

double QCborValueConstRef::toDouble ( double defaultValue = 0) const
inline

Definition at line 348 of file qcborvalue.h.

References concrete().

Here is the call graph for this function:

◆ toInteger()

qint64 QCborValueConstRef::toInteger ( qint64 defaultValue = 0) const
inline

Definition at line 344 of file qcborvalue.h.

References concrete().

Here is the call graph for this function:

◆ toJsonValue()

QJsonValue QCborValueConstRef::toJsonValue ( ) const
inline

◆ toMap() [1/2]

QCborMap QCborValueConstRef::toMap ( ) const
inline

Definition at line 490 of file qcbormap.h.

◆ toMap() [2/2]

QCborMap QCborValueConstRef::toMap ( const QCborMap & m) const
inline

Definition at line 495 of file qcbormap.h.

◆ toSimpleType()

QCborSimpleType QCborValueConstRef::toSimpleType ( QCborSimpleType defaultValue = QCborSimpleType::Undefined) const
inline

Definition at line 334 of file qcborvalue.h.

References concrete().

Here is the call graph for this function:

◆ toString()

QString QCborValueConstRef::toString ( const QString & defaultValue = {}) const
inline

Definition at line 353 of file qcborvalue.h.

◆ toStringView()

QAnyStringView QCborValueConstRef::toStringView ( QAnyStringView defaultValue = {}) const
inline

Definition at line 355 of file qcborvalue.h.

◆ toUrl()

QUrl QCborValueConstRef::toUrl ( const QUrl & defaultValue = {}) const
inline

Definition at line 362 of file qcborvalue.h.

◆ toUuid()

QUuid QCborValueConstRef::toUuid ( const QUuid & defaultValue = {}) const
inline

Definition at line 368 of file qcborvalue.h.

◆ toVariant()

QVariant QCborValueConstRef::toVariant ( ) const
inline

Definition at line 385 of file qcborvalue.h.

References concrete().

Here is the call graph for this function:

◆ type()

QCborValue::Type QCborValueConstRef::type ( ) const
inline

Definition at line 312 of file qcborvalue.h.

◆ comparesEqual [1/2]

bool comparesEqual ( const QCborValueConstRef & lhs,
const QCborValue & rhs )
friend

Definition at line 425 of file qcborvalue.h.

◆ comparesEqual [2/2]

bool comparesEqual ( const QCborValueConstRef & lhs,
const QCborValueConstRef & rhs )
friend

Definition at line 409 of file qcborvalue.h.

◆ compareThreeWay [1/2]

Qt::strong_ordering compareThreeWay ( const QCborValueConstRef & lhs,
const QCborValue & rhs )
friend

Definition at line 430 of file qcborvalue.h.

◆ compareThreeWay [2/2]

Qt::strong_ordering compareThreeWay ( const QCborValueConstRef & lhs,
const QCborValueConstRef & rhs )
friend

Definition at line 414 of file qcborvalue.h.

◆ QCborArray

friend class QCborArray
friend

Definition at line 400 of file qcborvalue.h.

◆ QCborContainerPrivate

friend class QCborContainerPrivate
friend

Definition at line 402 of file qcborvalue.h.

◆ QCborMap

friend class QCborMap
friend

Definition at line 401 of file qcborvalue.h.

◆ QCborValue

friend class QCborValue
friend

Definition at line 399 of file qcborvalue.h.

Member Data Documentation

◆ d

◆ i

qsizetype QCborValueConstRef::i
protected

Definition at line 457 of file qcborvalue.h.


The documentation for this class was generated from the following files: