#include #define WORKAROUND_INNER_CLASS_DEFINITION_QJsonArray__const_iterator #define WORKAROUND_INNER_CLASS_DEFINITION_QJsonArray__iterator #include #include #include #include #include #include #include #include #include "gen_qjsonarray.h" #ifndef _Bool #define _Bool bool #endif #include "_cgo_export.h" 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(struct miqt_array /* of struct miqt_string */ list) { QStringList list_QList; list_QList.reserve(list.len); struct miqt_string* list_arr = static_cast(list.data); for(size_t i = 0; i < list.len; ++i) { QString list_arr_i_QString = QString::fromUtf8(list_arr[i].data, list_arr[i].len); list_QList.push_back(list_arr_i_QString); } return new QJsonArray(QJsonArray::fromStringList(list_QList)); } ptrdiff_t QJsonArray_Size(const QJsonArray* self) { qsizetype _ret = self->size(); return static_cast(_ret); } ptrdiff_t QJsonArray_Count(const QJsonArray* self) { qsizetype _ret = self->count(); return static_cast(_ret); } bool QJsonArray_IsEmpty(const QJsonArray* self) { return self->isEmpty(); } QJsonValue* QJsonArray_At(const QJsonArray* self, ptrdiff_t i) { return new QJsonValue(self->at((qsizetype)(i))); } QJsonValue* QJsonArray_First(const QJsonArray* self) { return new QJsonValue(self->first()); } QJsonValue* QJsonArray_Last(const QJsonArray* self) { return new QJsonValue(self->last()); } 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, ptrdiff_t i) { self->removeAt((qsizetype)(i)); } QJsonValue* QJsonArray_TakeAt(QJsonArray* self, ptrdiff_t i) { return new QJsonValue(self->takeAt((qsizetype)(i))); } void QJsonArray_RemoveFirst(QJsonArray* self) { self->removeFirst(); } void QJsonArray_RemoveLast(QJsonArray* self) { self->removeLast(); } void QJsonArray_Insert(QJsonArray* self, ptrdiff_t i, QJsonValue* value) { self->insert((qsizetype)(i), *value); } void QJsonArray_Replace(QJsonArray* self, ptrdiff_t i, QJsonValue* value) { self->replace((qsizetype)(i), *value); } bool QJsonArray_Contains(const QJsonArray* self, QJsonValue* element) { return self->contains(*element); } QJsonValueRef* QJsonArray_OperatorSubscript(QJsonArray* self, ptrdiff_t i) { return new QJsonValueRef(self->operator[]((qsizetype)(i))); } QJsonValue* QJsonArray_OperatorSubscriptWithQsizetype(const QJsonArray* self, ptrdiff_t i) { return new QJsonValue(self->operator[]((qsizetype)(i))); } bool QJsonArray_OperatorEqual(const QJsonArray* self, QJsonArray* other) { return (*self == *other); } bool QJsonArray_OperatorNotEqual(const QJsonArray* self, QJsonArray* other) { return (*self != *other); } void QJsonArray_Swap(QJsonArray* self, QJsonArray* other) { self->swap(*other); } QJsonArray__iterator* QJsonArray_Begin(QJsonArray* self) { return new QJsonArray::iterator(self->begin()); } QJsonArray__const_iterator* QJsonArray_Begin2(const QJsonArray* self) { return new QJsonArray::const_iterator(self->begin()); } QJsonArray__const_iterator* QJsonArray_ConstBegin(const QJsonArray* self) { return new QJsonArray::const_iterator(self->constBegin()); } QJsonArray__const_iterator* QJsonArray_Cbegin(const QJsonArray* self) { return new QJsonArray::const_iterator(self->cbegin()); } QJsonArray__iterator* QJsonArray_End(QJsonArray* self) { return new QJsonArray::iterator(self->end()); } QJsonArray__const_iterator* QJsonArray_End2(const QJsonArray* self) { return new QJsonArray::const_iterator(self->end()); } QJsonArray__const_iterator* QJsonArray_ConstEnd(const QJsonArray* self) { return new QJsonArray::const_iterator(self->constEnd()); } QJsonArray__const_iterator* QJsonArray_Cend(const QJsonArray* self) { return new QJsonArray::const_iterator(self->cend()); } QJsonArray__iterator* QJsonArray_Insert2(QJsonArray* self, QJsonArray__iterator* before, QJsonValue* value) { return new QJsonArray::iterator(self->insert(*before, *value)); } QJsonArray__iterator* QJsonArray_Erase(QJsonArray* self, QJsonArray__iterator* it) { return new QJsonArray::iterator(self->erase(*it)); } QJsonArray* QJsonArray_OperatorPlus(const QJsonArray* self, QJsonValue* v) { return new QJsonArray(self->operator+(*v)); } 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(const QJsonArray* self) { return self->empty(); } void QJsonArray_Delete(QJsonArray* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } } QJsonArray__iterator* QJsonArray__iterator_new() { return new QJsonArray::iterator(); } QJsonArray__iterator* QJsonArray__iterator_new2(QJsonArray* array, ptrdiff_t index) { return new QJsonArray::iterator(array, (qsizetype)(index)); } QJsonArray__iterator* QJsonArray__iterator_new3(QJsonArray__iterator* other) { return new QJsonArray::iterator(*other); } void QJsonArray__iterator_OperatorAssign(QJsonArray__iterator* self, QJsonArray__iterator* other) { self->operator=(*other); } QJsonValueRef* QJsonArray__iterator_OperatorMultiply(const QJsonArray__iterator* self) { return new QJsonValueRef(self->operator*()); } QJsonValueConstRef* QJsonArray__iterator_OperatorMinusGreater(const QJsonArray__iterator* self) { return (QJsonValueConstRef*) self->operator->(); } QJsonValueRef* QJsonArray__iterator_OperatorMinusGreater2(QJsonArray__iterator* self) { return self->operator->(); } QJsonValueRef* QJsonArray__iterator_OperatorSubscript(const QJsonArray__iterator* self, ptrdiff_t j) { return new QJsonValueRef(self->operator[]((qsizetype)(j))); } bool QJsonArray__iterator_OperatorEqual(const QJsonArray__iterator* self, QJsonArray__iterator* o) { return (*self == *o); } bool QJsonArray__iterator_OperatorNotEqual(const QJsonArray__iterator* self, QJsonArray__iterator* o) { return (*self != *o); } bool QJsonArray__iterator_OperatorLesser(const QJsonArray__iterator* self, QJsonArray__iterator* other) { return (*self < *other); } bool QJsonArray__iterator_OperatorLesserOrEqual(const QJsonArray__iterator* self, QJsonArray__iterator* other) { return (*self <= *other); } bool QJsonArray__iterator_OperatorGreater(const QJsonArray__iterator* self, QJsonArray__iterator* other) { return (*self > *other); } bool QJsonArray__iterator_OperatorGreaterOrEqual(const QJsonArray__iterator* self, QJsonArray__iterator* other) { return (*self >= *other); } bool QJsonArray__iterator_OperatorEqualWithQJsonArrayconstIterator(const QJsonArray__iterator* self, QJsonArray__const_iterator* o) { return (*self == *o); } bool QJsonArray__iterator_OperatorNotEqualWithQJsonArrayconstIterator(const QJsonArray__iterator* self, QJsonArray__const_iterator* o) { return (*self != *o); } bool QJsonArray__iterator_OperatorLesserWithOther(const QJsonArray__iterator* self, QJsonArray__const_iterator* other) { return (*self < *other); } bool QJsonArray__iterator_OperatorLesserOrEqualWithOther(const QJsonArray__iterator* self, QJsonArray__const_iterator* other) { return (*self <= *other); } bool QJsonArray__iterator_OperatorGreaterWithOther(const QJsonArray__iterator* self, QJsonArray__const_iterator* other) { return (*self > *other); } bool QJsonArray__iterator_OperatorGreaterOrEqualWithOther(const QJsonArray__iterator* self, QJsonArray__const_iterator* other) { return (*self >= *other); } 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) { return new QJsonArray::iterator(self->operator++(static_cast(param1))); } 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) { return new QJsonArray::iterator(self->operator--(static_cast(param1))); } QJsonArray__iterator* QJsonArray__iterator_OperatorPlusAssign(QJsonArray__iterator* self, ptrdiff_t j) { QJsonArray::iterator& _ret = self->operator+=((qsizetype)(j)); // Cast returned reference into pointer return &_ret; } QJsonArray__iterator* QJsonArray__iterator_OperatorMinusAssign(QJsonArray__iterator* self, ptrdiff_t j) { QJsonArray::iterator& _ret = self->operator-=((qsizetype)(j)); // Cast returned reference into pointer return &_ret; } QJsonArray__iterator* QJsonArray__iterator_OperatorPlus(const QJsonArray__iterator* self, ptrdiff_t j) { return new QJsonArray::iterator(self->operator+((qsizetype)(j))); } QJsonArray__iterator* QJsonArray__iterator_OperatorMinus(const QJsonArray__iterator* self, ptrdiff_t j) { return new QJsonArray::iterator(self->operator-((qsizetype)(j))); } ptrdiff_t QJsonArray__iterator_OperatorMinusWithQJsonArrayiterator(const QJsonArray__iterator* self, QJsonArray__iterator* j) { qsizetype _ret = self->operator-(*j); return static_cast(_ret); } void QJsonArray__iterator_Delete(QJsonArray__iterator* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } } QJsonArray__const_iterator* QJsonArray__const_iterator_new() { return new QJsonArray::const_iterator(); } QJsonArray__const_iterator* QJsonArray__const_iterator_new2(QJsonArray* array, ptrdiff_t index) { return new QJsonArray::const_iterator(array, (qsizetype)(index)); } QJsonArray__const_iterator* QJsonArray__const_iterator_new3(QJsonArray__iterator* o) { return new QJsonArray::const_iterator(*o); } QJsonArray__const_iterator* QJsonArray__const_iterator_new4(QJsonArray__const_iterator* other) { return new QJsonArray::const_iterator(*other); } void QJsonArray__const_iterator_OperatorAssign(QJsonArray__const_iterator* self, QJsonArray__const_iterator* other) { self->operator=(*other); } QJsonValueConstRef* QJsonArray__const_iterator_OperatorMultiply(const QJsonArray__const_iterator* self) { return new QJsonValueConstRef(self->operator*()); } QJsonValueConstRef* QJsonArray__const_iterator_OperatorMinusGreater(const QJsonArray__const_iterator* self) { return (QJsonValueConstRef*) self->operator->(); } QJsonValueConstRef* QJsonArray__const_iterator_OperatorSubscript(const QJsonArray__const_iterator* self, ptrdiff_t j) { return new QJsonValueConstRef(self->operator[]((qsizetype)(j))); } bool QJsonArray__const_iterator_OperatorEqual(const QJsonArray__const_iterator* self, QJsonArray__const_iterator* o) { return (*self == *o); } bool QJsonArray__const_iterator_OperatorNotEqual(const QJsonArray__const_iterator* self, QJsonArray__const_iterator* o) { return (*self != *o); } bool QJsonArray__const_iterator_OperatorLesser(const QJsonArray__const_iterator* self, QJsonArray__const_iterator* other) { return (*self < *other); } bool QJsonArray__const_iterator_OperatorLesserOrEqual(const QJsonArray__const_iterator* self, QJsonArray__const_iterator* other) { return (*self <= *other); } bool QJsonArray__const_iterator_OperatorGreater(const QJsonArray__const_iterator* self, QJsonArray__const_iterator* other) { return (*self > *other); } bool QJsonArray__const_iterator_OperatorGreaterOrEqual(const QJsonArray__const_iterator* self, QJsonArray__const_iterator* other) { return (*self >= *other); } 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) { return new QJsonArray::const_iterator(self->operator++(static_cast(param1))); } 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) { return new QJsonArray::const_iterator(self->operator--(static_cast(param1))); } QJsonArray__const_iterator* QJsonArray__const_iterator_OperatorPlusAssign(QJsonArray__const_iterator* self, ptrdiff_t j) { QJsonArray::const_iterator& _ret = self->operator+=((qsizetype)(j)); // Cast returned reference into pointer return &_ret; } QJsonArray__const_iterator* QJsonArray__const_iterator_OperatorMinusAssign(QJsonArray__const_iterator* self, ptrdiff_t j) { QJsonArray::const_iterator& _ret = self->operator-=((qsizetype)(j)); // Cast returned reference into pointer return &_ret; } QJsonArray__const_iterator* QJsonArray__const_iterator_OperatorPlus(const QJsonArray__const_iterator* self, ptrdiff_t j) { return new QJsonArray::const_iterator(self->operator+((qsizetype)(j))); } QJsonArray__const_iterator* QJsonArray__const_iterator_OperatorMinus(const QJsonArray__const_iterator* self, ptrdiff_t j) { return new QJsonArray::const_iterator(self->operator-((qsizetype)(j))); } ptrdiff_t QJsonArray__const_iterator_OperatorMinusWithQJsonArrayconstIterator(const QJsonArray__const_iterator* self, QJsonArray__const_iterator* j) { qsizetype _ret = self->operator-(*j); return static_cast(_ret); } void QJsonArray__const_iterator_Delete(QJsonArray__const_iterator* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } }