QtBase  v6.3.1
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
QCborContainerPrivate Class Reference

#include <qcborvalue_p.h>

Inheritance diagram for QCborContainerPrivate:
Inheritance graph
[legend]
Collaboration diagram for QCborContainerPrivate:
Collaboration graph
[legend]

Public Types

enum  ContainerDisposition { CopyContainer , MoveContainer }
 

Public Member Functions

void deref ()
 
void compact (qsizetype reserved)
 
qptrdiff addByteData (const char *block, qsizetype len)
 
const QtCbor::ByteDatabyteData (QtCbor::Element e) const
 
const QtCbor::ByteDatabyteData (qsizetype idx) const
 
QCborContainerPrivatecontainerAt (qsizetype idx, QCborValue::Type type) const
 
void replaceAt_complex (QtCbor::Element &e, const QCborValue &value, ContainerDisposition disp)
 
void replaceAt_internal (QtCbor::Element &e, const QCborValue &value, ContainerDisposition disp)
 
void replaceAt (qsizetype idx, const QCborValue &value, ContainerDisposition disp=CopyContainer)
 
void insertAt (qsizetype idx, const QCborValue &value, ContainerDisposition disp=CopyContainer)
 
void append (QtCbor::Undefined)
 
void append (qint64 value)
 
void append (QCborTag tag)
 
void appendByteData (const char *data, qsizetype len, QCborValue::Type type, QtCbor::Element::ValueFlags extraFlags={})
 
void appendAsciiString (const QString &s)
 
void appendAsciiString (const char *str, qsizetype len)
 
void appendUtf8String (const char *str, qsizetype len)
 
void append (QLatin1String s)
 
void appendAsciiString (QStringView s)
 
void append (const QString &s)
 
void append (QStringView s)
 
void append (const QCborValue &v)
 
QByteArray byteArrayAt (qsizetype idx) const
 
QString stringAt (qsizetype idx) const
 
QCborValue valueAt (qsizetype idx) const
 
QCborValue extractAt_complex (QtCbor::Element e)
 
QCborValue extractAt (qsizetype idx)
 
template<typename String >
int stringCompareElement (const QtCbor::Element &e, String s) const
 
template<typename String >
bool stringEqualsElement (const QtCbor::Element &e, String s) const
 
template<typename String >
bool stringEqualsElement (qsizetype idx, String s) const
 
int compareElement (qsizetype idx, const QCborValue &value) const
 
void removeAt (qsizetype idx)
 
- Public Member Functions inherited from QSharedData
 QSharedData () noexcept
 
 QSharedData (const QSharedData &) noexcept
 
QSharedDataoperator= (const QSharedData &)=delete
 
 ~QSharedData ()=default
 

Static Public Member Functions

static QCborContainerPrivateclone (QCborContainerPrivate *d, qsizetype reserved=-1)
 
static QCborContainerPrivatedetach (QCborContainerPrivate *d, qsizetype reserved)
 
static QCborContainerPrivategrow (QCborContainerPrivate *d, qsizetype index)
 
static void resetValue (QCborValue &v)
 
static QCborValue makeValue (QCborValue::Type type, qint64 n, QCborContainerPrivate *d=nullptr, ContainerDisposition disp=CopyContainer)
 
static QtCbor::Element elementFromValue (const QCborValue &value)
 
static int compareUtf8 (const QtCbor::ByteData *b, const QLatin1String &s)
 
static int compareUtf8 (const QtCbor::ByteData *b, QStringView s)
 
static int compareElement_helper (const QCborContainerPrivate *c1, QtCbor::Element e1, const QCborContainerPrivate *c2, QtCbor::Element e2)
 

Public Attributes

QByteArray::size_type usedData = 0
 
QByteArray data
 
QList< QtCbor::Elementelements
 
- Public Attributes inherited from QSharedData
QAtomicInt ref
 

Friends

class QExplicitlySharedDataPointer< QCborContainerPrivate >
 

Detailed Description

Definition at line 128 of file qcborvalue_p.h.

Member Enumeration Documentation

◆ ContainerDisposition

Enumerator
CopyContainer 
MoveContainer 

Definition at line 134 of file qcborvalue_p.h.

Member Function Documentation

◆ addByteData()

qptrdiff QCborContainerPrivate::addByteData ( const char *  block,
qsizetype  len 
)
inline

Definition at line 146 of file qcborvalue_p.h.

Here is the call graph for this function:

◆ append() [1/7]

void QCborContainerPrivate::append ( const QCborValue v)
inline

Definition at line 278 of file qcborvalue_p.h.

Here is the call graph for this function:

