Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QCborStreamWriterPrivate Class Reference
+ Collaboration diagram for QCborStreamWriterPrivate:

Public Member Functions

 QCborStreamWriterPrivate (QIODevice *device)
 
 ~QCborStreamWriterPrivate ()
 
template<typename... Args>
void executeAppend (CborError(*f)(CborEncoder *, Args...), Args... args)
 
void createContainer (CborError(*f)(CborEncoder *, CborEncoder *, size_t), quint64 len=IndefiniteLength)
 
bool closeContainer ()
 

Public Attributes

QIODevicedevice
 
CborEncoder encoder
 
QStack< CborEncoder > containerStack
 
bool deleteDevice = false
 

Static Public Attributes

static constexpr quint64 IndefiniteLength = (std::numeric_limits<quint64>::max)()
 

Detailed Description

Definition at line 183 of file qcborstreamwriter.cpp.

Constructor & Destructor Documentation

◆ QCborStreamWriterPrivate()

QCborStreamWriterPrivate::QCborStreamWriterPrivate ( QIODevice * device)
inline

Definition at line 193 of file qcborstreamwriter.cpp.

References encoder, and qt_cbor_encoder_write_callback().

+ Here is the call graph for this function:

◆ ~QCborStreamWriterPrivate()

QCborStreamWriterPrivate::~QCborStreamWriterPrivate ( )
inline

Definition at line 199 of file qcborstreamwriter.cpp.

References deleteDevice, and device.

Member Function Documentation

◆ closeContainer()

bool QCborStreamWriterPrivate::closeContainer ( )
inline

Definition at line 226 of file qcborstreamwriter.cpp.

References containerStack, encoder, QList< T >::isEmpty(), QStack< T >::pop(), Q_UNLIKELY, and qWarning.

Referenced by QCborStreamWriter::endArray(), and QCborStreamWriter::endMap().

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

◆ createContainer()

void QCborStreamWriterPrivate::createContainer ( CborError(*)(CborEncoder *, CborEncoder *, size_t) f,
quint64 len = IndefiniteLength )
inline

Definition at line 210 of file qcborstreamwriter.cpp.

References containerStack, encoder, IndefiniteLength, QStack< T >::push(), Q_UNLIKELY, qWarning, and QStack< T >::top().

Referenced by QCborStreamWriter::startArray(), QCborStreamWriter::startArray(), QCborStreamWriter::startMap(), and QCborStreamWriter::startMap().

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

◆ executeAppend()

template<typename... Args>
void QCborStreamWriterPrivate::executeAppend ( CborError(*)(CborEncoder *, Args...) f,
Args... args )
inline

Definition at line 205 of file qcborstreamwriter.cpp.

References args, and encoder.

Referenced by QCborStreamWriter::append(), QCborStreamWriter::append(), QCborStreamWriter::append(), QCborStreamWriter::append(), QCborStreamWriter::append(), QCborStreamWriter::append(), QCborStreamWriter::append(), QCborStreamWriter::appendByteString(), and QCborStreamWriter::appendTextString().

+ Here is the caller graph for this function:

Member Data Documentation

◆ containerStack

QStack<CborEncoder> QCborStreamWriterPrivate::containerStack

Definition at line 190 of file qcborstreamwriter.cpp.

Referenced by closeContainer(), and createContainer().

◆ deleteDevice

bool QCborStreamWriterPrivate::deleteDevice = false

◆ device

◆ encoder

CborEncoder QCborStreamWriterPrivate::encoder

◆ IndefiniteLength

constexpr quint64 QCborStreamWriterPrivate::IndefiniteLength = (std::numeric_limits<quint64>::max)()
staticconstexpr

Definition at line 186 of file qcborstreamwriter.cpp.

Referenced by createContainer().


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