2024-11-04 09:24:09 +00:00
|
|
|
package cbor
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qcborarray.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
2024-11-04 09:24:09 +00:00
|
|
|
"github.com/mappu/miqt/qt"
|
2024-08-25 04:08:24 +00:00
|
|
|
"runtime"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
|
|
|
type QCborArray struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QCborArray
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) cPointer() *C.QCborArray {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QCborArray) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQCborArray constructs the type using only CGO pointers.
|
2024-08-25 04:08:24 +00:00
|
|
|
func newQCborArray(h *C.QCborArray) *QCborArray {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QCborArray{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQCborArray constructs the type using only unsafe pointers.
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQCborArray(h unsafe.Pointer) *QCborArray {
|
2024-11-19 06:29:06 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
return &QCborArray{h: (*C.QCborArray)(h)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQCborArray constructs a new QCborArray object.
|
|
|
|
func NewQCborArray() *QCborArray {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QCborArray *C.QCborArray = nil
|
|
|
|
|
|
|
|
C.QCborArray_new(&outptr_QCborArray)
|
|
|
|
ret := newQCborArray(outptr_QCborArray)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQCborArray2 constructs a new QCborArray object.
|
|
|
|
func NewQCborArray2(other *QCborArray) *QCborArray {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QCborArray *C.QCborArray = nil
|
|
|
|
|
|
|
|
C.QCborArray_new2(other.cPointer(), &outptr_QCborArray)
|
|
|
|
ret := newQCborArray(outptr_QCborArray)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) OperatorAssign(other *QCborArray) {
|
|
|
|
C.QCborArray_OperatorAssign(this.h, other.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) Swap(other *QCborArray) {
|
|
|
|
C.QCborArray_Swap(this.h, other.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) ToCborValue() *QCborValue {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborValue(C.QCborArray_ToCborValue(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-11 05:43:04 +00:00
|
|
|
func (this *QCborArray) Size() int64 {
|
|
|
|
return (int64)(C.QCborArray_Size(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) IsEmpty() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray_IsEmpty(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) Clear() {
|
|
|
|
C.QCborArray_Clear(this.h)
|
|
|
|
}
|
|
|
|
|
2024-10-11 05:43:04 +00:00
|
|
|
func (this *QCborArray) At(i int64) *QCborValue {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborValue(C.QCborArray_At(this.h, (C.ptrdiff_t)(i)))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) First() *QCborValue {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborValue(C.QCborArray_First(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) Last() *QCborValue {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborValue(C.QCborArray_Last(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-11 05:43:04 +00:00
|
|
|
func (this *QCborArray) OperatorSubscript(i int64) *QCborValue {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborValue(C.QCborArray_OperatorSubscript(this.h, (C.ptrdiff_t)(i)))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) First2() *QCborValueRef {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborValueRef(C.QCborArray_First2(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) Last2() *QCborValueRef {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborValueRef(C.QCborArray_Last2(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-11 05:43:04 +00:00
|
|
|
func (this *QCborArray) OperatorSubscriptWithQsizetype(i int64) *QCborValueRef {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborValueRef(C.QCborArray_OperatorSubscriptWithQsizetype(this.h, (C.ptrdiff_t)(i)))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-11 05:43:04 +00:00
|
|
|
func (this *QCborArray) Insert(i int64, value *QCborValue) {
|
|
|
|
C.QCborArray_Insert(this.h, (C.ptrdiff_t)(i), value.cPointer())
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) Prepend(value *QCborValue) {
|
|
|
|
C.QCborArray_Prepend(this.h, value.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) Append(value *QCborValue) {
|
|
|
|
C.QCborArray_Append(this.h, value.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QCborArray) Extract(it QCborArray__ConstIterator) *QCborValue {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborValue(C.QCborArray_Extract(this.h, it.cPointer()))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) ExtractWithIt(it QCborArray__Iterator) *QCborValue {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborValue(C.QCborArray_ExtractWithIt(this.h, it.cPointer()))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-10-11 05:43:04 +00:00
|
|
|
func (this *QCborArray) RemoveAt(i int64) {
|
|
|
|
C.QCborArray_RemoveAt(this.h, (C.ptrdiff_t)(i))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-11 05:43:04 +00:00
|
|
|
func (this *QCborArray) TakeAt(i int64) *QCborValue {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborValue(C.QCborArray_TakeAt(this.h, (C.ptrdiff_t)(i)))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) RemoveFirst() {
|
|
|
|
C.QCborArray_RemoveFirst(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) RemoveLast() {
|
|
|
|
C.QCborArray_RemoveLast(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) TakeFirst() *QCborValue {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborValue(C.QCborArray_TakeFirst(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) TakeLast() *QCborValue {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborValue(C.QCborArray_TakeLast(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) Contains(value *QCborValue) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray_Contains(this.h, value.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) Compare(other *QCborArray) int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QCborArray_Compare(this.h, other.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) OperatorEqual(other *QCborArray) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray_OperatorEqual(this.h, other.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) OperatorNotEqual(other *QCborArray) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray_OperatorNotEqual(this.h, other.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) OperatorLesser(other *QCborArray) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray_OperatorLesser(this.h, other.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QCborArray) Begin() *QCborArray__Iterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborArray__Iterator(C.QCborArray_Begin(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) ConstBegin() *QCborArray__ConstIterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborArray__ConstIterator(C.QCborArray_ConstBegin(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) Begin2() *QCborArray__ConstIterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborArray__ConstIterator(C.QCborArray_Begin2(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) Cbegin() *QCborArray__ConstIterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborArray__ConstIterator(C.QCborArray_Cbegin(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) End() *QCborArray__Iterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborArray__Iterator(C.QCborArray_End(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) ConstEnd() *QCborArray__ConstIterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborArray__ConstIterator(C.QCborArray_ConstEnd(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) End2() *QCborArray__ConstIterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborArray__ConstIterator(C.QCborArray_End2(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) Cend() *QCborArray__ConstIterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborArray__ConstIterator(C.QCborArray_Cend(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) Insert2(before QCborArray__Iterator, value *QCborValue) *QCborArray__Iterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborArray__Iterator(C.QCborArray_Insert2(this.h, before.cPointer(), value.cPointer()))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) Insert3(before QCborArray__ConstIterator, value *QCborValue) *QCborArray__Iterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborArray__Iterator(C.QCborArray_Insert3(this.h, before.cPointer(), value.cPointer()))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) Erase(it QCborArray__Iterator) *QCborArray__Iterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborArray__Iterator(C.QCborArray_Erase(this.h, it.cPointer()))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) EraseWithIt(it QCborArray__ConstIterator) *QCborArray__Iterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborArray__Iterator(C.QCborArray_EraseWithIt(this.h, it.cPointer()))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QCborArray) PushBack(t *QCborValue) {
|
|
|
|
C.QCborArray_PushBack(this.h, t.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) PushFront(t *QCborValue) {
|
|
|
|
C.QCborArray_PushFront(this.h, t.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) PopFront() {
|
|
|
|
C.QCborArray_PopFront(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) PopBack() {
|
|
|
|
C.QCborArray_PopBack(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) Empty() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray_Empty(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) OperatorPlus(v *QCborValue) *QCborArray {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborArray(C.QCborArray_OperatorPlus(this.h, v.cPointer()))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) OperatorPlusAssign(v *QCborValue) *QCborArray {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQCborArray(C.QCborArray_OperatorPlusAssign(this.h, v.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray) OperatorShiftLeft(v *QCborValue) *QCborArray {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQCborArray(C.QCborArray_OperatorShiftLeft(this.h, v.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QCborArray_FromStringList(list []string) *QCborArray {
|
2024-10-19 02:49:49 +00:00
|
|
|
list_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(list))))
|
2024-08-25 04:08:24 +00:00
|
|
|
defer C.free(unsafe.Pointer(list_CArray))
|
|
|
|
for i := range list {
|
2024-10-18 23:53:33 +00:00
|
|
|
list_i_ms := C.struct_miqt_string{}
|
|
|
|
list_i_ms.data = C.CString(list[i])
|
|
|
|
list_i_ms.len = C.size_t(len(list[i]))
|
|
|
|
defer C.free(unsafe.Pointer(list_i_ms.data))
|
|
|
|
list_CArray[i] = list_i_ms
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-11-04 07:18:27 +00:00
|
|
|
list_ma := C.struct_miqt_array{len: C.size_t(len(list)), data: unsafe.Pointer(list_CArray)}
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborArray(C.QCborArray_FromStringList(list_ma))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-04 09:24:09 +00:00
|
|
|
func QCborArray_FromJsonArray(array *qt.QJsonArray) *QCborArray {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborArray(C.QCborArray_FromJsonArray((*C.QJsonArray)(array.UnsafePointer())))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-04 09:24:09 +00:00
|
|
|
func (this *QCborArray) ToJsonArray() *qt.QJsonArray {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := qt.UnsafeNewQJsonArray(unsafe.Pointer(C.QCborArray_ToJsonArray(this.h)))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QCborArray) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QCborArray_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-08-29 07:01:51 +00:00
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QCborArray) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QCborArray) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
type QCborArray__Iterator struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QCborArray__Iterator
|
|
|
|
isSubclass bool
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__Iterator) cPointer() *C.QCborArray__Iterator {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QCborArray__Iterator) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQCborArray__Iterator constructs the type using only CGO pointers.
|
2024-08-29 07:01:51 +00:00
|
|
|
func newQCborArray__Iterator(h *C.QCborArray__Iterator) *QCborArray__Iterator {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-29 07:01:51 +00:00
|
|
|
return &QCborArray__Iterator{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQCborArray__Iterator constructs the type using only unsafe pointers.
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQCborArray__Iterator(h unsafe.Pointer) *QCborArray__Iterator {
|
2024-11-19 06:29:06 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
return &QCborArray__Iterator{h: (*C.QCborArray__Iterator)(h)}
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQCborArray__Iterator constructs a new QCborArray::Iterator object.
|
|
|
|
func NewQCborArray__Iterator() *QCborArray__Iterator {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QCborArray__Iterator *C.QCborArray__Iterator = nil
|
|
|
|
|
|
|
|
C.QCborArray__Iterator_new(&outptr_QCborArray__Iterator)
|
|
|
|
ret := newQCborArray__Iterator(outptr_QCborArray__Iterator)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQCborArray__Iterator2 constructs a new QCborArray::Iterator object.
|
|
|
|
func NewQCborArray__Iterator2(param1 *QCborArray__Iterator) *QCborArray__Iterator {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QCborArray__Iterator *C.QCborArray__Iterator = nil
|
|
|
|
|
|
|
|
C.QCborArray__Iterator_new2(param1.cPointer(), &outptr_QCborArray__Iterator)
|
|
|
|
ret := newQCborArray__Iterator(outptr_QCborArray__Iterator)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
func (this *QCborArray__Iterator) OperatorAssign(other *QCborArray__Iterator) {
|
|
|
|
C.QCborArray__Iterator_OperatorAssign(this.h, other.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QCborArray__Iterator) OperatorMultiply() *QCborValueRef {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborValueRef(C.QCborArray__Iterator_OperatorMultiply(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__Iterator) OperatorMinusGreater() *QCborValueRef {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQCborValueRef(C.QCborArray__Iterator_OperatorMinusGreater(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-10-11 05:43:04 +00:00
|
|
|
func (this *QCborArray__Iterator) OperatorSubscript(j int64) *QCborValueRef {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborValueRef(C.QCborArray__Iterator_OperatorSubscript(this.h, (C.ptrdiff_t)(j)))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__Iterator) OperatorEqual(o *QCborArray__Iterator) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray__Iterator_OperatorEqual(this.h, o.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__Iterator) OperatorNotEqual(o *QCborArray__Iterator) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray__Iterator_OperatorNotEqual(this.h, o.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__Iterator) OperatorLesser(other *QCborArray__Iterator) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray__Iterator_OperatorLesser(this.h, other.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__Iterator) OperatorLesserOrEqual(other *QCborArray__Iterator) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray__Iterator_OperatorLesserOrEqual(this.h, other.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__Iterator) OperatorGreater(other *QCborArray__Iterator) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray__Iterator_OperatorGreater(this.h, other.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__Iterator) OperatorGreaterOrEqual(other *QCborArray__Iterator) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray__Iterator_OperatorGreaterOrEqual(this.h, other.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__Iterator) OperatorEqualWithQCborArrayConstIterator(o *QCborArray__ConstIterator) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray__Iterator_OperatorEqualWithQCborArrayConstIterator(this.h, o.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__Iterator) OperatorNotEqualWithQCborArrayConstIterator(o *QCborArray__ConstIterator) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray__Iterator_OperatorNotEqualWithQCborArrayConstIterator(this.h, o.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__Iterator) OperatorLesserWithOther(other *QCborArray__ConstIterator) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray__Iterator_OperatorLesserWithOther(this.h, other.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__Iterator) OperatorLesserOrEqualWithOther(other *QCborArray__ConstIterator) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray__Iterator_OperatorLesserOrEqualWithOther(this.h, other.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__Iterator) OperatorGreaterWithOther(other *QCborArray__ConstIterator) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray__Iterator_OperatorGreaterWithOther(this.h, other.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__Iterator) OperatorGreaterOrEqualWithOther(other *QCborArray__ConstIterator) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray__Iterator_OperatorGreaterOrEqualWithOther(this.h, other.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
func (this *QCborArray__Iterator) OperatorPlusPlus() *QCborArray__Iterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQCborArray__Iterator(C.QCborArray__Iterator_OperatorPlusPlus(this.h))
|
2024-09-18 00:12:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__Iterator) OperatorPlusPlusWithInt(param1 int) *QCborArray__Iterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborArray__Iterator(C.QCborArray__Iterator_OperatorPlusPlusWithInt(this.h, (C.int)(param1)))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
func (this *QCborArray__Iterator) OperatorMinusMinus() *QCborArray__Iterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQCborArray__Iterator(C.QCborArray__Iterator_OperatorMinusMinus(this.h))
|
2024-09-18 00:12:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__Iterator) OperatorMinusMinusWithInt(param1 int) *QCborArray__Iterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborArray__Iterator(C.QCborArray__Iterator_OperatorMinusMinusWithInt(this.h, (C.int)(param1)))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-10-11 05:43:04 +00:00
|
|
|
func (this *QCborArray__Iterator) OperatorPlusAssign(j int64) *QCborArray__Iterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQCborArray__Iterator(C.QCborArray__Iterator_OperatorPlusAssign(this.h, (C.ptrdiff_t)(j)))
|
2024-09-18 00:12:02 +00:00
|
|
|
}
|
|
|
|
|
2024-10-11 05:43:04 +00:00
|
|
|
func (this *QCborArray__Iterator) OperatorMinusAssign(j int64) *QCborArray__Iterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQCborArray__Iterator(C.QCborArray__Iterator_OperatorMinusAssign(this.h, (C.ptrdiff_t)(j)))
|
2024-09-18 00:12:02 +00:00
|
|
|
}
|
|
|
|
|
2024-10-11 05:43:04 +00:00
|
|
|
func (this *QCborArray__Iterator) OperatorPlus(j int64) *QCborArray__Iterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborArray__Iterator(C.QCborArray__Iterator_OperatorPlus(this.h, (C.ptrdiff_t)(j)))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-10-11 05:43:04 +00:00
|
|
|
func (this *QCborArray__Iterator) OperatorMinus(j int64) *QCborArray__Iterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborArray__Iterator(C.QCborArray__Iterator_OperatorMinus(this.h, (C.ptrdiff_t)(j)))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-10-11 05:43:04 +00:00
|
|
|
func (this *QCborArray__Iterator) OperatorMinusWithQCborArrayIterator(j QCborArray__Iterator) int64 {
|
|
|
|
return (int64)(C.QCborArray__Iterator_OperatorMinusWithQCborArrayIterator(this.h, j.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QCborArray__Iterator) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QCborArray__Iterator_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QCborArray__Iterator) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QCborArray__Iterator) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
type QCborArray__ConstIterator struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QCborArray__ConstIterator
|
|
|
|
isSubclass bool
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__ConstIterator) cPointer() *C.QCborArray__ConstIterator {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QCborArray__ConstIterator) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQCborArray__ConstIterator constructs the type using only CGO pointers.
|
2024-08-29 07:01:51 +00:00
|
|
|
func newQCborArray__ConstIterator(h *C.QCborArray__ConstIterator) *QCborArray__ConstIterator {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-29 07:01:51 +00:00
|
|
|
return &QCborArray__ConstIterator{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQCborArray__ConstIterator constructs the type using only unsafe pointers.
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQCborArray__ConstIterator(h unsafe.Pointer) *QCborArray__ConstIterator {
|
2024-11-19 06:29:06 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
return &QCborArray__ConstIterator{h: (*C.QCborArray__ConstIterator)(h)}
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQCborArray__ConstIterator constructs a new QCborArray::ConstIterator object.
|
|
|
|
func NewQCborArray__ConstIterator() *QCborArray__ConstIterator {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QCborArray__ConstIterator *C.QCborArray__ConstIterator = nil
|
|
|
|
|
|
|
|
C.QCborArray__ConstIterator_new(&outptr_QCborArray__ConstIterator)
|
|
|
|
ret := newQCborArray__ConstIterator(outptr_QCborArray__ConstIterator)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQCborArray__ConstIterator2 constructs a new QCborArray::ConstIterator object.
|
|
|
|
func NewQCborArray__ConstIterator2(param1 *QCborArray__ConstIterator) *QCborArray__ConstIterator {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QCborArray__ConstIterator *C.QCborArray__ConstIterator = nil
|
|
|
|
|
|
|
|
C.QCborArray__ConstIterator_new2(param1.cPointer(), &outptr_QCborArray__ConstIterator)
|
|
|
|
ret := newQCborArray__ConstIterator(outptr_QCborArray__ConstIterator)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
func (this *QCborArray__ConstIterator) OperatorAssign(other *QCborArray__ConstIterator) {
|
|
|
|
C.QCborArray__ConstIterator_OperatorAssign(this.h, other.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QCborArray__ConstIterator) OperatorMultiply() *QCborValueRef {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborValueRef(C.QCborArray__ConstIterator_OperatorMultiply(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__ConstIterator) OperatorMinusGreater() *QCborValueRef {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQCborValueRef(C.QCborArray__ConstIterator_OperatorMinusGreater(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-10-11 05:43:04 +00:00
|
|
|
func (this *QCborArray__ConstIterator) OperatorSubscript(j int64) *QCborValueRef {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborValueRef(C.QCborArray__ConstIterator_OperatorSubscript(this.h, (C.ptrdiff_t)(j)))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__ConstIterator) OperatorEqual(o *QCborArray__Iterator) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray__ConstIterator_OperatorEqual(this.h, o.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__ConstIterator) OperatorNotEqual(o *QCborArray__Iterator) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray__ConstIterator_OperatorNotEqual(this.h, o.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__ConstIterator) OperatorLesser(other *QCborArray__Iterator) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray__ConstIterator_OperatorLesser(this.h, other.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__ConstIterator) OperatorLesserOrEqual(other *QCborArray__Iterator) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray__ConstIterator_OperatorLesserOrEqual(this.h, other.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__ConstIterator) OperatorGreater(other *QCborArray__Iterator) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray__ConstIterator_OperatorGreater(this.h, other.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__ConstIterator) OperatorGreaterOrEqual(other *QCborArray__Iterator) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray__ConstIterator_OperatorGreaterOrEqual(this.h, other.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__ConstIterator) OperatorEqualWithQCborArrayConstIterator(o *QCborArray__ConstIterator) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray__ConstIterator_OperatorEqualWithQCborArrayConstIterator(this.h, o.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__ConstIterator) OperatorNotEqualWithQCborArrayConstIterator(o *QCborArray__ConstIterator) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray__ConstIterator_OperatorNotEqualWithQCborArrayConstIterator(this.h, o.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__ConstIterator) OperatorLesserWithOther(other *QCborArray__ConstIterator) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray__ConstIterator_OperatorLesserWithOther(this.h, other.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__ConstIterator) OperatorLesserOrEqualWithOther(other *QCborArray__ConstIterator) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray__ConstIterator_OperatorLesserOrEqualWithOther(this.h, other.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__ConstIterator) OperatorGreaterWithOther(other *QCborArray__ConstIterator) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray__ConstIterator_OperatorGreaterWithOther(this.h, other.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__ConstIterator) OperatorGreaterOrEqualWithOther(other *QCborArray__ConstIterator) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QCborArray__ConstIterator_OperatorGreaterOrEqualWithOther(this.h, other.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
func (this *QCborArray__ConstIterator) OperatorPlusPlus() *QCborArray__ConstIterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQCborArray__ConstIterator(C.QCborArray__ConstIterator_OperatorPlusPlus(this.h))
|
2024-09-18 00:12:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__ConstIterator) OperatorPlusPlusWithInt(param1 int) *QCborArray__ConstIterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborArray__ConstIterator(C.QCborArray__ConstIterator_OperatorPlusPlusWithInt(this.h, (C.int)(param1)))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
func (this *QCborArray__ConstIterator) OperatorMinusMinus() *QCborArray__ConstIterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQCborArray__ConstIterator(C.QCborArray__ConstIterator_OperatorMinusMinus(this.h))
|
2024-09-18 00:12:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QCborArray__ConstIterator) OperatorMinusMinusWithInt(param1 int) *QCborArray__ConstIterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborArray__ConstIterator(C.QCborArray__ConstIterator_OperatorMinusMinusWithInt(this.h, (C.int)(param1)))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-10-11 05:43:04 +00:00
|
|
|
func (this *QCborArray__ConstIterator) OperatorPlusAssign(j int64) *QCborArray__ConstIterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQCborArray__ConstIterator(C.QCborArray__ConstIterator_OperatorPlusAssign(this.h, (C.ptrdiff_t)(j)))
|
2024-09-18 00:12:02 +00:00
|
|
|
}
|
|
|
|
|
2024-10-11 05:43:04 +00:00
|
|
|
func (this *QCborArray__ConstIterator) OperatorMinusAssign(j int64) *QCborArray__ConstIterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQCborArray__ConstIterator(C.QCborArray__ConstIterator_OperatorMinusAssign(this.h, (C.ptrdiff_t)(j)))
|
2024-09-18 00:12:02 +00:00
|
|
|
}
|
|
|
|
|
2024-10-11 05:43:04 +00:00
|
|
|
func (this *QCborArray__ConstIterator) OperatorPlus(j int64) *QCborArray__ConstIterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborArray__ConstIterator(C.QCborArray__ConstIterator_OperatorPlus(this.h, (C.ptrdiff_t)(j)))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-10-11 05:43:04 +00:00
|
|
|
func (this *QCborArray__ConstIterator) OperatorMinus(j int64) *QCborArray__ConstIterator {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQCborArray__ConstIterator(C.QCborArray__ConstIterator_OperatorMinus(this.h, (C.ptrdiff_t)(j)))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-10-11 05:43:04 +00:00
|
|
|
func (this *QCborArray__ConstIterator) OperatorMinusWithQCborArrayConstIterator(j QCborArray__ConstIterator) int64 {
|
|
|
|
return (int64)(C.QCborArray__ConstIterator_OperatorMinusWithQCborArrayConstIterator(this.h, j.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QCborArray__ConstIterator) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QCborArray__ConstIterator_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
|
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QCborArray__ConstIterator) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QCborArray__ConstIterator) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|