◆ append() [2/7]

void QCborContainerPrivate::append ( const QString s)
inline

Definition at line 264 of file qcborvalue_p.h.

Here is the call graph for this function:

◆ append() [3/7]

void QCborContainerPrivate::append ( QCborTag  tag)
inline

Definition at line 233 of file qcborvalue_p.h.

Here is the call graph for this function:

◆ append() [4/7]

void QCborContainerPrivate::append ( qint64  value)
inline

Definition at line 229 of file qcborvalue_p.h.

Here is the call graph for this function:

◆ append() [5/7]

void QCborContainerPrivate::append ( QLatin1String  s)
inline

Definition at line 252 of file qcborvalue_p.h.

Here is the call graph for this function:

◆ append() [6/7]

void QCborContainerPrivate::append ( QStringView  s)
inline

Definition at line 270 of file qcborvalue_p.h.

Here is the call graph for this function:

◆ append() [7/7]

void QCborContainerPrivate::append ( QtCbor::Undefined  )
inline

Definition at line 225 of file qcborvalue_p.h.

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

◆ appendAsciiString() [1/3]

void QCborContainerPrivate::appendAsciiString ( const char *  str,
qsizetype  len 
)
inline

Definition at line 244 of file qcborvalue_p.h.

Here is the call graph for this function:

◆ appendAsciiString() [2/3]

void QCborContainerPrivate::appendAsciiString ( const QString s)
Here is the caller graph for this function:

◆ appendAsciiString() [3/3]

Q_NEVER_INLINE void QCborContainerPrivate::appendAsciiString ( QStringView  s)

Definition at line 1031 of file qcborvalue.cpp.

◆ appendByteData()

void QCborContainerPrivate::appendByteData ( const char *  data,
qsizetype  len,
QCborValue::Type  type,
QtCbor::Element::ValueFlags  extraFlags = {} 
)
inline

Definition at line 237 of file qcborvalue_p.h.

Here is the caller graph for this function:

◆ appendUtf8String()

void QCborContainerPrivate::appendUtf8String ( const char *  str,
qsizetype  len 
)
inline

Definition at line 248 of file qcborvalue_p.h.

Here is the call graph for this function:

◆ byteArrayAt()

QByteArray QCborContainerPrivate::byteArrayAt ( qsizetype  idx) const
inline

Definition at line 283 of file qcborvalue_p.h.

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

◆ byteData() [1/2]

const QtCbor::ByteData* QCborContainerPrivate::byteData ( qsizetype  idx) const
inline

Definition at line 185 of file qcborvalue_p.h.

Here is the call graph for this function:

◆ byteData() [2/2]

const QtCbor::ByteData* QCborContainerPrivate::byteData ( QtCbor::Element  e) const
inline

Definition at line 172 of file qcborvalue_p.h.

Here is the caller graph for this function:

◆ clone()

QCborContainerPrivate * QCborContainerPrivate::clone ( QCborContainerPrivate d,
qsizetype  reserved = -1 
)
static

Definition at line 941 of file qcborvalue.cpp.

Here is the caller graph for this function:

◆ compact()

void QCborContainerPrivate::compact ( qsizetype  reserved)

Definition at line 931 of file qcborvalue.cpp.

Here is the call graph for this function:

◆ compareElement()

int QCborContainerPrivate::compareElement ( qsizetype  idx,
const QCborValue value 
) const
inline

Definition at line 408 of file qcborvalue_p.h.

Here is the call graph for this function:

◆ compareElement_helper()

int QCborContainerPrivate::compareElement_helper ( const QCborContainerPrivate c1,
QtCbor::Element  e1,
const QCborContainerPrivate c2,
QtCbor::Element  e2 
)
inlinestatic

Definition at line 1214 of file qcborvalue.cpp.

Here is the caller graph for this function:

◆ compareUtf8() [1/2]

static int QCborContainerPrivate::compareUtf8 ( const QtCbor::ByteData b,
const QLatin1String s 
)
inlinestatic

Definition at line 369 of file qcborvalue_p.h.

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

◆ compareUtf8() [2/2]

static int QCborContainerPrivate::compareUtf8 ( const QtCbor::ByteData b,
QStringView  s 
)
inlinestatic

Definition at line 374 of file qcborvalue_p.h.

Here is the call graph for this function:

◆ containerAt()

QCborContainerPrivate* QCborContainerPrivate::containerAt ( qsizetype  idx,
QCborValue::Type  type 
) const
inline

Definition at line 190 of file qcborvalue_p.h.

Here is the call graph for this function:

◆ deref()

