2024-10-25 21:42:03 +00:00
|
|
|
#define WORKAROUND_INNER_CLASS_DEFINITION_QAssociativeIterable__const_iterator
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QBitArray>
|
|
|
|
#include <QByteArray>
|
|
|
|
#include <QChar>
|
|
|
|
#include <QDataStream>
|
|
|
|
#include <QDate>
|
|
|
|
#include <QDateTime>
|
|
|
|
#include <QEasingCurve>
|
|
|
|
#include <QJsonArray>
|
|
|
|
#include <QJsonDocument>
|
|
|
|
#include <QJsonObject>
|
|
|
|
#include <QJsonValue>
|
|
|
|
#include <QLine>
|
|
|
|
#include <QLineF>
|
|
|
|
#include <QList>
|
|
|
|
#include <QLocale>
|
2024-11-04 07:59:22 +00:00
|
|
|
#include <QMap>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QModelIndex>
|
|
|
|
#include <QPersistentModelIndex>
|
|
|
|
#include <QPoint>
|
|
|
|
#include <QPointF>
|
|
|
|
#include <QRect>
|
|
|
|
#include <QRectF>
|
|
|
|
#include <QRegExp>
|
|
|
|
#include <QRegularExpression>
|
2024-10-25 21:42:03 +00:00
|
|
|
#define WORKAROUND_INNER_CLASS_DEFINITION_QSequentialIterable__const_iterator
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QSize>
|
|
|
|
#include <QSizeF>
|
|
|
|
#include <QString>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <cstring>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QTime>
|
|
|
|
#include <QUrl>
|
|
|
|
#include <QUuid>
|
|
|
|
#include <QVariant>
|
2024-08-29 07:01:51 +00:00
|
|
|
#define WORKAROUND_INNER_CLASS_DEFINITION_QVariant__Handler
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QVariantComparisonHelper>
|
2024-10-16 05:07:56 +00:00
|
|
|
#include <qvariant.h>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qvariant.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 QVariant_new(QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant();
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new2(int typeVal, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(static_cast<QVariant::Type>(typeVal));
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new3(int typeId, const void* copyVal, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(static_cast<int>(typeId), copyVal);
|
|
|
|
*outptr_QVariant = ret;
|
2024-09-20 22:32:57 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new4(int typeId, const void* copyVal, unsigned int flags, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(static_cast<int>(typeId), copyVal, static_cast<uint>(flags));
|
|
|
|
*outptr_QVariant = ret;
|
2024-09-20 22:32:57 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new5(QVariant* other, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*other);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new6(QDataStream* s, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*s);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new7(int i, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(static_cast<int>(i));
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new8(unsigned int ui, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(static_cast<uint>(ui));
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new9(long long ll, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(static_cast<qlonglong>(ll));
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new10(unsigned long long ull, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(static_cast<qulonglong>(ull));
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new11(bool b, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(b);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new12(double d, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(static_cast<double>(d));
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new13(float f, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(static_cast<float>(f));
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new14(const char* str, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(str);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new15(struct miqt_string bytearray, QVariant** outptr_QVariant) {
|
2024-10-18 23:53:33 +00:00
|
|
|
QByteArray bytearray_QByteArray(bytearray.data, bytearray.len);
|
2024-11-19 06:29:06 +00:00
|
|
|
QVariant* ret = new QVariant(bytearray_QByteArray);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new16(QBitArray* bitarray, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*bitarray);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new17(struct miqt_string stringVal, QVariant** outptr_QVariant) {
|
2024-10-18 23:53:33 +00:00
|
|
|
QString stringVal_QString = QString::fromUtf8(stringVal.data, stringVal.len);
|
2024-11-19 06:29:06 +00:00
|
|
|
QVariant* ret = new QVariant(stringVal_QString);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new18(struct miqt_array /* of struct miqt_string */ stringlist, QVariant** outptr_QVariant) {
|
2024-10-16 05:07:56 +00:00
|
|
|
QStringList stringlist_QList;
|
2024-11-04 07:18:27 +00:00
|
|
|
stringlist_QList.reserve(stringlist.len);
|
|
|
|
struct miqt_string* stringlist_arr = static_cast<struct miqt_string*>(stringlist.data);
|
|
|
|
for(size_t i = 0; i < stringlist.len; ++i) {
|
2024-10-18 23:53:33 +00:00
|
|
|
QString stringlist_arr_i_QString = QString::fromUtf8(stringlist_arr[i].data, stringlist_arr[i].len);
|
2024-09-17 07:43:35 +00:00
|
|
|
stringlist_QList.push_back(stringlist_arr_i_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
QVariant* ret = new QVariant(stringlist_QList);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new19(QChar* qchar, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*qchar);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new20(QDate* date, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*date);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new21(QTime* time, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*time);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new22(QDateTime* datetime, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*datetime);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new23(struct miqt_map /* of struct miqt_string to QVariant* */ mapVal, QVariant** outptr_QVariant) {
|
2024-11-04 07:59:22 +00:00
|
|
|
QMap<QString, QVariant> 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]);
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
QVariant* ret = new QVariant(mapVal_QMap);
|
|
|
|
*outptr_QVariant = ret;
|
2024-11-04 07:59:22 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new24(struct miqt_map /* of struct miqt_string to QVariant* */ hash, QVariant** outptr_QVariant) {
|
2024-11-04 07:59:22 +00:00
|
|
|
QHash<QString, QVariant> 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]);
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
QVariant* ret = new QVariant(hash_QMap);
|
|
|
|
*outptr_QVariant = ret;
|
2024-11-04 07:59:22 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new25(QSize* size, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*size);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new26(QSizeF* size, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*size);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new27(QPoint* pt, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*pt);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new28(QPointF* pt, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*pt);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new29(QLine* line, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*line);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new30(QLineF* line, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*line);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new31(QRect* rect, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*rect);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new32(QRectF* rect, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*rect);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new33(QLocale* locale, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*locale);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new34(QRegExp* regExp, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*regExp);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new35(QRegularExpression* re, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*re);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new36(QEasingCurve* easing, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*easing);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new37(QUuid* uuid, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*uuid);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new38(QUrl* url, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*url);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new39(QJsonValue* jsonValue, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*jsonValue);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new40(QJsonObject* jsonObject, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*jsonObject);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new41(QJsonArray* jsonArray, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*jsonArray);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new42(QJsonDocument* jsonDocument, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*jsonDocument);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new43(QModelIndex* modelIndex, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*modelIndex);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_new44(QPersistentModelIndex* modelIndex, QVariant** outptr_QVariant) {
|
|
|
|
QVariant* ret = new QVariant(*modelIndex);
|
|
|
|
*outptr_QVariant = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QVariant_OperatorAssign(QVariant* self, QVariant* other) {
|
|
|
|
self->operator=(*other);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QVariant_Swap(QVariant* self, QVariant* other) {
|
|
|
|
self->swap(*other);
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QVariant_Type(const QVariant* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QVariant::Type _ret = self->type();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QVariant_UserType(const QVariant* self) {
|
|
|
|
return self->userType();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
const char* QVariant_TypeName(const QVariant* self) {
|
|
|
|
return (const char*) self->typeName();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QVariant_CanConvert(const QVariant* self, int targetTypeId) {
|
|
|
|
return self->canConvert(static_cast<int>(targetTypeId));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QVariant_Convert(QVariant* self, int targetTypeId) {
|
|
|
|
return self->convert(static_cast<int>(targetTypeId));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QVariant_IsValid(const QVariant* self) {
|
|
|
|
return self->isValid();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QVariant_IsNull(const QVariant* self) {
|
|
|
|
return self->isNull();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QVariant_Clear(QVariant* self) {
|
|
|
|
self->clear();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QVariant_Detach(QVariant* self) {
|
|
|
|
self->detach();
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QVariant_IsDetached(const QVariant* self) {
|
|
|
|
return self->isDetached();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QVariant_ToInt(const QVariant* self) {
|
|
|
|
return self->toInt();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned int QVariant_ToUInt(const QVariant* self) {
|
2024-09-18 00:12:02 +00:00
|
|
|
uint _ret = self->toUInt();
|
|
|
|
return static_cast<unsigned int>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
long long QVariant_ToLongLong(const QVariant* self) {
|
|
|
|
qlonglong _ret = self->toLongLong();
|
|
|
|
return static_cast<long long>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
unsigned long long QVariant_ToULongLong(const QVariant* self) {
|
|
|
|
qulonglong _ret = self->toULongLong();
|
|
|
|
return static_cast<unsigned long long>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QVariant_ToBool(const QVariant* self) {
|
|
|
|
return self->toBool();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
double QVariant_ToDouble(const QVariant* self) {
|
|
|
|
return self->toDouble();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
float QVariant_ToFloat(const QVariant* self) {
|
|
|
|
return self->toFloat();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
double QVariant_ToReal(const QVariant* self) {
|
2024-09-18 00:12:02 +00:00
|
|
|
qreal _ret = self->toReal();
|
|
|
|
return static_cast<double>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QVariant_ToByteArray(const QVariant* self) {
|
|
|
|
QByteArray _qb = self->toByteArray();
|
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _qb.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _qb.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QBitArray* QVariant_ToBitArray(const QVariant* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QBitArray(self->toBitArray());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QVariant_ToString(const QVariant* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = self->toString();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-17 06:21:37 +00:00
|
|
|
struct miqt_array /* of struct miqt_string */ QVariant_ToStringList(const QVariant* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QStringList _ret = self->toStringList();
|
2024-09-17 06:29:11 +00:00
|
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string* _arr = static_cast<struct miqt_string*>(malloc(sizeof(struct miqt_string) * _ret.length()));
|
2024-09-14 22:29:05 +00:00
|
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
|
|
QString _lv_ret = _ret[i];
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _lv_b = _lv_ret.toUtf8();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _lv_ms;
|
|
|
|
_lv_ms.len = _lv_b.length();
|
|
|
|
_lv_ms.data = static_cast<char*>(malloc(_lv_ms.len));
|
|
|
|
memcpy(_lv_ms.data, _lv_b.data(), _lv_ms.len);
|
|
|
|
_arr[i] = _lv_ms;
|
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
|
|
|
QChar* QVariant_ToChar(const QVariant* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QChar(self->toChar());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QDate* QVariant_ToDate(const QVariant* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QDate(self->toDate());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QTime* QVariant_ToTime(const QVariant* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QTime(self->toTime());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QDateTime* QVariant_ToDateTime(const QVariant* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QDateTime(self->toDateTime());
|
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* */ QVariant_ToMap(const QVariant* self) {
|
2024-11-04 07:59:22 +00:00
|
|
|
QMap<QString, QVariant> _ret = self->toMap();
|
|
|
|
// 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* */ QVariant_ToHash(const QVariant* self) {
|
2024-11-04 07:59:22 +00:00
|
|
|
QHash<QString, QVariant> _ret = self->toHash();
|
|
|
|
// 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
|
|
|
QPoint* QVariant_ToPoint(const QVariant* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QPoint(self->toPoint());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QPointF* QVariant_ToPointF(const QVariant* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QPointF(self->toPointF());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QRect* QVariant_ToRect(const QVariant* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QRect(self->toRect());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QSize* QVariant_ToSize(const QVariant* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QSize(self->toSize());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QSizeF* QVariant_ToSizeF(const QVariant* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QSizeF(self->toSizeF());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QLine* QVariant_ToLine(const QVariant* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QLine(self->toLine());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QLineF* QVariant_ToLineF(const QVariant* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QLineF(self->toLineF());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QRectF* QVariant_ToRectF(const QVariant* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QRectF(self->toRectF());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QLocale* QVariant_ToLocale(const QVariant* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QLocale(self->toLocale());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QRegExp* QVariant_ToRegExp(const QVariant* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QRegExp(self->toRegExp());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QRegularExpression* QVariant_ToRegularExpression(const QVariant* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QRegularExpression(self->toRegularExpression());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QEasingCurve* QVariant_ToEasingCurve(const QVariant* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QEasingCurve(self->toEasingCurve());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QUuid* QVariant_ToUuid(const QVariant* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QUuid(self->toUuid());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QUrl* QVariant_ToUrl(const QVariant* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QUrl(self->toUrl());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonValue* QVariant_ToJsonValue(const QVariant* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonValue(self->toJsonValue());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonObject* QVariant_ToJsonObject(const QVariant* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonObject(self->toJsonObject());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonArray* QVariant_ToJsonArray(const QVariant* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonArray(self->toJsonArray());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonDocument* QVariant_ToJsonDocument(const QVariant* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonDocument(self->toJsonDocument());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QModelIndex* QVariant_ToModelIndex(const QVariant* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QModelIndex(self->toModelIndex());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QPersistentModelIndex* QVariant_ToPersistentModelIndex(const QVariant* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QPersistentModelIndex(self->toPersistentModelIndex());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QVariant_Load(QVariant* self, QDataStream* ds) {
|
|
|
|
self->load(*ds);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
void QVariant_Save(const QVariant* self, QDataStream* ds) {
|
|
|
|
self->save(*ds);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
const char* QVariant_TypeToName(int typeId) {
|
|
|
|
return (const char*) QVariant::typeToName(static_cast<int>(typeId));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QVariant_NameToType(const char* name) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QVariant::Type _ret = QVariant::nameToType(name);
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QVariant_Data(QVariant* self) {
|
|
|
|
return self->data();
|
|
|
|
}
|
|
|
|
|
|
|
|
const void* QVariant_ConstData(const QVariant* self) {
|
|
|
|
return (const void*) self->constData();
|
|
|
|
}
|
|
|
|
|
|
|
|
const void* QVariant_Data2(const QVariant* self) {
|
|
|
|
return (const void*) self->data();
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QVariant_OperatorEqual(const QVariant* self, QVariant* v) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self == *v);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QVariant_OperatorNotEqual(const QVariant* self, QVariant* v) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self != *v);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QVariant_OperatorLesser(const QVariant* self, QVariant* v) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self < *v);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QVariant_OperatorLesserOrEqual(const QVariant* self, QVariant* v) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self <= *v);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QVariant_OperatorGreater(const QVariant* self, QVariant* v) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self > *v);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QVariant_OperatorGreaterOrEqual(const QVariant* self, QVariant* v) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self >= *v);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QVariant_ToInt1(const QVariant* self, bool* ok) {
|
|
|
|
return self->toInt(ok);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned int QVariant_ToUInt1(const QVariant* self, bool* ok) {
|
2024-09-18 00:12:02 +00:00
|
|
|
uint _ret = self->toUInt(ok);
|
|
|
|
return static_cast<unsigned int>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
long long QVariant_ToLongLong1(const QVariant* self, bool* ok) {
|
|
|
|
qlonglong _ret = self->toLongLong(ok);
|
|
|
|
return static_cast<long long>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
unsigned long long QVariant_ToULongLong1(const QVariant* self, bool* ok) {
|
|
|
|
qulonglong _ret = self->toULongLong(ok);
|
|
|
|
return static_cast<unsigned long long>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
double QVariant_ToDouble1(const QVariant* self, bool* ok) {
|
|
|
|
return self->toDouble(ok);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
float QVariant_ToFloat1(const QVariant* self, bool* ok) {
|
|
|
|
return self->toFloat(ok);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
double QVariant_ToReal1(const QVariant* self, bool* ok) {
|
2024-09-18 00:12:02 +00:00
|
|
|
qreal _ret = self->toReal(ok);
|
|
|
|
return static_cast<double>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant_Delete(QVariant* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QVariant*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariantComparisonHelper_new(QVariant* varVal, QVariantComparisonHelper** outptr_QVariantComparisonHelper) {
|
|
|
|
QVariantComparisonHelper* ret = new QVariantComparisonHelper(*varVal);
|
|
|
|
*outptr_QVariantComparisonHelper = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariantComparisonHelper_new2(QVariantComparisonHelper* param1, QVariantComparisonHelper** outptr_QVariantComparisonHelper) {
|
|
|
|
QVariantComparisonHelper* ret = new QVariantComparisonHelper(*param1);
|
|
|
|
*outptr_QVariantComparisonHelper = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariantComparisonHelper_Delete(QVariantComparisonHelper* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QVariantComparisonHelper*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVariant__Handler_Delete(QVariant__Handler* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QVariant::Handler*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QSequentialIterable__const_iterator_new(QSequentialIterable__const_iterator* other, QSequentialIterable__const_iterator** outptr_QSequentialIterable__const_iterator) {
|
|
|
|
QSequentialIterable::const_iterator* ret = new QSequentialIterable::const_iterator(*other);
|
|
|
|
*outptr_QSequentialIterable__const_iterator = ret;
|
2024-10-25 21:42:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QSequentialIterable__const_iterator_OperatorAssign(QSequentialIterable__const_iterator* self, QSequentialIterable__const_iterator* other) {
|
|
|
|
self->operator=(*other);
|
|
|
|
}
|
|
|
|
|
|
|
|
QVariant* QSequentialIterable__const_iterator_OperatorMultiply(const QSequentialIterable__const_iterator* self) {
|
|
|
|
return new QVariant(self->operator*());
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QSequentialIterable__const_iterator_OperatorEqual(const QSequentialIterable__const_iterator* self, QSequentialIterable__const_iterator* o) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self == *o);
|
2024-10-25 21:42:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QSequentialIterable__const_iterator_OperatorNotEqual(const QSequentialIterable__const_iterator* self, QSequentialIterable__const_iterator* o) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self != *o);
|
2024-10-25 21:42:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QSequentialIterable__const_iterator* QSequentialIterable__const_iterator_OperatorPlusPlus(QSequentialIterable__const_iterator* self) {
|
|
|
|
QSequentialIterable::const_iterator& _ret = self->operator++();
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &_ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
QSequentialIterable__const_iterator* QSequentialIterable__const_iterator_OperatorPlusPlusWithInt(QSequentialIterable__const_iterator* self, int param1) {
|
|
|
|
return new QSequentialIterable::const_iterator(self->operator++(static_cast<int>(param1)));
|
|
|
|
}
|
|
|
|
|
|
|
|
QSequentialIterable__const_iterator* QSequentialIterable__const_iterator_OperatorMinusMinus(QSequentialIterable__const_iterator* self) {
|
|
|
|
QSequentialIterable::const_iterator& _ret = self->operator--();
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &_ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
QSequentialIterable__const_iterator* QSequentialIterable__const_iterator_OperatorMinusMinusWithInt(QSequentialIterable__const_iterator* self, int param1) {
|
|
|
|
return new QSequentialIterable::const_iterator(self->operator--(static_cast<int>(param1)));
|
|
|
|
}
|
|
|
|
|
|
|
|
QSequentialIterable__const_iterator* QSequentialIterable__const_iterator_OperatorPlusAssign(QSequentialIterable__const_iterator* self, int j) {
|
|
|
|
QSequentialIterable::const_iterator& _ret = self->operator+=(static_cast<int>(j));
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &_ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
QSequentialIterable__const_iterator* QSequentialIterable__const_iterator_OperatorMinusAssign(QSequentialIterable__const_iterator* self, int j) {
|
|
|
|
QSequentialIterable::const_iterator& _ret = self->operator-=(static_cast<int>(j));
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &_ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
QSequentialIterable__const_iterator* QSequentialIterable__const_iterator_OperatorPlus(const QSequentialIterable__const_iterator* self, int j) {
|
|
|
|
return new QSequentialIterable::const_iterator(self->operator+(static_cast<int>(j)));
|
|
|
|
}
|
|
|
|
|
|
|
|
QSequentialIterable__const_iterator* QSequentialIterable__const_iterator_OperatorMinus(const QSequentialIterable__const_iterator* self, int j) {
|
|
|
|
return new QSequentialIterable::const_iterator(self->operator-(static_cast<int>(j)));
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QSequentialIterable__const_iterator_Delete(QSequentialIterable__const_iterator* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QSequentialIterable::const_iterator*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-10-25 21:42:03 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QAssociativeIterable__const_iterator_new(QAssociativeIterable__const_iterator* other, QAssociativeIterable__const_iterator** outptr_QAssociativeIterable__const_iterator) {
|
|
|
|
QAssociativeIterable::const_iterator* ret = new QAssociativeIterable::const_iterator(*other);
|
|
|
|
*outptr_QAssociativeIterable__const_iterator = ret;
|
2024-10-25 21:42:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QAssociativeIterable__const_iterator_OperatorAssign(QAssociativeIterable__const_iterator* self, QAssociativeIterable__const_iterator* other) {
|
|
|
|
self->operator=(*other);
|
|
|
|
}
|
|
|
|
|
|
|
|
QVariant* QAssociativeIterable__const_iterator_Key(const QAssociativeIterable__const_iterator* self) {
|
|
|
|
return new QVariant(self->key());
|
|
|
|
}
|
|
|
|
|
|
|
|
QVariant* QAssociativeIterable__const_iterator_Value(const QAssociativeIterable__const_iterator* self) {
|
|
|
|
return new QVariant(self->value());
|
|
|
|
}
|
|
|
|
|
|
|
|
QVariant* QAssociativeIterable__const_iterator_OperatorMultiply(const QAssociativeIterable__const_iterator* self) {
|
|
|
|
return new QVariant(self->operator*());
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QAssociativeIterable__const_iterator_OperatorEqual(const QAssociativeIterable__const_iterator* self, QAssociativeIterable__const_iterator* o) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self == *o);
|
2024-10-25 21:42:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QAssociativeIterable__const_iterator_OperatorNotEqual(const QAssociativeIterable__const_iterator* self, QAssociativeIterable__const_iterator* o) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self != *o);
|
2024-10-25 21:42:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QAssociativeIterable__const_iterator* QAssociativeIterable__const_iterator_OperatorPlusPlus(QAssociativeIterable__const_iterator* self) {
|
|
|
|
QAssociativeIterable::const_iterator& _ret = self->operator++();
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &_ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
QAssociativeIterable__const_iterator* QAssociativeIterable__const_iterator_OperatorPlusPlusWithInt(QAssociativeIterable__const_iterator* self, int param1) {
|
|
|
|
return new QAssociativeIterable::const_iterator(self->operator++(static_cast<int>(param1)));
|
|
|
|
}
|
|
|
|
|
|
|
|
QAssociativeIterable__const_iterator* QAssociativeIterable__const_iterator_OperatorMinusMinus(QAssociativeIterable__const_iterator* self) {
|
|
|
|
QAssociativeIterable::const_iterator& _ret = self->operator--();
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &_ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
QAssociativeIterable__const_iterator* QAssociativeIterable__const_iterator_OperatorMinusMinusWithInt(QAssociativeIterable__const_iterator* self, int param1) {
|
|
|
|
return new QAssociativeIterable::const_iterator(self->operator--(static_cast<int>(param1)));
|
|
|
|
}
|
|
|
|
|
|
|
|
QAssociativeIterable__const_iterator* QAssociativeIterable__const_iterator_OperatorPlusAssign(QAssociativeIterable__const_iterator* self, int j) {
|
|
|
|
QAssociativeIterable::const_iterator& _ret = self->operator+=(static_cast<int>(j));
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &_ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
QAssociativeIterable__const_iterator* QAssociativeIterable__const_iterator_OperatorMinusAssign(QAssociativeIterable__const_iterator* self, int j) {
|
|
|
|
QAssociativeIterable::const_iterator& _ret = self->operator-=(static_cast<int>(j));
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &_ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
QAssociativeIterable__const_iterator* QAssociativeIterable__const_iterator_OperatorPlus(const QAssociativeIterable__const_iterator* self, int j) {
|
|
|
|
return new QAssociativeIterable::const_iterator(self->operator+(static_cast<int>(j)));
|
|
|
|
}
|
|
|
|
|
|
|
|
QAssociativeIterable__const_iterator* QAssociativeIterable__const_iterator_OperatorMinus(const QAssociativeIterable__const_iterator* self, int j) {
|
|
|
|
return new QAssociativeIterable::const_iterator(self->operator-(static_cast<int>(j)));
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QAssociativeIterable__const_iterator_Delete(QAssociativeIterable__const_iterator* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QAssociativeIterable::const_iterator*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-10-25 21:42:03 +00:00
|
|
|
}
|
|
|
|
|