Qt 6.x
The Qt SDK
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 33 of file qcborvalue_p.h.

Member Enumeration Documentation

◆ ValueFlag

Enumerator
IsContainer 
HasByteData 
StringIsUtf16 
StringIsAscii 

Definition at line 35 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 50 of file qcborvalue_p.h.

◆ Element() [2/2]

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

Definition at line 54 of file qcborvalue_p.h.

Member Function Documentation

◆ fpvalue()

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

Definition at line 58 of file qcborvalue_p.h.

References d.

Member Data Documentation

◆ [union]

union { ... } QtCbor::Element

◆ container

QCborContainerPrivate* QtCbor::Element::container

◆ flags

ValueFlags QtCbor::Element::flags = {}

Definition at line 48 of file qcborvalue_p.h.

Referenced by compareElementRecursive(), sortContainer(), and QCborValue::toDateTime().

◆ type

QCborValue::Type QtCbor::Element::type

Definition at line 47 of file qcborvalue_p.h.

Referenced by QJsonValueConstRef::concreteString().

◆ value

qint64 QtCbor::Element::value

Definition at line 44 of file qcborvalue_p.h.

Referenced by sortContainer(), and QCborValue::tag().


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