void QCborContainerPrivate::deref ( )
inline

Definition at line 140 of file qcborvalue_p.h.

Here is the caller graph for this function:

◆ detach()

QCborContainerPrivate * QCborContainerPrivate::detach ( QCborContainerPrivate d,
qsizetype  reserved 
)
static

Definition at line 959 of file qcborvalue.cpp.

◆ elementFromValue()

static QtCbor::Element QCborContainerPrivate::elementFromValue ( const QCborValue value)
inlinestatic

Definition at line 354 of file qcborvalue_p.h.

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

◆ extractAt()

QCborValue QCborContainerPrivate::extractAt ( qsizetype  idx)
inline

Definition at line 336 of file qcborvalue_p.h.

Here is the call graph for this function:

◆ extractAt_complex()

QCborValue QCborContainerPrivate::extractAt_complex ( QtCbor::Element  e)

Definition at line 1045 of file qcborvalue.cpp.

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

◆ grow()

QCborContainerPrivate * QCborContainerPrivate::grow ( QCborContainerPrivate d,
qsizetype  index 
)
static

Prepare for an insertion at position index

Detaches and ensures there are at least index entries in the array, padding with Undefined as needed.

Definition at line 972 of file qcborvalue.cpp.

Here is the caller graph for this function:

◆ insertAt()

void QCborContainerPrivate::insertAt ( qsizetype  idx,
const QCborValue value,
ContainerDisposition  disp = CopyContainer 
)
inline

Definition at line 220 of file qcborvalue_p.h.

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

◆ makeValue()

static QCborValue QCborContainerPrivate::makeValue ( QCborValue::Type  type,
qint64  n,
QCborContainerPrivate d = nullptr,
ContainerDisposition  disp = CopyContainer 
)
inlinestatic

Definition at line 309 of file qcborvalue_p.h.

Here is the caller graph for this function:

◆ removeAt()

void QCborContainerPrivate::removeAt ( qsizetype  idx)
inline

Definition at line 415 of file qcborvalue_p.h.

Here is the call graph for this function:

◆ replaceAt()

void QCborContainerPrivate::replaceAt ( qsizetype  idx,
const QCborValue value,
ContainerDisposition  disp = CopyContainer 
)
inline

Definition at line 208 of file qcborvalue_p.h.

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

◆ replaceAt_complex()

void QCborContainerPrivate::replaceAt_complex ( QtCbor::Element e,
const QCborValue value,
ContainerDisposition  disp 
)

Definition at line 988 of file qcborvalue.cpp.

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

◆ replaceAt_internal()

void QCborContainerPrivate::replaceAt_internal ( QtCbor::Element e,
const QCborValue value,
ContainerDisposition  disp 
)
inline

Definition at line 199 of file qcborvalue_p.h.

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

◆ resetValue()

static void QCborContainerPrivate::resetValue ( QCborValue v)
inlinestatic

Definition at line 304 of file qcborvalue_p.h.

Here is the caller graph for this function:

◆ stringAt()

QString QCborContainerPrivate::stringAt ( qsizetype  idx) const
inline

Definition at line 291 of file qcborvalue_p.h.

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

◆ stringCompareElement()

template<typename String >
int QCborContainerPrivate::stringCompareElement ( const QtCbor::Element e,
String  s 
) const
inline

Definition at line 380 of file qcborvalue_p.h.

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

◆ stringEqualsElement() [1/2]

template<typename String >
bool QCborContainerPrivate::stringEqualsElement ( const QtCbor::Element e,
String  s 
) const
inline

Definition at line 395 of file qcborvalue_p.h.

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

◆ stringEqualsElement() [2/2]

template<typename String >
bool QCborContainerPrivate::stringEqualsElement ( qsizetype  idx,
String  s 
) const
inline

Definition at line 401 of file qcborvalue_p.h.

Here is the call graph for this function:

◆ valueAt()

QCborValue QCborContainerPrivate::valueAt ( qsizetype  idx) const
inline

Definition at line 320 of file qcborvalue_p.h.

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

Friends And Related Function Documentation

◆ QExplicitlySharedDataPointer< QCborContainerPrivate >

Definition at line 120 of file qcborvalue_p.h.

Member Data Documentation

◆ data

QByteArray QCborContainerPrivate::data

Definition at line 137 of file qcborvalue_p.h.

◆ elements

QList<QtCbor::Element> QCborContainerPrivate::elements

Definition at line 138 of file qcborvalue_p.h.

◆ usedData

QByteArray::size_type QCborContainerPrivate::usedData = 0

Definition at line 136 of file qcborvalue_p.h.


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