2024-08-25 04:08:24 +00:00
# include <QCborMap>
2024-08-29 07:01:51 +00:00
# define WORKAROUND_INNER_CLASS_DEFINITION_QCborMap__ConstIterator
# define WORKAROUND_INNER_CLASS_DEFINITION_QCborMap__Iterator
2024-08-25 04:08:24 +00:00
# include <QCborValue>
2024-11-18 06:12:54 +00:00
# include <QCborValueConstRef>
2024-08-25 04:08:24 +00:00
# include <QCborValueRef>
# include <QJsonObject>
# include <QList>
2024-11-04 07:59:22 +00:00
# include <QMap>
2024-08-25 04:08:24 +00:00
# include <QString>
2024-08-29 07:01:51 +00:00
# include <QByteArray>
# include <cstring>
2024-11-04 07:59:22 +00:00
# include <QVariant>
2024-10-16 05:07:56 +00:00
# include <qcbormap.h>
2024-08-29 07:01:51 +00:00
# include "gen_qcbormap.h"
2024-09-14 22:29:05 +00:00
# include "_cgo_export.h"
2024-08-25 04:08:24 +00:00
2024-11-19 06:29:06 +00:00
void QCborMap_new ( QCborMap * * outptr_QCborMap ) {
QCborMap * ret = new QCborMap ( ) ;
* outptr_QCborMap = ret ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QCborMap_new2 ( QCborMap * other , QCborMap * * outptr_QCborMap ) {
QCborMap * ret = new QCborMap ( * other ) ;
* outptr_QCborMap = ret ;
2024-08-25 04:08:24 +00:00
}
void QCborMap_OperatorAssign ( QCborMap * self , QCborMap * other ) {
self - > operator = ( * other ) ;
}
void QCborMap_Swap ( QCborMap * self , QCborMap * other ) {
self - > swap ( * other ) ;
}
2024-09-11 05:41:09 +00:00
QCborValue * QCborMap_ToCborValue ( const QCborMap * self ) {
2024-09-17 06:29:11 +00:00
return new QCborValue ( self - > toCborValue ( ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-10-11 05:43:04 +00:00
ptrdiff_t QCborMap_Size ( const QCborMap * self ) {
qsizetype _ret = self - > size ( ) ;
return static_cast < ptrdiff_t > ( _ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap_IsEmpty ( const QCborMap * self ) {
return self - > isEmpty ( ) ;
2024-08-25 04:08:24 +00:00
}
void QCborMap_Clear ( QCborMap * self ) {
self - > clear ( ) ;
}
2024-11-17 06:21:37 +00:00
struct miqt_array /* of QCborValue* */ QCborMap_Keys ( const QCborMap * self ) {
2024-11-18 06:12:54 +00:00
QList < QCborValue > _ret = self - > keys ( ) ;
2024-09-17 06:29:11 +00:00
// Convert QList<> from C++ memory to manually-managed C memory
QCborValue * * _arr = static_cast < QCborValue * * > ( malloc ( sizeof ( QCborValue * ) * _ret . length ( ) ) ) ;
2024-09-14 22:29:05 +00:00
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = new QCborValue ( _ret [ i ] ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-04 07:18:27 +00:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-14 22:29:05 +00:00
return _out ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QCborValue * QCborMap_Value ( const QCborMap * self , long long key ) {
2024-09-17 06:29:11 +00:00
return new QCborValue ( self - > value ( static_cast < qint64 > ( key ) ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
QCborValue * QCborMap_Value2 ( const QCborMap * self , struct miqt_string key ) {
QString key_QString = QString : : fromUtf8 ( key . data , key . len ) ;
2024-09-17 06:29:11 +00:00
return new QCborValue ( self - > value ( key_QString ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QCborValue * QCborMap_Value3 ( const QCborMap * self , QCborValue * key ) {
2024-09-17 06:29:11 +00:00
return new QCborValue ( self - > value ( * key ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QCborValue * QCborMap_OperatorSubscript ( const QCborMap * self , long long key ) {
2024-09-17 06:29:11 +00:00
return new QCborValue ( self - > operator [ ] ( static_cast < qint64 > ( key ) ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
QCborValue * QCborMap_OperatorSubscript2 ( const QCborMap * self , struct miqt_string key ) {
QString key_QString = QString : : fromUtf8 ( key . data , key . len ) ;
2024-09-17 06:29:11 +00:00
return new QCborValue ( self - > operator [ ] ( key_QString ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QCborValue * QCborMap_OperatorSubscript3 ( const QCborMap * self , QCborValue * key ) {
2024-09-17 06:29:11 +00:00
return new QCborValue ( self - > operator [ ] ( * key ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-08-29 07:01:51 +00:00
QCborValueRef * QCborMap_OperatorSubscript4 ( QCborMap * self , long long key ) {
2024-09-17 06:29:11 +00:00
return new QCborValueRef ( self - > operator [ ] ( static_cast < qint64 > ( key ) ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
QCborValueRef * QCborMap_OperatorSubscript6 ( QCborMap * self , struct miqt_string key ) {
QString key_QString = QString : : fromUtf8 ( key . data , key . len ) ;
2024-09-17 06:29:11 +00:00
return new QCborValueRef ( self - > operator [ ] ( key_QString ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-08-29 07:01:51 +00:00
QCborValueRef * QCborMap_OperatorSubscript7 ( QCborMap * self , QCborValue * key ) {
2024-09-17 06:29:11 +00:00
return new QCborValueRef ( self - > operator [ ] ( * key ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-08-29 07:01:51 +00:00
QCborValue * QCborMap_Take ( QCborMap * self , long long key ) {
2024-09-17 06:29:11 +00:00
return new QCborValue ( self - > take ( static_cast < qint64 > ( key ) ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
QCborValue * QCborMap_Take2 ( QCborMap * self , struct miqt_string key ) {
QString key_QString = QString : : fromUtf8 ( key . data , key . len ) ;
2024-09-17 06:29:11 +00:00
return new QCborValue ( self - > take ( key_QString ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-08-29 07:01:51 +00:00
QCborValue * QCborMap_Take3 ( QCborMap * self , QCborValue * key ) {
2024-09-17 06:29:11 +00:00
return new QCborValue ( self - > take ( * key ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-08-29 07:01:51 +00:00
void QCborMap_Remove ( QCborMap * self , long long key ) {
self - > remove ( static_cast < qint64 > ( key ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
void QCborMap_Remove2 ( QCborMap * self , struct miqt_string key ) {
QString key_QString = QString : : fromUtf8 ( key . data , key . len ) ;
2024-08-25 04:08:24 +00:00
self - > remove ( key_QString ) ;
}
2024-08-29 07:01:51 +00:00
void QCborMap_Remove3 ( QCborMap * self , QCborValue * key ) {
2024-08-25 04:08:24 +00:00
self - > remove ( * key ) ;
}
2024-09-11 05:41:09 +00:00
bool QCborMap_Contains ( const QCborMap * self , long long key ) {
return self - > contains ( static_cast < qint64 > ( key ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
bool QCborMap_Contains2 ( const QCborMap * self , struct miqt_string key ) {
QString key_QString = QString : : fromUtf8 ( key . data , key . len ) ;
2024-09-11 05:41:09 +00:00
return self - > contains ( key_QString ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap_Contains3 ( const QCborMap * self , QCborValue * key ) {
return self - > contains ( * key ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
int QCborMap_Compare ( const QCborMap * self , QCborMap * other ) {
return self - > compare ( * other ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap_OperatorEqual ( const QCborMap * self , QCborMap * other ) {
return self - > operator = = ( * other ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap_OperatorNotEqual ( const QCborMap * self , QCborMap * other ) {
return self - > operator ! = ( * other ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap_OperatorLesser ( const QCborMap * self , QCborMap * other ) {
return self - > operator < ( * other ) ;
2024-08-29 07:01:51 +00:00
}
QCborMap__Iterator * QCborMap_Begin ( QCborMap * self ) {
2024-09-17 06:29:11 +00:00
return new QCborMap : : Iterator ( self - > begin ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
QCborMap__ConstIterator * QCborMap_ConstBegin ( const QCborMap * self ) {
2024-09-17 06:29:11 +00:00
return new QCborMap : : ConstIterator ( self - > constBegin ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
QCborMap__ConstIterator * QCborMap_Begin2 ( const QCborMap * self ) {
2024-09-17 06:29:11 +00:00
return new QCborMap : : ConstIterator ( self - > begin ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
QCborMap__ConstIterator * QCborMap_Cbegin ( const QCborMap * self ) {
2024-09-17 06:29:11 +00:00
return new QCborMap : : ConstIterator ( self - > cbegin ( ) ) ;
2024-08-29 07:01:51 +00:00
}
QCborMap__Iterator * QCborMap_End ( QCborMap * self ) {
2024-09-17 06:29:11 +00:00
return new QCborMap : : Iterator ( self - > end ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
QCborMap__ConstIterator * QCborMap_ConstEnd ( const QCborMap * self ) {
2024-09-17 06:29:11 +00:00
return new QCborMap : : ConstIterator ( self - > constEnd ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
QCborMap__ConstIterator * QCborMap_End2 ( const QCborMap * self ) {
2024-09-17 06:29:11 +00:00
return new QCborMap : : ConstIterator ( self - > end ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
QCborMap__ConstIterator * QCborMap_Cend ( const QCborMap * self ) {
2024-09-17 06:29:11 +00:00
return new QCborMap : : ConstIterator ( self - > cend ( ) ) ;
2024-08-29 07:01:51 +00:00
}
QCborMap__Iterator * QCborMap_Erase ( QCborMap * self , QCborMap__Iterator * it ) {
2024-09-17 06:29:11 +00:00
return new QCborMap : : Iterator ( self - > erase ( * it ) ) ;
2024-08-29 07:01:51 +00:00
}
QCborMap__Iterator * QCborMap_EraseWithIt ( QCborMap * self , QCborMap__ConstIterator * it ) {
2024-09-17 06:29:11 +00:00
return new QCborMap : : Iterator ( self - > erase ( * it ) ) ;
2024-08-29 07:01:51 +00:00
}
QCborValue * QCborMap_Extract ( QCborMap * self , QCborMap__Iterator * it ) {
2024-09-17 06:29:11 +00:00
return new QCborValue ( self - > extract ( * it ) ) ;
2024-08-29 07:01:51 +00:00
}
QCborValue * QCborMap_ExtractWithIt ( QCborMap * self , QCborMap__ConstIterator * it ) {
2024-09-17 06:29:11 +00:00
return new QCborValue ( self - > extract ( * it ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap_Empty ( const QCborMap * self ) {
return self - > empty ( ) ;
2024-08-29 07:01:51 +00:00
}
QCborMap__Iterator * QCborMap_Find ( QCborMap * self , long long key ) {
2024-09-17 06:29:11 +00:00
return new QCborMap : : Iterator ( self - > find ( static_cast < qint64 > ( key ) ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-10-18 23:53:33 +00:00
QCborMap__Iterator * QCborMap_Find2 ( QCborMap * self , struct miqt_string key ) {
QString key_QString = QString : : fromUtf8 ( key . data , key . len ) ;
2024-09-17 06:29:11 +00:00
return new QCborMap : : Iterator ( self - > find ( key_QString ) ) ;
2024-08-29 07:01:51 +00:00
}
QCborMap__Iterator * QCborMap_Find3 ( QCborMap * self , QCborValue * key ) {
2024-09-17 06:29:11 +00:00
return new QCborMap : : Iterator ( self - > find ( * key ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
QCborMap__ConstIterator * QCborMap_ConstFind ( const QCborMap * self , long long key ) {
2024-09-17 06:29:11 +00:00
return new QCborMap : : ConstIterator ( self - > constFind ( static_cast < qint64 > ( key ) ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-10-18 23:53:33 +00:00
QCborMap__ConstIterator * QCborMap_ConstFind2 ( const QCborMap * self , struct miqt_string key ) {
QString key_QString = QString : : fromUtf8 ( key . data , key . len ) ;
2024-09-17 06:29:11 +00:00
return new QCborMap : : ConstIterator ( self - > constFind ( key_QString ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
QCborMap__ConstIterator * QCborMap_ConstFind3 ( const QCborMap * self , QCborValue * key ) {
2024-09-17 06:29:11 +00:00
return new QCborMap : : ConstIterator ( self - > constFind ( * key ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
QCborMap__ConstIterator * QCborMap_Find4 ( const QCborMap * self , long long key ) {
2024-09-17 06:29:11 +00:00
return new QCborMap : : ConstIterator ( self - > find ( static_cast < qint64 > ( key ) ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-10-18 23:53:33 +00:00
QCborMap__ConstIterator * QCborMap_Find6 ( const QCborMap * self , struct miqt_string key ) {
QString key_QString = QString : : fromUtf8 ( key . data , key . len ) ;
2024-09-17 06:29:11 +00:00
return new QCborMap : : ConstIterator ( self - > find ( key_QString ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
QCborMap__ConstIterator * QCborMap_Find7 ( const QCborMap * self , QCborValue * key ) {
2024-09-17 06:29:11 +00:00
return new QCborMap : : ConstIterator ( self - > find ( * key ) ) ;
2024-08-29 07:01:51 +00:00
}
QCborMap__Iterator * QCborMap_Insert ( QCborMap * self , long long key , QCborValue * value_ ) {
2024-09-17 06:29:11 +00:00
return new QCborMap : : Iterator ( self - > insert ( static_cast < qint64 > ( key ) , * value_ ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-10-18 23:53:33 +00:00
QCborMap__Iterator * QCborMap_Insert3 ( QCborMap * self , struct miqt_string key , QCborValue * value_ ) {
QString key_QString = QString : : fromUtf8 ( key . data , key . len ) ;
2024-09-17 06:29:11 +00:00
return new QCborMap : : Iterator ( self - > insert ( key_QString , * value_ ) ) ;
2024-08-29 07:01:51 +00:00
}
QCborMap__Iterator * QCborMap_Insert4 ( QCborMap * self , QCborValue * key , QCborValue * value_ ) {
2024-09-17 06:29:11 +00:00
return new QCborMap : : Iterator ( self - > insert ( * key , * value_ ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-17 06:21:37 +00:00
QCborMap__Iterator * QCborMap_InsertWithQCborMapvalueType ( QCborMap * self , struct miqt_map /* tuple of QCborValue* and QCborValue* */ v ) {
QCborMap : : value_type v_QPair ;
QCborValue * * v_first_arr = static_cast < QCborValue * * > ( v . keys ) ;
QCborValue * * v_second_arr = static_cast < QCborValue * * > ( v . values ) ;
v_QPair . first = * ( v_first_arr [ 0 ] ) ;
v_QPair . second = * ( v_second_arr [ 0 ] ) ;
return new QCborMap : : Iterator ( self - > insert ( v_QPair ) ) ;
}
QCborMap * QCborMap_FromVariantMap ( struct miqt_map /* of struct miqt_string to QVariant* */ mapVal ) {
2024-11-04 07:59:22 +00:00
QVariantMap mapVal_QMap ;
struct miqt_string * mapVal_karr = static_cast < struct miqt_string * > ( mapVal . keys ) ;
QVariant * * mapVal_varr = static_cast < QVariant * * > ( mapVal . values ) ;
for ( size_t i = 0 ; i < mapVal . len ; + + i ) {
QString mapVal_karr_i_QString = QString : : fromUtf8 ( mapVal_karr [ i ] . data , mapVal_karr [ i ] . len ) ;
mapVal_QMap [ mapVal_karr_i_QString ] = * ( mapVal_varr [ i ] ) ;
}
return new QCborMap ( QCborMap : : fromVariantMap ( mapVal_QMap ) ) ;
}
2024-11-17 06:21:37 +00:00
QCborMap * QCborMap_FromVariantHash ( struct miqt_map /* of struct miqt_string to QVariant* */ hash ) {
2024-11-04 07:59:22 +00:00
QVariantHash hash_QMap ;
hash_QMap . reserve ( hash . len ) ;
struct miqt_string * hash_karr = static_cast < struct miqt_string * > ( hash . keys ) ;
QVariant * * hash_varr = static_cast < QVariant * * > ( hash . values ) ;
for ( size_t i = 0 ; i < hash . len ; + + i ) {
QString hash_karr_i_QString = QString : : fromUtf8 ( hash_karr [ i ] . data , hash_karr [ i ] . len ) ;
hash_QMap [ hash_karr_i_QString ] = * ( hash_varr [ i ] ) ;
}
return new QCborMap ( QCborMap : : fromVariantHash ( hash_QMap ) ) ;
}
2024-08-25 04:08:24 +00:00
QCborMap * QCborMap_FromJsonObject ( QJsonObject * o ) {
2024-09-17 06:29:11 +00:00
return new QCborMap ( QCborMap : : fromJsonObject ( * o ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-17 06:21:37 +00:00
struct miqt_map /* of struct miqt_string to QVariant* */ QCborMap_ToVariantMap ( const QCborMap * self ) {
2024-11-04 07:59:22 +00:00
QVariantMap _ret = self - > toVariantMap ( ) ;
// Convert QMap<> from C++ memory to manually-managed C memory
struct miqt_string * _karr = static_cast < struct miqt_string * > ( malloc ( sizeof ( struct miqt_string ) * _ret . size ( ) ) ) ;
QVariant * * _varr = static_cast < QVariant * * > ( malloc ( sizeof ( QVariant * ) * _ret . size ( ) ) ) ;
int _ctr = 0 ;
for ( auto _itr = _ret . keyValueBegin ( ) ; _itr ! = _ret . keyValueEnd ( ) ; + + _itr ) {
QString _mapkey_ret = _itr - > first ;
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _mapkey_b = _mapkey_ret . toUtf8 ( ) ;
struct miqt_string _mapkey_ms ;
_mapkey_ms . len = _mapkey_b . length ( ) ;
_mapkey_ms . data = static_cast < char * > ( malloc ( _mapkey_ms . len ) ) ;
memcpy ( _mapkey_ms . data , _mapkey_b . data ( ) , _mapkey_ms . len ) ;
_karr [ _ctr ] = _mapkey_ms ;
_varr [ _ctr ] = new QVariant ( _itr - > second ) ;
_ctr + + ;
}
struct miqt_map _out ;
_out . len = _ret . size ( ) ;
_out . keys = static_cast < void * > ( _karr ) ;
_out . values = static_cast < void * > ( _varr ) ;
return _out ;
}
2024-11-17 06:21:37 +00:00
struct miqt_map /* of struct miqt_string to QVariant* */ QCborMap_ToVariantHash ( const QCborMap * self ) {
2024-11-04 07:59:22 +00:00
QVariantHash _ret = self - > toVariantHash ( ) ;
// Convert QMap<> from C++ memory to manually-managed C memory
struct miqt_string * _karr = static_cast < struct miqt_string * > ( malloc ( sizeof ( struct miqt_string ) * _ret . size ( ) ) ) ;
QVariant * * _varr = static_cast < QVariant * * > ( malloc ( sizeof ( QVariant * ) * _ret . size ( ) ) ) ;
int _ctr = 0 ;
for ( auto _itr = _ret . keyValueBegin ( ) ; _itr ! = _ret . keyValueEnd ( ) ; + + _itr ) {
QString _hashkey_ret = _itr - > first ;
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _hashkey_b = _hashkey_ret . toUtf8 ( ) ;
struct miqt_string _hashkey_ms ;
_hashkey_ms . len = _hashkey_b . length ( ) ;
_hashkey_ms . data = static_cast < char * > ( malloc ( _hashkey_ms . len ) ) ;
memcpy ( _hashkey_ms . data , _hashkey_b . data ( ) , _hashkey_ms . len ) ;
_karr [ _ctr ] = _hashkey_ms ;
_varr [ _ctr ] = new QVariant ( _itr - > second ) ;
_ctr + + ;
}
struct miqt_map _out ;
_out . len = _ret . size ( ) ;
_out . keys = static_cast < void * > ( _karr ) ;
_out . values = static_cast < void * > ( _varr ) ;
return _out ;
}
2024-09-11 05:41:09 +00:00
QJsonObject * QCborMap_ToJsonObject ( const QCborMap * self ) {
2024-09-17 06:29:11 +00:00
return new QJsonObject ( self - > toJsonObject ( ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QCborMap_Delete ( QCborMap * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < QCborMap * > ( self ) ;
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QCborMap__Iterator_new ( QCborMap__Iterator * * outptr_QCborMap__Iterator ) {
QCborMap : : Iterator * ret = new QCborMap : : Iterator ( ) ;
* outptr_QCborMap__Iterator = ret ;
2024-08-29 07:01:51 +00:00
}
2024-11-19 06:29:06 +00:00
void QCborMap__Iterator_new2 ( QCborMap__Iterator * param1 , QCborMap__Iterator * * outptr_QCborMap__Iterator ) {
QCborMap : : Iterator * ret = new QCborMap : : Iterator ( * param1 ) ;
* outptr_QCborMap__Iterator = ret ;
2024-08-29 07:01:51 +00:00
}
2024-09-18 00:12:02 +00:00
void QCborMap__Iterator_OperatorAssign ( QCborMap__Iterator * self , QCborMap__Iterator * other ) {
self - > operator = ( * other ) ;
}
2024-11-18 06:12:54 +00:00
struct miqt_map /* tuple of QCborValueConstRef* and QCborValueRef* */ QCborMap__Iterator_OperatorMultiply ( const QCborMap__Iterator * self ) {
2024-11-17 06:21:37 +00:00
QCborMap : : Iterator : : value_type _ret = self - > operator * ( ) ;
// Convert QPair<> from C++ memory to manually-managed C memory
2024-11-18 06:12:54 +00:00
QCborValueConstRef * * _first_arr = static_cast < QCborValueConstRef * * > ( malloc ( sizeof ( QCborValueConstRef * ) ) ) ;
2024-11-17 06:21:37 +00:00
QCborValueRef * * _second_arr = static_cast < QCborValueRef * * > ( malloc ( sizeof ( QCborValueRef * ) ) ) ;
2024-11-18 06:12:54 +00:00
_first_arr [ 0 ] = new QCborValueConstRef ( _ret . first ) ;
2024-11-17 06:21:37 +00:00
_second_arr [ 0 ] = new QCborValueRef ( _ret . second ) ;
struct miqt_map _out ;
_out . len = 1 ;
_out . keys = static_cast < void * > ( _first_arr ) ;
_out . values = static_cast < void * > ( _second_arr ) ;
return _out ;
}
2024-11-18 06:12:54 +00:00
struct miqt_map /* tuple of QCborValueConstRef* and QCborValueRef* */ QCborMap__Iterator_OperatorSubscript ( const QCborMap__Iterator * self , ptrdiff_t j ) {
QCborMap : : Iterator : : value_type _ret = self - > operator [ ] ( ( qsizetype ) ( j ) ) ;
// Convert QPair<> from C++ memory to manually-managed C memory
QCborValueConstRef * * _first_arr = static_cast < QCborValueConstRef * * > ( malloc ( sizeof ( QCborValueConstRef * ) ) ) ;
QCborValueRef * * _second_arr = static_cast < QCborValueRef * * > ( malloc ( sizeof ( QCborValueRef * ) ) ) ;
_first_arr [ 0 ] = new QCborValueConstRef ( _ret . first ) ;
_second_arr [ 0 ] = new QCborValueRef ( _ret . second ) ;
struct miqt_map _out ;
_out . len = 1 ;
_out . keys = static_cast < void * > ( _first_arr ) ;
_out . values = static_cast < void * > ( _second_arr ) ;
return _out ;
}
QCborValueRef * QCborMap__Iterator_OperatorMinusGreater ( QCborMap__Iterator * self ) {
2024-09-11 05:41:09 +00:00
return self - > operator - > ( ) ;
2024-08-29 07:01:51 +00:00
}
2024-11-18 06:12:54 +00:00
QCborValueConstRef * QCborMap__Iterator_OperatorMinusGreater2 ( const QCborMap__Iterator * self ) {
return ( QCborValueConstRef * ) self - > operator - > ( ) ;
}
2024-09-11 05:41:09 +00:00
QCborValue * QCborMap__Iterator_Key ( const QCborMap__Iterator * self ) {
2024-09-17 06:29:11 +00:00
return new QCborValue ( self - > key ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
QCborValueRef * QCborMap__Iterator_Value ( const QCborMap__Iterator * self ) {
2024-09-17 06:29:11 +00:00
return new QCborValueRef ( self - > value ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap__Iterator_OperatorEqual ( const QCborMap__Iterator * self , QCborMap__Iterator * o ) {
return self - > operator = = ( * o ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap__Iterator_OperatorNotEqual ( const QCborMap__Iterator * self , QCborMap__Iterator * o ) {
return self - > operator ! = ( * o ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap__Iterator_OperatorLesser ( const QCborMap__Iterator * self , QCborMap__Iterator * other ) {
return self - > operator < ( * other ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap__Iterator_OperatorLesserOrEqual ( const QCborMap__Iterator * self , QCborMap__Iterator * other ) {
return self - > operator < = ( * other ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap__Iterator_OperatorGreater ( const QCborMap__Iterator * self , QCborMap__Iterator * other ) {
return self - > operator > ( * other ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap__Iterator_OperatorGreaterOrEqual ( const QCborMap__Iterator * self , QCborMap__Iterator * other ) {
return self - > operator > = ( * other ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap__Iterator_OperatorEqualWithQCborMapConstIterator ( const QCborMap__Iterator * self , QCborMap__ConstIterator * o ) {
return self - > operator = = ( * o ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap__Iterator_OperatorNotEqualWithQCborMapConstIterator ( const QCborMap__Iterator * self , QCborMap__ConstIterator * o ) {
return self - > operator ! = ( * o ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap__Iterator_OperatorLesserWithOther ( const QCborMap__Iterator * self , QCborMap__ConstIterator * other ) {
return self - > operator < ( * other ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap__Iterator_OperatorLesserOrEqualWithOther ( const QCborMap__Iterator * self , QCborMap__ConstIterator * other ) {
return self - > operator < = ( * other ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap__Iterator_OperatorGreaterWithOther ( const QCborMap__Iterator * self , QCborMap__ConstIterator * other ) {
return self - > operator > ( * other ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap__Iterator_OperatorGreaterOrEqualWithOther ( const QCborMap__Iterator * self , QCborMap__ConstIterator * other ) {
return self - > operator > = ( * other ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-18 00:12:02 +00:00
QCborMap__Iterator * QCborMap__Iterator_OperatorPlusPlus ( QCborMap__Iterator * self ) {
QCborMap : : Iterator & _ret = self - > operator + + ( ) ;
// Cast returned reference into pointer
return & _ret ;
}
QCborMap__Iterator * QCborMap__Iterator_OperatorPlusPlusWithInt ( QCborMap__Iterator * self , int param1 ) {
2024-09-17 06:29:11 +00:00
return new QCborMap : : Iterator ( self - > operator + + ( static_cast < int > ( param1 ) ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-18 00:12:02 +00:00
QCborMap__Iterator * QCborMap__Iterator_OperatorMinusMinus ( QCborMap__Iterator * self ) {
QCborMap : : Iterator & _ret = self - > operator - - ( ) ;
// Cast returned reference into pointer
return & _ret ;
}
QCborMap__Iterator * QCborMap__Iterator_OperatorMinusMinusWithInt ( QCborMap__Iterator * self , int param1 ) {
2024-09-17 06:29:11 +00:00
return new QCborMap : : Iterator ( self - > operator - - ( static_cast < int > ( param1 ) ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-10-11 05:43:04 +00:00
QCborMap__Iterator * QCborMap__Iterator_OperatorPlusAssign ( QCborMap__Iterator * self , ptrdiff_t j ) {
QCborMap : : Iterator & _ret = self - > operator + = ( ( qsizetype ) ( j ) ) ;
2024-09-18 00:12:02 +00:00
// Cast returned reference into pointer
return & _ret ;
}
2024-10-11 05:43:04 +00:00
QCborMap__Iterator * QCborMap__Iterator_OperatorMinusAssign ( QCborMap__Iterator * self , ptrdiff_t j ) {
QCborMap : : Iterator & _ret = self - > operator - = ( ( qsizetype ) ( j ) ) ;
2024-09-18 00:12:02 +00:00
// Cast returned reference into pointer
return & _ret ;
}
2024-10-11 05:43:04 +00:00
QCborMap__Iterator * QCborMap__Iterator_OperatorPlus ( const QCborMap__Iterator * self , ptrdiff_t j ) {
return new QCborMap : : Iterator ( self - > operator + ( ( qsizetype ) ( j ) ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-10-11 05:43:04 +00:00
QCborMap__Iterator * QCborMap__Iterator_OperatorMinus ( const QCborMap__Iterator * self , ptrdiff_t j ) {
return new QCborMap : : Iterator ( self - > operator - ( ( qsizetype ) ( j ) ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-10-11 05:43:04 +00:00
ptrdiff_t QCborMap__Iterator_OperatorMinusWithQCborMapIterator ( const QCborMap__Iterator * self , QCborMap__Iterator * j ) {
qsizetype _ret = self - > operator - ( * j ) ;
return static_cast < ptrdiff_t > ( _ret ) ;
2024-08-29 07:01:51 +00:00
}
2024-11-19 06:29:06 +00:00
void QCborMap__Iterator_Delete ( QCborMap__Iterator * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < QCborMap : : Iterator * > ( self ) ;
} else {
delete self ;
}
2024-08-29 07:01:51 +00:00
}
2024-11-19 06:29:06 +00:00
void QCborMap__ConstIterator_new ( QCborMap__ConstIterator * * outptr_QCborMap__ConstIterator ) {
QCborMap : : ConstIterator * ret = new QCborMap : : ConstIterator ( ) ;
* outptr_QCborMap__ConstIterator = ret ;
2024-08-29 07:01:51 +00:00
}
2024-11-19 06:29:06 +00:00
void QCborMap__ConstIterator_new2 ( QCborMap__ConstIterator * param1 , QCborMap__ConstIterator * * outptr_QCborMap__ConstIterator ) {
QCborMap : : ConstIterator * ret = new QCborMap : : ConstIterator ( * param1 ) ;
* outptr_QCborMap__ConstIterator = ret ;
2024-08-29 07:01:51 +00:00
}
2024-09-18 00:12:02 +00:00
void QCborMap__ConstIterator_OperatorAssign ( QCborMap__ConstIterator * self , QCborMap__ConstIterator * other ) {
self - > operator = ( * other ) ;
}
2024-11-18 06:12:54 +00:00
struct miqt_map /* tuple of QCborValueConstRef* and QCborValueConstRef* */ QCborMap__ConstIterator_OperatorMultiply ( const QCborMap__ConstIterator * self ) {
2024-11-17 06:21:37 +00:00
QCborMap : : ConstIterator : : value_type _ret = self - > operator * ( ) ;
// Convert QPair<> from C++ memory to manually-managed C memory
2024-11-18 06:12:54 +00:00
QCborValueConstRef * * _first_arr = static_cast < QCborValueConstRef * * > ( malloc ( sizeof ( QCborValueConstRef * ) ) ) ;
QCborValueConstRef * * _second_arr = static_cast < QCborValueConstRef * * > ( malloc ( sizeof ( QCborValueConstRef * ) ) ) ;
_first_arr [ 0 ] = new QCborValueConstRef ( _ret . first ) ;
_second_arr [ 0 ] = new QCborValueConstRef ( _ret . second ) ;
2024-11-17 06:21:37 +00:00
struct miqt_map _out ;
_out . len = 1 ;
_out . keys = static_cast < void * > ( _first_arr ) ;
_out . values = static_cast < void * > ( _second_arr ) ;
return _out ;
}
2024-11-18 06:12:54 +00:00
struct miqt_map /* tuple of QCborValueConstRef* and QCborValueConstRef* */ QCborMap__ConstIterator_OperatorSubscript ( const QCborMap__ConstIterator * self , ptrdiff_t j ) {
QCborMap : : ConstIterator : : value_type _ret = self - > operator [ ] ( ( qsizetype ) ( j ) ) ;
// Convert QPair<> from C++ memory to manually-managed C memory
QCborValueConstRef * * _first_arr = static_cast < QCborValueConstRef * * > ( malloc ( sizeof ( QCborValueConstRef * ) ) ) ;
QCborValueConstRef * * _second_arr = static_cast < QCborValueConstRef * * > ( malloc ( sizeof ( QCborValueConstRef * ) ) ) ;
_first_arr [ 0 ] = new QCborValueConstRef ( _ret . first ) ;
_second_arr [ 0 ] = new QCborValueConstRef ( _ret . second ) ;
struct miqt_map _out ;
_out . len = 1 ;
_out . keys = static_cast < void * > ( _first_arr ) ;
_out . values = static_cast < void * > ( _second_arr ) ;
return _out ;
}
QCborValueConstRef * QCborMap__ConstIterator_OperatorMinusGreater ( const QCborMap__ConstIterator * self ) {
return ( QCborValueConstRef * ) self - > operator - > ( ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
QCborValue * QCborMap__ConstIterator_Key ( const QCborMap__ConstIterator * self ) {
2024-09-17 06:29:11 +00:00
return new QCborValue ( self - > key ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-11-18 06:12:54 +00:00
QCborValueConstRef * QCborMap__ConstIterator_Value ( const QCborMap__ConstIterator * self ) {
return new QCborValueConstRef ( self - > value ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap__ConstIterator_OperatorEqual ( const QCborMap__ConstIterator * self , QCborMap__Iterator * o ) {
return self - > operator = = ( * o ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap__ConstIterator_OperatorNotEqual ( const QCborMap__ConstIterator * self , QCborMap__Iterator * o ) {
return self - > operator ! = ( * o ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap__ConstIterator_OperatorLesser ( const QCborMap__ConstIterator * self , QCborMap__Iterator * other ) {
return self - > operator < ( * other ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap__ConstIterator_OperatorLesserOrEqual ( const QCborMap__ConstIterator * self , QCborMap__Iterator * other ) {
return self - > operator < = ( * other ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap__ConstIterator_OperatorGreater ( const QCborMap__ConstIterator * self , QCborMap__Iterator * other ) {
return self - > operator > ( * other ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap__ConstIterator_OperatorGreaterOrEqual ( const QCborMap__ConstIterator * self , QCborMap__Iterator * other ) {
return self - > operator > = ( * other ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap__ConstIterator_OperatorEqualWithQCborMapConstIterator ( const QCborMap__ConstIterator * self , QCborMap__ConstIterator * o ) {
return self - > operator = = ( * o ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap__ConstIterator_OperatorNotEqualWithQCborMapConstIterator ( const QCborMap__ConstIterator * self , QCborMap__ConstIterator * o ) {
return self - > operator ! = ( * o ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap__ConstIterator_OperatorLesserWithOther ( const QCborMap__ConstIterator * self , QCborMap__ConstIterator * other ) {
return self - > operator < ( * other ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap__ConstIterator_OperatorLesserOrEqualWithOther ( const QCborMap__ConstIterator * self , QCborMap__ConstIterator * other ) {
return self - > operator < = ( * other ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap__ConstIterator_OperatorGreaterWithOther ( const QCborMap__ConstIterator * self , QCborMap__ConstIterator * other ) {
return self - > operator > ( * other ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
bool QCborMap__ConstIterator_OperatorGreaterOrEqualWithOther ( const QCborMap__ConstIterator * self , QCborMap__ConstIterator * other ) {
return self - > operator > = ( * other ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-18 00:12:02 +00:00
QCborMap__ConstIterator * QCborMap__ConstIterator_OperatorPlusPlus ( QCborMap__ConstIterator * self ) {
QCborMap : : ConstIterator & _ret = self - > operator + + ( ) ;
// Cast returned reference into pointer
return & _ret ;
}
QCborMap__ConstIterator * QCborMap__ConstIterator_OperatorPlusPlusWithInt ( QCborMap__ConstIterator * self , int param1 ) {
2024-09-17 06:29:11 +00:00
return new QCborMap : : ConstIterator ( self - > operator + + ( static_cast < int > ( param1 ) ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-18 00:12:02 +00:00
QCborMap__ConstIterator * QCborMap__ConstIterator_OperatorMinusMinus ( QCborMap__ConstIterator * self ) {
QCborMap : : ConstIterator & _ret = self - > operator - - ( ) ;
// Cast returned reference into pointer
return & _ret ;
}
QCborMap__ConstIterator * QCborMap__ConstIterator_OperatorMinusMinusWithInt ( QCborMap__ConstIterator * self , int param1 ) {
2024-09-17 06:29:11 +00:00
return new QCborMap : : ConstIterator ( self - > operator - - ( static_cast < int > ( param1 ) ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-10-11 05:43:04 +00:00
QCborMap__ConstIterator * QCborMap__ConstIterator_OperatorPlusAssign ( QCborMap__ConstIterator * self , ptrdiff_t j ) {
QCborMap : : ConstIterator & _ret = self - > operator + = ( ( qsizetype ) ( j ) ) ;
2024-09-18 00:12:02 +00:00
// Cast returned reference into pointer
return & _ret ;
}
2024-10-11 05:43:04 +00:00
QCborMap__ConstIterator * QCborMap__ConstIterator_OperatorMinusAssign ( QCborMap__ConstIterator * self , ptrdiff_t j ) {
QCborMap : : ConstIterator & _ret = self - > operator - = ( ( qsizetype ) ( j ) ) ;
2024-09-18 00:12:02 +00:00
// Cast returned reference into pointer
return & _ret ;
}
2024-10-11 05:43:04 +00:00
QCborMap__ConstIterator * QCborMap__ConstIterator_OperatorPlus ( const QCborMap__ConstIterator * self , ptrdiff_t j ) {
return new QCborMap : : ConstIterator ( self - > operator + ( ( qsizetype ) ( j ) ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-10-11 05:43:04 +00:00
QCborMap__ConstIterator * QCborMap__ConstIterator_OperatorMinus ( const QCborMap__ConstIterator * self , ptrdiff_t j ) {
return new QCborMap : : ConstIterator ( self - > operator - ( ( qsizetype ) ( j ) ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-10-11 05:43:04 +00:00
ptrdiff_t QCborMap__ConstIterator_OperatorMinusWithQCborMapConstIterator ( const QCborMap__ConstIterator * self , QCborMap__ConstIterator * j ) {
qsizetype _ret = self - > operator - ( * j ) ;
return static_cast < ptrdiff_t > ( _ret ) ;
2024-08-29 07:01:51 +00:00
}
2024-11-19 06:29:06 +00:00
void QCborMap__ConstIterator_Delete ( QCborMap__ConstIterator * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < QCborMap : : ConstIterator * > ( self ) ;
} else {
delete self ;
}
2024-08-29 07:01:51 +00:00
}