QCborArray Class
The QCborArray class is used to hold an array of CBOR elements. More...
| Header: | #include <QCborArray> |
| qmake: | QT += core |
| Since: | Qt 5.12 |
This class was introduced in Qt 5.12.
Note: All functions in this class are reentrant.
Public Types
| class | ConstIterator |
| class | Iterator |
| typedef | const_iterator |
| typedef | const_pointer |
| typedef | const_reference |
| typedef | difference_type |
| typedef | iterator |
| typedef | pointer |
| typedef | reference |
| typedef | size_type |
| typedef | value_type |
Detailed Description
This class can be used to hold one sequential container in CBOR (an array). CBOR is the Concise Binary Object Representation, a very compact form of binary data encoding that is a superset of JSON. It was created by the IETF Constrained RESTful Environments (CoRE) WG, which has used it in many new RFCs. It is meant to be used alongside the CoAP protocol.
QCborArray is very similar to QVariantList and QJsonArray and its API is almost identical to those two classes. It can also be converted to and from those two, though there may be loss of information in some conversions.
See also QCborValue, QCborMap, QJsonArray, QList, and QVector.
Member Type Documentation
typedef QCborArray::const_iterator
A synonym to QCborArray::ConstIterator.
typedef QCborArray::const_pointer
A typedef to const QCborValue *, for compatibility with generic algorithms.
typedef QCborArray::const_reference
A typedef to const QCborValue &, for compatibility with generic algorithms.
typedef QCborArray::difference_type
A typedef to qsizetype.
typedef QCborArray::iterator
A synonym to QCborArray::Iterator.
typedef QCborArray::pointer
A typedef to QCborValue *, for compatibility with generic algorithms.
typedef QCborArray::reference
A typedef to QCborValue &, for compatibility with generic algorithms.
typedef QCborArray::size_type
A typedef to qsizetype.
typedef QCborArray::value_type
The type of values that can be held in a QCborArray: that is, QCborValue.