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
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 38 of file qcborvalue_p.h.

Member Enumeration Documentation

◆ ValueFlag

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

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

◆ Element() [2/2]

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

Definition at line 59 of file qcborvalue_p.h.

Member Function Documentation

◆ fpvalue()

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

Definition at line 63 of file qcborvalue_p.h.

References d.

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

+ Here is the caller graph for this function:

Member Data Documentation

◆ [union]

union { ... } QtCbor::Element

◆ container

◆ flags

◆ type

◆ value


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