Qt 6.x
The Qt SDK
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
 
QDateTime toDateTime (const QDateTime &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
 
bool operator== (const QCborValue &other) const
 
bool operator!= (const QCborValue &other) const
 
bool operator< (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 QCborValue concrete (QCborValueConstRef that) noexcept
 
static Q_CORE_EXPORT QCborValue::Type concreteType (QCborValueConstRef that) noexcept Q_DECL_PURE_FUNCTION
 
static Q_CORE_EXPORT bool concreteBoolean (QCborValueConstRef that, bool defaultValue) noexcept Q_DECL_PURE_FUNCTION
 
static Q_CORE_EXPORT double concreteDouble (QCborValueConstRef that, double defaultValue) noexcept Q_DECL_PURE_FUNCTION
 
static Q_CORE_EXPORT qint64 concreteIntegral (QCborValueConstRef that, qint64 defaultValue) noexcept Q_DECL_PURE_FUNCTION
 
static Q_CORE_EXPORT QByteArray concreteByteArray (QCborValueConstRef that, const QByteArray &defaultValue)
 
static Q_CORE_EXPORT QString concreteString (QCborValueConstRef that, const QString &defaultValue)
 

Protected Attributes

QCborContainerPrivated
 
qsizetype i
 

Friends

class QCborValue
 
class QCborArray
 
class QCborMap
 
class QCborContainerPrivate
 

Detailed Description

Definition at line 297 of file qcborvalue.h.

Constructor & Destructor Documentation

◆ QCborValueConstRef() [1/3]

QCborValueConstRef::QCborValueConstRef ( const QCborValueConstRef )
default

◆ QCborValueConstRef() [2/3]

constexpr QCborValueConstRef::QCborValueConstRef ( )
inlineconstexprprotected

Definition at line 423 of file qcborvalue.h.

◆ QCborValueConstRef() [3/3]

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

Definition at line 424 of file qcborvalue.h.

Member Function Documentation

◆ compare()

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

Definition at line 370 of file qcborvalue.h.

References other().

+ Here is the call graph for this function:

◆ concrete() [1/2]

QCborValue QCborValueConstRef::concrete ( ) const
inlineprotectednoexcept

Definition at line 408 of file qcborvalue.h.

References concrete().

Referenced by concrete(), toArray(), toArray(), toMap(), and toMap().

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

◆ concrete() [2/2]

QCborValue QCborValueConstRef::concrete ( QCborValueConstRef  that)
staticprotectednoexcept

Definition at line 2681 of file qcborvalue.cpp.

◆ concreteBoolean()

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

Definition at line 2635 of file qcborvalue.cpp.

References e, QCborValue::False, and QCborValue::True.

◆ concreteByteArray()

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

Definition at line 2664 of file qcborvalue.cpp.

References QCborValue::ByteArray, and e.

◆ concreteDouble()

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

Definition at line 2643 of file qcborvalue.cpp.

References QCborValue::Double, e, and QCborValue::Integer.

◆ concreteIntegral()

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

Definition at line 2653 of file qcborvalue.cpp.

References QCborValue::Double, e, and QCborValue::Integer.

◆ concreteString()

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

Definition at line 2673 of file qcborvalue.cpp.

References e, and QCborValue::String.

◆ concreteType()

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

Definition at line 2686 of file qcborvalue.cpp.

◆ isArray()

bool QCborValueConstRef::isArray ( ) const
inline

Definition at line 308 of file qcborvalue.h.

References QCborValue::Array.

◆ isBool()

bool QCborValueConstRef::isBool ( ) const
inline

Definition at line 313 of file qcborvalue.h.

◆ isByteArray()

bool QCborValueConstRef::isByteArray ( ) const
inline

Definition at line 306 of file qcborvalue.h.

References QCborValue::ByteArray.

◆ isContainer()

bool QCborValueConstRef::isContainer ( ) const
inline

Definition at line 322 of file qcborvalue.h.

◆ isDateTime()

bool QCborValueConstRef::isDateTime ( ) const
inline

Definition at line 317 of file qcborvalue.h.

References QCborValue::DateTime.

◆ isDouble()

bool QCborValueConstRef::isDouble ( ) const
inline

Definition at line 316 of file qcborvalue.h.

References QCborValue::Double.

◆ isFalse()

bool QCborValueConstRef::isFalse ( ) const
inline

Definition at line 311 of file qcborvalue.h.

References QCborValue::False.

◆ isInteger()

bool QCborValueConstRef::isInteger ( ) const
inline

Definition at line 305 of file qcborvalue.h.

References QCborValue::Integer.

◆ isInvalid()

bool QCborValueConstRef::isInvalid ( ) const
inline

Definition at line 321 of file qcborvalue.h.

References QCborValue::Invalid.

◆ isMap()

bool QCborValueConstRef::isMap ( ) const
inline

Definition at line 309 of file qcborvalue.h.

References QCborValue::Map.

◆ isNull()

bool QCborValueConstRef::isNull ( ) const
inline

Definition at line 314 of file qcborvalue.h.

References QCborValue::Null.

◆ isRegularExpression()

bool QCborValueConstRef::isRegularExpression ( ) const
inline

Definition at line 319 of file qcborvalue.h.

References QCborValue::RegularExpression.

◆ isSimpleType() [1/2]

bool QCborValueConstRef::isSimpleType ( ) const
inline

Definition at line 323 of file qcborvalue.h.

◆ isSimpleType() [2/2]

bool QCborValueConstRef::isSimpleType ( QCborSimpleType  st) const
inline

Definition at line 324 of file qcborvalue.h.

◆ isString()

bool QCborValueConstRef::isString ( ) const
inline

Definition at line 307 of file qcborvalue.h.

References QCborValue::String.

◆ isTag()

bool QCborValueConstRef::isTag ( ) const
inline

Definition at line 310 of file qcborvalue.h.

◆ isTrue()

bool QCborValueConstRef::isTrue ( ) const
inline

Definition at line 312 of file qcborvalue.h.

References QCborValue::True.

◆ isUndefined()

bool QCborValueConstRef::isUndefined ( ) const
inline

Definition at line 315 of file qcborvalue.h.

References QCborValue::Undefined.

◆ isUrl()

bool QCborValueConstRef::isUrl ( ) const
inline

Definition at line 318 of file qcborvalue.h.

References QCborValue::Url.

◆ isUuid()

bool QCborValueConstRef::isUuid ( ) const
inline

Definition at line 320 of file qcborvalue.h.

References QCborValue::Uuid.

◆ operator QCborValue()

QCborValueConstRef::operator QCborValue ( ) const
inline

Definition at line 302 of file qcborvalue.h.

◆ operator!=()

bool QCborValueConstRef::operator!= ( const QCborValue other) const
inline

Definition at line 383 of file qcborvalue.h.

References other().

+ Here is the call graph for this function:

◆ operator<()

bool QCborValueConstRef::operator< ( const QCborValue other) const
inline

Definition at line 385 of file qcborvalue.h.

References compare(), and other().

+ Here is the call graph for this function:

◆ operator=()

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

◆ operator==()

bool QCborValueConstRef::operator== ( const QCborValue other) const
inline

Definition at line 381 of file qcborvalue.h.

References compare(), and other().

+ Here is the call graph for this function:

◆ operator[]() [1/3]

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

Definition at line 2691 of file qcborvalue.cpp.

References d, i, item, and QCborContainerPrivate::valueAt().

+ Here is the call graph for this function:

◆ operator[]() [2/3]

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

Definition at line 2703 of file qcborvalue.cpp.

References d, i, item, and QCborContainerPrivate::valueAt().

+ Here is the call graph for this function:

◆ operator[]() [3/3]

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

Definition at line 2697 of file qcborvalue.cpp.

References d, i, item, and QCborContainerPrivate::valueAt().

+ Here is the call graph for this function:

◆ tag()

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

Definition at line 331 of file qcborvalue.h.

◆ taggedValue()

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

Definition at line 333 of file qcborvalue.h.

References QCborValue::taggedValue().

+ Here is the call graph for this function:

◆ toArray() [1/2]

QCborArray QCborValueConstRef::toArray ( ) const
inline

Definition at line 268 of file qcborarray.h.

References concrete(), and QCborValue::toArray().

+ Here is the call graph for this function:

◆ toArray() [2/2]

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

Definition at line 273 of file qcborarray.h.

References concrete(), and QCborValue::toArray().

+ Here is the call graph for this function:

◆ toBool()

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

Definition at line 338 of file qcborvalue.h.

◆ toByteArray()

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

Definition at line 343 of file qcborvalue.h.

◆ toDateTime()

QDateTime QCborValueConstRef::toDateTime ( const QDateTime defaultValue = {}) const
inline

Definition at line 347 of file qcborvalue.h.

◆ toDiagnosticNotation()

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

Definition at line 399 of file qcborvalue.h.

References opt.

◆ toDouble()

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

Definition at line 340 of file qcborvalue.h.

◆ toInteger()

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

Definition at line 336 of file qcborvalue.h.

◆ toJsonValue()

QJsonValue QCborValueConstRef::toJsonValue ( ) const
inline

◆ toMap() [1/2]

QCborMap QCborValueConstRef::toMap ( ) const
inline

Definition at line 334 of file qcbormap.h.

References concrete(), and QCborValue::toMap().

+ Here is the call graph for this function:

◆ toMap() [2/2]

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

Definition at line 339 of file qcbormap.h.

References concrete(), and QCborValue::toMap().

+ Here is the call graph for this function:

◆ toSimpleType()

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

Definition at line 326 of file qcborvalue.h.

◆ toString()

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

Definition at line 345 of file qcborvalue.h.

◆ toUrl()

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

Definition at line 350 of file qcborvalue.h.

◆ toUuid()

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

Definition at line 356 of file qcborvalue.h.

◆ toVariant()

QVariant QCborValueConstRef::toVariant ( ) const
inline

Definition at line 389 of file qcborvalue.h.

◆ type()

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

Definition at line 304 of file qcborvalue.h.

Friends And Related Symbol Documentation

◆ QCborArray

friend class QCborArray
friend

Definition at line 404 of file qcborvalue.h.

◆ QCborContainerPrivate

friend class QCborContainerPrivate
friend

Definition at line 406 of file qcborvalue.h.

◆ QCborMap

friend class QCborMap
friend

Definition at line 405 of file qcborvalue.h.

◆ QCborValue

friend class QCborValue
friend

Definition at line 403 of file qcborvalue.h.

Member Data Documentation

◆ d

QCborContainerPrivate* QCborValueConstRef::d
protected

Definition at line 427 of file qcborvalue.h.

Referenced by operator[](), operator[](), and operator[]().

◆ i

qsizetype QCborValueConstRef::i
protected

Definition at line 428 of file qcborvalue.h.

Referenced by QCborArray::insert(), operator[](), operator[](), and operator[]().


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