miqt/qt/gen_qjsonarray.cpp

437 lines
17 KiB
C++

#include <QJsonArray>
#define WORKAROUND_INNER_CLASS_DEFINITION_QJsonArray__const_iterator
#define WORKAROUND_INNER_CLASS_DEFINITION_QJsonArray__iterator
#include <QJsonValue>
#include <QJsonValuePtr>
#include <QJsonValueRef>
#include <QJsonValueRefPtr>
#include <QList>
#include <QString>
#include <QByteArray>
#include <cstring>
#include "qjsonarray.h"
#include "gen_qjsonarray.h"
extern "C" {
extern void miqt_exec_callback(void* cb, int argc, void* argv);
}
QJsonArray* QJsonArray_new() {
return new QJsonArray();
}
QJsonArray* QJsonArray_new2(QJsonArray* other) {
return new QJsonArray(*other);
}
void QJsonArray_OperatorAssign(QJsonArray* self, QJsonArray* other) {
self->operator=(*other);
}
QJsonArray* QJsonArray_FromStringList(char** list, uint64_t* list_Lengths, size_t list_len) {
QList<QString> list_QList;
list_QList.reserve(list_len);
for(size_t i = 0; i < list_len; ++i) {
list_QList.push_back(QString::fromUtf8(list[i], list_Lengths[i]));
}
QJsonArray ret = QJsonArray::fromStringList(list_QList);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonArray*>(new QJsonArray(ret));
}
int QJsonArray_Size(QJsonArray* self) {
return const_cast<const QJsonArray*>(self)->size();
}
int QJsonArray_Count(QJsonArray* self) {
return const_cast<const QJsonArray*>(self)->count();
}
bool QJsonArray_IsEmpty(QJsonArray* self) {
return const_cast<const QJsonArray*>(self)->isEmpty();
}
QJsonValue* QJsonArray_At(QJsonArray* self, int i) {
QJsonValue ret = const_cast<const QJsonArray*>(self)->at(static_cast<int>(i));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonValue*>(new QJsonValue(ret));
}
QJsonValue* QJsonArray_First(QJsonArray* self) {
QJsonValue ret = const_cast<const QJsonArray*>(self)->first();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonValue*>(new QJsonValue(ret));
}
QJsonValue* QJsonArray_Last(QJsonArray* self) {
QJsonValue ret = const_cast<const QJsonArray*>(self)->last();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonValue*>(new QJsonValue(ret));
}
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) {
QJsonValue ret = self->takeAt(static_cast<int>(i));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonValue*>(new QJsonValue(ret));
}
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);
}
bool QJsonArray_Contains(QJsonArray* self, QJsonValue* element) {
return const_cast<const QJsonArray*>(self)->contains(*element);
}
QJsonValueRef* QJsonArray_OperatorSubscript(QJsonArray* self, int i) {
QJsonValueRef ret = self->operator[](static_cast<int>(i));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonValueRef*>(new QJsonValueRef(ret));
}
QJsonValue* QJsonArray_OperatorSubscriptWithInt(QJsonArray* self, int i) {
QJsonValue ret = const_cast<const QJsonArray*>(self)->operator[](static_cast<int>(i));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonValue*>(new QJsonValue(ret));
}
bool QJsonArray_OperatorEqual(QJsonArray* self, QJsonArray* other) {
return const_cast<const QJsonArray*>(self)->operator==(*other);
}
bool QJsonArray_OperatorNotEqual(QJsonArray* self, QJsonArray* other) {
return const_cast<const QJsonArray*>(self)->operator!=(*other);
}
void QJsonArray_Swap(QJsonArray* self, QJsonArray* other) {
self->swap(*other);
}
QJsonArray__iterator* QJsonArray_Begin(QJsonArray* self) {
QJsonArray::iterator ret = self->begin();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonArray::iterator*>(new QJsonArray::iterator(ret));
}
QJsonArray__const_iterator* QJsonArray_Begin2(QJsonArray* self) {
QJsonArray::const_iterator ret = const_cast<const QJsonArray*>(self)->begin();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonArray::const_iterator*>(new QJsonArray::const_iterator(ret));
}
QJsonArray__const_iterator* QJsonArray_ConstBegin(QJsonArray* self) {
QJsonArray::const_iterator ret = const_cast<const QJsonArray*>(self)->constBegin();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonArray::const_iterator*>(new QJsonArray::const_iterator(ret));
}
QJsonArray__const_iterator* QJsonArray_Cbegin(QJsonArray* self) {
QJsonArray::const_iterator ret = const_cast<const QJsonArray*>(self)->cbegin();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonArray::const_iterator*>(new QJsonArray::const_iterator(ret));
}
QJsonArray__iterator* QJsonArray_End(QJsonArray* self) {
QJsonArray::iterator ret = self->end();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonArray::iterator*>(new QJsonArray::iterator(ret));
}
QJsonArray__const_iterator* QJsonArray_End2(QJsonArray* self) {
QJsonArray::const_iterator ret = const_cast<const QJsonArray*>(self)->end();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonArray::const_iterator*>(new QJsonArray::const_iterator(ret));
}
QJsonArray__const_iterator* QJsonArray_ConstEnd(QJsonArray* self) {
QJsonArray::const_iterator ret = const_cast<const QJsonArray*>(self)->constEnd();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonArray::const_iterator*>(new QJsonArray::const_iterator(ret));
}
QJsonArray__const_iterator* QJsonArray_Cend(QJsonArray* self) {
QJsonArray::const_iterator ret = const_cast<const QJsonArray*>(self)->cend();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonArray::const_iterator*>(new QJsonArray::const_iterator(ret));
}
QJsonArray__iterator* QJsonArray_Insert2(QJsonArray* self, QJsonArray__iterator* before, QJsonValue* value) {
QJsonArray::iterator ret = self->insert(*before, *value);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonArray::iterator*>(new QJsonArray::iterator(ret));
}
QJsonArray__iterator* QJsonArray_Erase(QJsonArray* self, QJsonArray__iterator* it) {
QJsonArray::iterator ret = self->erase(*it);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonArray::iterator*>(new QJsonArray::iterator(ret));
}
QJsonArray* QJsonArray_OperatorPlus(QJsonArray* self, QJsonValue* v) {
QJsonArray ret = const_cast<const QJsonArray*>(self)->operator+(*v);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonArray*>(new QJsonArray(ret));
}
QJsonArray* QJsonArray_OperatorPlusAssign(QJsonArray* self, QJsonValue* v) {
QJsonArray& ret = self->operator+=(*v);
// Cast returned reference into pointer
return &ret;
}
QJsonArray* QJsonArray_OperatorShiftLeft(QJsonArray* self, QJsonValue* v) {
QJsonArray& ret = self->operator<<(*v);
// Cast returned reference into pointer
return &ret;
}
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();
}
bool QJsonArray_Empty(QJsonArray* self) {
return const_cast<const QJsonArray*>(self)->empty();
}
void QJsonArray_Delete(QJsonArray* self) {
delete self;
}
QJsonArray__iterator* QJsonArray__iterator_new() {
return new QJsonArray::iterator();
}
QJsonArray__iterator* QJsonArray__iterator_new2(QJsonArray* array, int index) {
return new QJsonArray::iterator(array, static_cast<int>(index));
}
QJsonArray__iterator* QJsonArray__iterator_new3(QJsonArray__iterator* param1) {
return new QJsonArray::iterator(*param1);
}
QJsonValueRef* QJsonArray__iterator_OperatorMultiply(QJsonArray__iterator* self) {
QJsonValueRef ret = const_cast<const QJsonArray::iterator*>(self)->operator*();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonValueRef*>(new QJsonValueRef(ret));
}
QJsonValueRefPtr* QJsonArray__iterator_OperatorMinusGreater(QJsonArray__iterator* self) {
QJsonValueRefPtr ret = const_cast<const QJsonArray::iterator*>(self)->operator->();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonValueRefPtr*>(new QJsonValueRefPtr(ret));
}
QJsonValueRef* QJsonArray__iterator_OperatorSubscript(QJsonArray__iterator* self, int j) {
QJsonValueRef ret = const_cast<const QJsonArray::iterator*>(self)->operator[](static_cast<int>(j));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonValueRef*>(new QJsonValueRef(ret));
}
bool QJsonArray__iterator_OperatorEqual(QJsonArray__iterator* self, QJsonArray__iterator* o) {
return const_cast<const QJsonArray::iterator*>(self)->operator==(*o);
}
bool QJsonArray__iterator_OperatorNotEqual(QJsonArray__iterator* self, QJsonArray__iterator* o) {
return const_cast<const QJsonArray::iterator*>(self)->operator!=(*o);
}
bool QJsonArray__iterator_OperatorLesser(QJsonArray__iterator* self, QJsonArray__iterator* other) {
return const_cast<const QJsonArray::iterator*>(self)->operator<(*other);
}
bool QJsonArray__iterator_OperatorLesserOrEqual(QJsonArray__iterator* self, QJsonArray__iterator* other) {
return const_cast<const QJsonArray::iterator*>(self)->operator<=(*other);
}
bool QJsonArray__iterator_OperatorGreater(QJsonArray__iterator* self, QJsonArray__iterator* other) {
return const_cast<const QJsonArray::iterator*>(self)->operator>(*other);
}
bool QJsonArray__iterator_OperatorGreaterOrEqual(QJsonArray__iterator* self, QJsonArray__iterator* other) {
return const_cast<const QJsonArray::iterator*>(self)->operator>=(*other);
}
bool QJsonArray__iterator_OperatorEqualWithQJsonArrayconstIterator(QJsonArray__iterator* self, QJsonArray__const_iterator* o) {
return const_cast<const QJsonArray::iterator*>(self)->operator==(*o);
}
bool QJsonArray__iterator_OperatorNotEqualWithQJsonArrayconstIterator(QJsonArray__iterator* self, QJsonArray__const_iterator* o) {
return const_cast<const QJsonArray::iterator*>(self)->operator!=(*o);
}
bool QJsonArray__iterator_OperatorLesserWithOther(QJsonArray__iterator* self, QJsonArray__const_iterator* other) {
return const_cast<const QJsonArray::iterator*>(self)->operator<(*other);
}
bool QJsonArray__iterator_OperatorLesserOrEqualWithOther(QJsonArray__iterator* self, QJsonArray__const_iterator* other) {
return const_cast<const QJsonArray::iterator*>(self)->operator<=(*other);
}
bool QJsonArray__iterator_OperatorGreaterWithOther(QJsonArray__iterator* self, QJsonArray__const_iterator* other) {
return const_cast<const QJsonArray::iterator*>(self)->operator>(*other);
}
bool QJsonArray__iterator_OperatorGreaterOrEqualWithOther(QJsonArray__iterator* self, QJsonArray__const_iterator* other) {
return const_cast<const QJsonArray::iterator*>(self)->operator>=(*other);
}
QJsonArray__iterator* QJsonArray__iterator_OperatorPlusPlus(QJsonArray__iterator* self, int param1) {
QJsonArray::iterator ret = self->operator++(static_cast<int>(param1));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonArray::iterator*>(new QJsonArray::iterator(ret));
}
QJsonArray__iterator* QJsonArray__iterator_OperatorMinusMinus(QJsonArray__iterator* self, int param1) {
QJsonArray::iterator ret = self->operator--(static_cast<int>(param1));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonArray::iterator*>(new QJsonArray::iterator(ret));
}
QJsonArray__iterator* QJsonArray__iterator_OperatorPlus(QJsonArray__iterator* self, int j) {
QJsonArray::iterator ret = const_cast<const QJsonArray::iterator*>(self)->operator+(static_cast<int>(j));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonArray::iterator*>(new QJsonArray::iterator(ret));
}
QJsonArray__iterator* QJsonArray__iterator_OperatorMinus(QJsonArray__iterator* self, int j) {
QJsonArray::iterator ret = const_cast<const QJsonArray::iterator*>(self)->operator-(static_cast<int>(j));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonArray::iterator*>(new QJsonArray::iterator(ret));
}
int QJsonArray__iterator_OperatorMinusWithQJsonArrayiterator(QJsonArray__iterator* self, QJsonArray__iterator* j) {
return const_cast<const QJsonArray::iterator*>(self)->operator-(*j);
}
void QJsonArray__iterator_Delete(QJsonArray__iterator* self) {
delete self;
}
QJsonArray__const_iterator* QJsonArray__const_iterator_new() {
return new QJsonArray::const_iterator();
}
QJsonArray__const_iterator* QJsonArray__const_iterator_new2(QJsonArray* array, int index) {
return new QJsonArray::const_iterator(array, static_cast<int>(index));
}
QJsonArray__const_iterator* QJsonArray__const_iterator_new3(QJsonArray__const_iterator* o) {
return new QJsonArray::const_iterator(*o);
}
QJsonArray__const_iterator* QJsonArray__const_iterator_new4(QJsonArray__iterator* o) {
return new QJsonArray::const_iterator(*o);
}
QJsonValue* QJsonArray__const_iterator_OperatorMultiply(QJsonArray__const_iterator* self) {
QJsonValue ret = const_cast<const QJsonArray::const_iterator*>(self)->operator*();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonValue*>(new QJsonValue(ret));
}
QJsonValuePtr* QJsonArray__const_iterator_OperatorMinusGreater(QJsonArray__const_iterator* self) {
QJsonValuePtr ret = const_cast<const QJsonArray::const_iterator*>(self)->operator->();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonValuePtr*>(new QJsonValuePtr(ret));
}
QJsonValue* QJsonArray__const_iterator_OperatorSubscript(QJsonArray__const_iterator* self, int j) {
QJsonValue ret = const_cast<const QJsonArray::const_iterator*>(self)->operator[](static_cast<int>(j));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonValue*>(new QJsonValue(ret));
}
bool QJsonArray__const_iterator_OperatorEqual(QJsonArray__const_iterator* self, QJsonArray__const_iterator* o) {
return const_cast<const QJsonArray::const_iterator*>(self)->operator==(*o);
}
bool QJsonArray__const_iterator_OperatorNotEqual(QJsonArray__const_iterator* self, QJsonArray__const_iterator* o) {
return const_cast<const QJsonArray::const_iterator*>(self)->operator!=(*o);
}
bool QJsonArray__const_iterator_OperatorLesser(QJsonArray__const_iterator* self, QJsonArray__const_iterator* other) {
return const_cast<const QJsonArray::const_iterator*>(self)->operator<(*other);
}
bool QJsonArray__const_iterator_OperatorLesserOrEqual(QJsonArray__const_iterator* self, QJsonArray__const_iterator* other) {
return const_cast<const QJsonArray::const_iterator*>(self)->operator<=(*other);
}
bool QJsonArray__const_iterator_OperatorGreater(QJsonArray__const_iterator* self, QJsonArray__const_iterator* other) {
return const_cast<const QJsonArray::const_iterator*>(self)->operator>(*other);
}
bool QJsonArray__const_iterator_OperatorGreaterOrEqual(QJsonArray__const_iterator* self, QJsonArray__const_iterator* other) {
return const_cast<const QJsonArray::const_iterator*>(self)->operator>=(*other);
}
QJsonArray__const_iterator* QJsonArray__const_iterator_OperatorPlusPlus(QJsonArray__const_iterator* self, int param1) {
QJsonArray::const_iterator ret = self->operator++(static_cast<int>(param1));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonArray::const_iterator*>(new QJsonArray::const_iterator(ret));
}
QJsonArray__const_iterator* QJsonArray__const_iterator_OperatorMinusMinus(QJsonArray__const_iterator* self, int param1) {
QJsonArray::const_iterator ret = self->operator--(static_cast<int>(param1));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonArray::const_iterator*>(new QJsonArray::const_iterator(ret));
}
QJsonArray__const_iterator* QJsonArray__const_iterator_OperatorPlus(QJsonArray__const_iterator* self, int j) {
QJsonArray::const_iterator ret = const_cast<const QJsonArray::const_iterator*>(self)->operator+(static_cast<int>(j));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonArray::const_iterator*>(new QJsonArray::const_iterator(ret));
}
QJsonArray__const_iterator* QJsonArray__const_iterator_OperatorMinus(QJsonArray__const_iterator* self, int j) {
QJsonArray::const_iterator ret = const_cast<const QJsonArray::const_iterator*>(self)->operator-(static_cast<int>(j));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonArray::const_iterator*>(new QJsonArray::const_iterator(ret));
}
int QJsonArray__const_iterator_OperatorMinusWithQJsonArrayconstIterator(QJsonArray__const_iterator* self, QJsonArray__const_iterator* j) {
return const_cast<const QJsonArray::const_iterator*>(self)->operator-(*j);
}
void QJsonArray__const_iterator_Delete(QJsonArray__const_iterator* self) {
delete self;
}