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
QtCbor::Element Struct Reference

#include <qcborvalue_p.h>

Collaboration diagram for QtCbor::Element:

Public Types

enum  ValueFlag : quint32 { IsContainer = 0x0001 , HasByteData = 0x0002 , StringIsUtf16 = 0x0004 , StringIsAscii = 0x0008 }

Public Member Functions

 Element (qint64 v=0, QCborValue::Type t=QCborValue::Undefined, ValueFlags f={})
 Element (QCborContainerPrivate *d, QCborValue::Type t, ValueFlags f={})
double fpvalue () const

Public Attributes

union { 
   qint64   value 
   QCborContainerPrivate *   container 
}; 
QCborValue::Type type
ValueFlags flags = {}

Detailed Description

Definition at line 39 of file qcborvalue_p.h.

Member Enumeration Documentation

◆ ValueFlag

enum QtCbor::Element::ValueFlag : quint32
Enumerator
IsContainer 
HasByteData 
StringIsUtf16 
StringIsAscii 

Definition at line 41 of file qcborvalue_p.h.

Constructor & Destructor Documentation

◆ Element() [1/2]

QtCbor::Element::Element ( qint64 v = 0,
QCborValue::Type t = QCborValue::Undefined,
ValueFlags f = {} )
inline

Definition at line 56 of file qcborvalue_p.h.

◆ Element() [2/2]

QtCbor::Element::Element ( QCborContainerPrivate * d,
QCborValue::Type t,
ValueFlags f = {} )
inline

Definition at line 60 of file qcborvalue_p.h.

Member Function Documentation

◆ fpvalue()

double QtCbor::Element::fpvalue ( ) const
inline

Definition at line 64 of file qcborvalue_p.h.

Referenced by QCborValueConstRef::concreteDouble(), and QCborValueConstRef::concreteIntegral().

Here is the caller graph for this function:

Member Data Documentation

◆ [union]

union { ... } QtCbor::Element

◆ container

QCborContainerPrivate* QtCbor::Element::container

Definition at line 51 of file qcborvalue_p.h.

◆ flags

ValueFlags QtCbor::Element::flags = {}

Definition at line 54 of file qcborvalue_p.h.

◆ type

QCborValue::Type QtCbor::Element::type

Definition at line 53 of file qcborvalue_p.h.

◆ value

qint64 QtCbor::Element::value

Definition at line 50 of file qcborvalue_p.h.


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