2024-08-25 04:08:24 +00:00
|
|
|
#include <QJsonArray>
|
2024-08-29 07:01:51 +00:00
|
|
|
#define WORKAROUND_INNER_CLASS_DEFINITION_QJsonArray__const_iterator
|
|
|
|
#define WORKAROUND_INNER_CLASS_DEFINITION_QJsonArray__iterator
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QJsonValue>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QJsonValuePtr>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QJsonValueRef>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QJsonValueRefPtr>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QList>
|
|
|
|
#include <QString>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <cstring>
|
2024-10-16 05:07:56 +00:00
|
|
|
#include <qjsonarray.h>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qjsonarray.h"
|
2024-12-11 06:55:47 +00:00
|
|
|
|
|
|
|
#ifndef _Bool
|
|
|
|
#define _Bool bool
|
|
|
|
#endif
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QJsonArray* QJsonArray_new() {
|
|
|
|
return new QJsonArray();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QJsonArray* QJsonArray_new2(QJsonArray* other) {
|
|
|
|
return new QJsonArray(*other);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonArray_OperatorAssign(QJsonArray* self, QJsonArray* other) {
|
|
|
|
self->operator=(*other);
|
|
|
|
}
|
|
|
|
|
2024-11-17 06:21:37 +00:00
|
|
|
QJsonArray* QJsonArray_FromStringList(struct miqt_array /* of struct miqt_string */ list) {
|
2024-10-16 05:07:56 +00:00
|
|
|
QStringList list_QList;
|
2024-11-04 07:18:27 +00:00
|
|
|
list_QList.reserve(list.len);
|
|
|
|
struct miqt_string* list_arr = static_cast<struct miqt_string*>(list.data);
|
|
|
|
for(size_t i = 0; i < list.len; ++i) {
|
2024-10-18 23:53:33 +00:00
|
|
|
QString list_arr_i_QString = QString::fromUtf8(list_arr[i].data, list_arr[i].len);
|
2024-09-17 07:43:35 +00:00
|
|
|
list_QList.push_back(list_arr_i_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonArray(QJsonArray::fromStringList(list_QList));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QJsonArray_Size(const QJsonArray* self) {
|
|
|
|
return self->size();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QJsonArray_Count(const QJsonArray* self) {
|
|
|
|
return self->count();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonArray_IsEmpty(const QJsonArray* self) {
|
|
|
|
return self->isEmpty();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonValue* QJsonArray_At(const QJsonArray* self, int i) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonValue(self->at(static_cast<int>(i)));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonValue* QJsonArray_First(const QJsonArray* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonValue(self->first());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonValue* QJsonArray_Last(const QJsonArray* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonValue(self->last());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonArray_Prepend(QJsonArray* self, QJsonValue* value) {
|
|
|
|
self->prepend(*value);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonArray_Append(QJsonArray* self, QJsonValue* value) {
|
|
|
|
self->append(*value);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonArray_RemoveAt(QJsonArray* self, int i) {
|
|
|
|
self->removeAt(static_cast<int>(i));
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonValue* QJsonArray_TakeAt(QJsonArray* self, int i) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonValue(self->takeAt(static_cast<int>(i)));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonArray_RemoveFirst(QJsonArray* self) {
|
|
|
|
self->removeFirst();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonArray_RemoveLast(QJsonArray* self) {
|
|
|
|
self->removeLast();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonArray_Insert(QJsonArray* self, int i, QJsonValue* value) {
|
|
|
|
self->insert(static_cast<int>(i), *value);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonArray_Replace(QJsonArray* self, int i, QJsonValue* value) {
|
|
|
|
self->replace(static_cast<int>(i), *value);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonArray_Contains(const QJsonArray* self, QJsonValue* element) {
|
|
|
|
return self->contains(*element);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QJsonValueRef* QJsonArray_OperatorSubscript(QJsonArray* self, int i) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonValueRef(self->operator[](static_cast<int>(i)));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonValue* QJsonArray_OperatorSubscriptWithInt(const QJsonArray* self, int i) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonValue(self->operator[](static_cast<int>(i)));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonArray_OperatorEqual(const QJsonArray* self, QJsonArray* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self == *other);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonArray_OperatorNotEqual(const QJsonArray* self, QJsonArray* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self != *other);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonArray_Swap(QJsonArray* self, QJsonArray* other) {
|
|
|
|
self->swap(*other);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QJsonArray__iterator* QJsonArray_Begin(QJsonArray* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonArray::iterator(self->begin());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonArray__const_iterator* QJsonArray_Begin2(const QJsonArray* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonArray::const_iterator(self->begin());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonArray__const_iterator* QJsonArray_ConstBegin(const QJsonArray* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonArray::const_iterator(self->constBegin());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonArray__const_iterator* QJsonArray_Cbegin(const QJsonArray* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonArray::const_iterator(self->cbegin());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QJsonArray__iterator* QJsonArray_End(QJsonArray* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonArray::iterator(self->end());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonArray__const_iterator* QJsonArray_End2(const QJsonArray* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonArray::const_iterator(self->end());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonArray__const_iterator* QJsonArray_ConstEnd(const QJsonArray* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonArray::const_iterator(self->constEnd());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonArray__const_iterator* QJsonArray_Cend(const QJsonArray* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonArray::const_iterator(self->cend());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QJsonArray__iterator* QJsonArray_Insert2(QJsonArray* self, QJsonArray__iterator* before, QJsonValue* value) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonArray::iterator(self->insert(*before, *value));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QJsonArray__iterator* QJsonArray_Erase(QJsonArray* self, QJsonArray__iterator* it) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonArray::iterator(self->erase(*it));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonArray* QJsonArray_OperatorPlus(const QJsonArray* self, QJsonValue* v) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonArray(self->operator+(*v));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QJsonArray* QJsonArray_OperatorPlusAssign(QJsonArray* self, QJsonValue* v) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QJsonArray& _ret = self->operator+=(*v);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QJsonArray* QJsonArray_OperatorShiftLeft(QJsonArray* self, QJsonValue* v) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QJsonArray& _ret = self->operator<<(*v);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonArray_PushBack(QJsonArray* self, QJsonValue* t) {
|
|
|
|
self->push_back(*t);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonArray_PushFront(QJsonArray* self, QJsonValue* t) {
|
|
|
|
self->push_front(*t);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonArray_PopFront(QJsonArray* self) {
|
|
|
|
self->pop_front();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonArray_PopBack(QJsonArray* self) {
|
|
|
|
self->pop_back();
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonArray_Empty(const QJsonArray* self) {
|
|
|
|
return self->empty();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QJsonArray_Delete(QJsonArray* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QJsonArray*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QJsonArray__iterator* QJsonArray__iterator_new() {
|
|
|
|
return new QJsonArray::iterator();
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QJsonArray__iterator* QJsonArray__iterator_new2(QJsonArray* array, int index) {
|
|
|
|
return new QJsonArray::iterator(array, static_cast<int>(index));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QJsonArray__iterator* QJsonArray__iterator_new3(QJsonArray__iterator* param1) {
|
|
|
|
return new QJsonArray::iterator(*param1);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonValueRef* QJsonArray__iterator_OperatorMultiply(const QJsonArray__iterator* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonValueRef(self->operator*());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonValueRefPtr* QJsonArray__iterator_OperatorMinusGreater(const QJsonArray__iterator* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonValueRefPtr(self->operator->());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonValueRef* QJsonArray__iterator_OperatorSubscript(const QJsonArray__iterator* self, int j) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonValueRef(self->operator[](static_cast<int>(j)));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonArray__iterator_OperatorEqual(const QJsonArray__iterator* self, QJsonArray__iterator* o) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self == *o);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonArray__iterator_OperatorNotEqual(const QJsonArray__iterator* self, QJsonArray__iterator* o) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self != *o);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonArray__iterator_OperatorLesser(const QJsonArray__iterator* self, QJsonArray__iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self < *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonArray__iterator_OperatorLesserOrEqual(const QJsonArray__iterator* self, QJsonArray__iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self <= *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonArray__iterator_OperatorGreater(const QJsonArray__iterator* self, QJsonArray__iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self > *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonArray__iterator_OperatorGreaterOrEqual(const QJsonArray__iterator* self, QJsonArray__iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self >= *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonArray__iterator_OperatorEqualWithQJsonArrayconstIterator(const QJsonArray__iterator* self, QJsonArray__const_iterator* o) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self == *o);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonArray__iterator_OperatorNotEqualWithQJsonArrayconstIterator(const QJsonArray__iterator* self, QJsonArray__const_iterator* o) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self != *o);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonArray__iterator_OperatorLesserWithOther(const QJsonArray__iterator* self, QJsonArray__const_iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self < *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonArray__iterator_OperatorLesserOrEqualWithOther(const QJsonArray__iterator* self, QJsonArray__const_iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self <= *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonArray__iterator_OperatorGreaterWithOther(const QJsonArray__iterator* self, QJsonArray__const_iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self > *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonArray__iterator_OperatorGreaterOrEqualWithOther(const QJsonArray__iterator* self, QJsonArray__const_iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self >= *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QJsonArray__iterator* QJsonArray__iterator_OperatorPlusPlus(QJsonArray__iterator* self) {
|
|
|
|
QJsonArray::iterator& _ret = self->operator++();
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &_ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonArray__iterator* QJsonArray__iterator_OperatorPlusPlusWithInt(QJsonArray__iterator* self, int param1) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonArray::iterator(self->operator++(static_cast<int>(param1)));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QJsonArray__iterator* QJsonArray__iterator_OperatorMinusMinus(QJsonArray__iterator* self) {
|
|
|
|
QJsonArray::iterator& _ret = self->operator--();
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &_ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonArray__iterator* QJsonArray__iterator_OperatorMinusMinusWithInt(QJsonArray__iterator* self, int param1) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonArray::iterator(self->operator--(static_cast<int>(param1)));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QJsonArray__iterator* QJsonArray__iterator_OperatorPlusAssign(QJsonArray__iterator* self, int j) {
|
|
|
|
QJsonArray::iterator& _ret = self->operator+=(static_cast<int>(j));
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &_ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonArray__iterator* QJsonArray__iterator_OperatorMinusAssign(QJsonArray__iterator* self, int j) {
|
|
|
|
QJsonArray::iterator& _ret = self->operator-=(static_cast<int>(j));
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &_ret;
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonArray__iterator* QJsonArray__iterator_OperatorPlus(const QJsonArray__iterator* self, int j) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonArray::iterator(self->operator+(static_cast<int>(j)));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonArray__iterator* QJsonArray__iterator_OperatorMinus(const QJsonArray__iterator* self, int j) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonArray::iterator(self->operator-(static_cast<int>(j)));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QJsonArray__iterator_OperatorMinusWithQJsonArrayiterator(const QJsonArray__iterator* self, QJsonArray__iterator* j) {
|
|
|
|
return self->operator-(*j);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QJsonArray__iterator_Delete(QJsonArray__iterator* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QJsonArray::iterator*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QJsonArray__const_iterator* QJsonArray__const_iterator_new() {
|
|
|
|
return new QJsonArray::const_iterator();
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QJsonArray__const_iterator* QJsonArray__const_iterator_new2(QJsonArray* array, int index) {
|
|
|
|
return new QJsonArray::const_iterator(array, static_cast<int>(index));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QJsonArray__const_iterator* QJsonArray__const_iterator_new3(QJsonArray__const_iterator* o) {
|
|
|
|
return new QJsonArray::const_iterator(*o);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QJsonArray__const_iterator* QJsonArray__const_iterator_new4(QJsonArray__iterator* o) {
|
|
|
|
return new QJsonArray::const_iterator(*o);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonValue* QJsonArray__const_iterator_OperatorMultiply(const QJsonArray__const_iterator* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonValue(self->operator*());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonValuePtr* QJsonArray__const_iterator_OperatorMinusGreater(const QJsonArray__const_iterator* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonValuePtr(self->operator->());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonValue* QJsonArray__const_iterator_OperatorSubscript(const QJsonArray__const_iterator* self, int j) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonValue(self->operator[](static_cast<int>(j)));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonArray__const_iterator_OperatorEqual(const QJsonArray__const_iterator* self, QJsonArray__const_iterator* o) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self == *o);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonArray__const_iterator_OperatorNotEqual(const QJsonArray__const_iterator* self, QJsonArray__const_iterator* o) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self != *o);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonArray__const_iterator_OperatorLesser(const QJsonArray__const_iterator* self, QJsonArray__const_iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self < *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonArray__const_iterator_OperatorLesserOrEqual(const QJsonArray__const_iterator* self, QJsonArray__const_iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self <= *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonArray__const_iterator_OperatorGreater(const QJsonArray__const_iterator* self, QJsonArray__const_iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self > *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonArray__const_iterator_OperatorGreaterOrEqual(const QJsonArray__const_iterator* self, QJsonArray__const_iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self >= *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QJsonArray__const_iterator* QJsonArray__const_iterator_OperatorPlusPlus(QJsonArray__const_iterator* self) {
|
|
|
|
QJsonArray::const_iterator& _ret = self->operator++();
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &_ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonArray__const_iterator* QJsonArray__const_iterator_OperatorPlusPlusWithInt(QJsonArray__const_iterator* self, int param1) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonArray::const_iterator(self->operator++(static_cast<int>(param1)));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QJsonArray__const_iterator* QJsonArray__const_iterator_OperatorMinusMinus(QJsonArray__const_iterator* self) {
|
|
|
|
QJsonArray::const_iterator& _ret = self->operator--();
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &_ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonArray__const_iterator* QJsonArray__const_iterator_OperatorMinusMinusWithInt(QJsonArray__const_iterator* self, int param1) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonArray::const_iterator(self->operator--(static_cast<int>(param1)));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QJsonArray__const_iterator* QJsonArray__const_iterator_OperatorPlusAssign(QJsonArray__const_iterator* self, int j) {
|
|
|
|
QJsonArray::const_iterator& _ret = self->operator+=(static_cast<int>(j));
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &_ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonArray__const_iterator* QJsonArray__const_iterator_OperatorMinusAssign(QJsonArray__const_iterator* self, int j) {
|
|
|
|
QJsonArray::const_iterator& _ret = self->operator-=(static_cast<int>(j));
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &_ret;
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonArray__const_iterator* QJsonArray__const_iterator_OperatorPlus(const QJsonArray__const_iterator* self, int j) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonArray::const_iterator(self->operator+(static_cast<int>(j)));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonArray__const_iterator* QJsonArray__const_iterator_OperatorMinus(const QJsonArray__const_iterator* self, int j) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonArray::const_iterator(self->operator-(static_cast<int>(j)));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QJsonArray__const_iterator_OperatorMinusWithQJsonArrayconstIterator(const QJsonArray__const_iterator* self, QJsonArray__const_iterator* j) {
|
|
|
|
return self->operator-(*j);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QJsonArray__const_iterator_Delete(QJsonArray__const_iterator* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QJsonArray::const_iterator*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|