mirror of https://github.com/KLayout/klayout.git
416 lines
17 KiB
C++
416 lines
17 KiB
C++
|
|
/*
|
|
|
|
KLayout Layout Viewer
|
|
Copyright (C) 2006-2017 Matthias Koefferlein
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
/**
|
|
* @file gsiDeclQJsonObject_Const_iterator.cc
|
|
*
|
|
* DO NOT EDIT THIS FILE.
|
|
* This file has been created automatically
|
|
*/
|
|
|
|
#include <QJsonObject>
|
|
#include <QJsonObject>
|
|
#include <QJsonValue>
|
|
#include <QJsonValuePtr>
|
|
#include "gsiQt.h"
|
|
#include "gsiQtCommon.h"
|
|
#include "gsiDeclQtTypeTraits.h"
|
|
#include <memory>
|
|
|
|
// -----------------------------------------------------------------------
|
|
// class QJsonObject::const_iterator
|
|
|
|
// Constructor QJsonObject::const_iterator::const_iterator()
|
|
|
|
|
|
static void _init_ctor_QJsonObject_Const_iterator_0 (qt_gsi::GenericStaticMethod *decl)
|
|
{
|
|
decl->set_return_new<QJsonObject::const_iterator> ();
|
|
}
|
|
|
|
static void _call_ctor_QJsonObject_Const_iterator_0 (const qt_gsi::GenericStaticMethod * /*decl*/, gsi::SerialArgs &args, gsi::SerialArgs &ret)
|
|
{
|
|
__SUPPRESS_UNUSED_WARNING(args);
|
|
ret.write<QJsonObject::const_iterator *> (new QJsonObject::const_iterator ());
|
|
}
|
|
|
|
|
|
// Constructor QJsonObject::const_iterator::const_iterator(const QJsonObject *obj, int index)
|
|
|
|
|
|
static void _init_ctor_QJsonObject_Const_iterator_3066 (qt_gsi::GenericStaticMethod *decl)
|
|
{
|
|
static gsi::ArgSpecBase argspec_0 ("obj");
|
|
decl->add_arg<const QJsonObject * > (argspec_0);
|
|
static gsi::ArgSpecBase argspec_1 ("index");
|
|
decl->add_arg<int > (argspec_1);
|
|
decl->set_return_new<QJsonObject::const_iterator> ();
|
|
}
|
|
|
|
static void _call_ctor_QJsonObject_Const_iterator_3066 (const qt_gsi::GenericStaticMethod * /*decl*/, gsi::SerialArgs &args, gsi::SerialArgs &ret)
|
|
{
|
|
__SUPPRESS_UNUSED_WARNING(args);
|
|
tl::Heap heap;
|
|
const QJsonObject *arg1 = args.read<const QJsonObject * > (heap);
|
|
int arg2 = args.read<int > (heap);
|
|
ret.write<QJsonObject::const_iterator *> (new QJsonObject::const_iterator (arg1, arg2));
|
|
}
|
|
|
|
|
|
// Constructor QJsonObject::const_iterator::const_iterator(const QJsonObject::iterator &other)
|
|
|
|
|
|
static void _init_ctor_QJsonObject_Const_iterator_3393 (qt_gsi::GenericStaticMethod *decl)
|
|
{
|
|
static gsi::ArgSpecBase argspec_0 ("other");
|
|
decl->add_arg<const QJsonObject::iterator & > (argspec_0);
|
|
decl->set_return_new<QJsonObject::const_iterator> ();
|
|
}
|
|
|
|
static void _call_ctor_QJsonObject_Const_iterator_3393 (const qt_gsi::GenericStaticMethod * /*decl*/, gsi::SerialArgs &args, gsi::SerialArgs &ret)
|
|
{
|
|
__SUPPRESS_UNUSED_WARNING(args);
|
|
tl::Heap heap;
|
|
const QJsonObject::iterator &arg1 = args.read<const QJsonObject::iterator & > (heap);
|
|
ret.write<QJsonObject::const_iterator *> (new QJsonObject::const_iterator (arg1));
|
|
}
|
|
|
|
|
|
// QString QJsonObject::const_iterator::key()
|
|
|
|
|
|
static void _init_f_key_c0 (qt_gsi::GenericMethod *decl)
|
|
{
|
|
decl->set_return<QString > ();
|
|
}
|
|
|
|
static void _call_f_key_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret)
|
|
{
|
|
__SUPPRESS_UNUSED_WARNING(args);
|
|
ret.write<QString > ((QString)((QJsonObject::const_iterator *)cls)->key ());
|
|
}
|
|
|
|
|
|
// bool QJsonObject::const_iterator::operator!=(const QJsonObject::const_iterator &other)
|
|
|
|
|
|
static void _init_f_operator_excl__eq__c4039 (qt_gsi::GenericMethod *decl)
|
|
{
|
|
static gsi::ArgSpecBase argspec_0 ("other");
|
|
decl->add_arg<const QJsonObject::const_iterator & > (argspec_0);
|
|
decl->set_return<bool > ();
|
|
}
|
|
|
|
static void _call_f_operator_excl__eq__c4039 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret)
|
|
{
|
|
__SUPPRESS_UNUSED_WARNING(args);
|
|
tl::Heap heap;
|
|
const QJsonObject::const_iterator &arg1 = args.read<const QJsonObject::const_iterator & > (heap);
|
|
ret.write<bool > ((bool)((QJsonObject::const_iterator *)cls)->operator!= (arg1));
|
|
}
|
|
|
|
|
|
// bool QJsonObject::const_iterator::operator!=(const QJsonObject::iterator &other)
|
|
|
|
|
|
static void _init_f_operator_excl__eq__c3393 (qt_gsi::GenericMethod *decl)
|
|
{
|
|
static gsi::ArgSpecBase argspec_0 ("other");
|
|
decl->add_arg<const QJsonObject::iterator & > (argspec_0);
|
|
decl->set_return<bool > ();
|
|
}
|
|
|
|
static void _call_f_operator_excl__eq__c3393 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret)
|
|
{
|
|
__SUPPRESS_UNUSED_WARNING(args);
|
|
tl::Heap heap;
|
|
const QJsonObject::iterator &arg1 = args.read<const QJsonObject::iterator & > (heap);
|
|
ret.write<bool > ((bool)((QJsonObject::const_iterator *)cls)->operator!= (arg1));
|
|
}
|
|
|
|
|
|
// QJsonValue QJsonObject::const_iterator::operator*()
|
|
|
|
|
|
static void _init_f_operator_star__c0 (qt_gsi::GenericMethod *decl)
|
|
{
|
|
decl->set_return<QJsonValue > ();
|
|
}
|
|
|
|
static void _call_f_operator_star__c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret)
|
|
{
|
|
__SUPPRESS_UNUSED_WARNING(args);
|
|
ret.write<QJsonValue > ((QJsonValue)((QJsonObject::const_iterator *)cls)->operator* ());
|
|
}
|
|
|
|
|
|
// QJsonObject::const_iterator QJsonObject::const_iterator::operator+(int j)
|
|
|
|
|
|
static void _init_f_operator_plus__c767 (qt_gsi::GenericMethod *decl)
|
|
{
|
|
static gsi::ArgSpecBase argspec_0 ("j");
|
|
decl->add_arg<int > (argspec_0);
|
|
decl->set_return<QJsonObject::const_iterator > ();
|
|
}
|
|
|
|
static void _call_f_operator_plus__c767 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret)
|
|
{
|
|
__SUPPRESS_UNUSED_WARNING(args);
|
|
tl::Heap heap;
|
|
int arg1 = args.read<int > (heap);
|
|
ret.write<QJsonObject::const_iterator > ((QJsonObject::const_iterator)((QJsonObject::const_iterator *)cls)->operator+ (arg1));
|
|
}
|
|
|
|
|
|
// QJsonObject::const_iterator &QJsonObject::const_iterator::operator++()
|
|
|
|
|
|
static void _init_f_operator_plus__plus__0 (qt_gsi::GenericMethod *decl)
|
|
{
|
|
decl->set_return<QJsonObject::const_iterator & > ();
|
|
}
|
|
|
|
static void _call_f_operator_plus__plus__0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret)
|
|
{
|
|
__SUPPRESS_UNUSED_WARNING(args);
|
|
ret.write<QJsonObject::const_iterator & > ((QJsonObject::const_iterator &)((QJsonObject::const_iterator *)cls)->operator++ ());
|
|
}
|
|
|
|
|
|
// QJsonObject::const_iterator QJsonObject::const_iterator::operator++(int)
|
|
|
|
|
|
static void _init_f_operator_plus__plus__767 (qt_gsi::GenericMethod *decl)
|
|
{
|
|
static gsi::ArgSpecBase argspec_0 ("arg1");
|
|
decl->add_arg<int > (argspec_0);
|
|
decl->set_return<QJsonObject::const_iterator > ();
|
|
}
|
|
|
|
static void _call_f_operator_plus__plus__767 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret)
|
|
{
|
|
__SUPPRESS_UNUSED_WARNING(args);
|
|
tl::Heap heap;
|
|
int arg1 = args.read<int > (heap);
|
|
ret.write<QJsonObject::const_iterator > ((QJsonObject::const_iterator)((QJsonObject::const_iterator *)cls)->operator++ (arg1));
|
|
}
|
|
|
|
|
|
// QJsonObject::const_iterator &QJsonObject::const_iterator::operator+=(int j)
|
|
|
|
|
|
static void _init_f_operator_plus__eq__767 (qt_gsi::GenericMethod *decl)
|
|
{
|
|
static gsi::ArgSpecBase argspec_0 ("j");
|
|
decl->add_arg<int > (argspec_0);
|
|
decl->set_return<QJsonObject::const_iterator & > ();
|
|
}
|
|
|
|
static void _call_f_operator_plus__eq__767 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret)
|
|
{
|
|
__SUPPRESS_UNUSED_WARNING(args);
|
|
tl::Heap heap;
|
|
int arg1 = args.read<int > (heap);
|
|
ret.write<QJsonObject::const_iterator & > ((QJsonObject::const_iterator &)((QJsonObject::const_iterator *)cls)->operator+= (arg1));
|
|
}
|
|
|
|
|
|
// QJsonObject::const_iterator QJsonObject::const_iterator::operator-(int j)
|
|
|
|
|
|
static void _init_f_operator_minus__c767 (qt_gsi::GenericMethod *decl)
|
|
{
|
|
static gsi::ArgSpecBase argspec_0 ("j");
|
|
decl->add_arg<int > (argspec_0);
|
|
decl->set_return<QJsonObject::const_iterator > ();
|
|
}
|
|
|
|
static void _call_f_operator_minus__c767 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret)
|
|
{
|
|
__SUPPRESS_UNUSED_WARNING(args);
|
|
tl::Heap heap;
|
|
int arg1 = args.read<int > (heap);
|
|
ret.write<QJsonObject::const_iterator > ((QJsonObject::const_iterator)((QJsonObject::const_iterator *)cls)->operator- (arg1));
|
|
}
|
|
|
|
|
|
// QJsonObject::const_iterator &QJsonObject::const_iterator::operator--()
|
|
|
|
|
|
static void _init_f_operator_minus__minus__0 (qt_gsi::GenericMethod *decl)
|
|
{
|
|
decl->set_return<QJsonObject::const_iterator & > ();
|
|
}
|
|
|
|
static void _call_f_operator_minus__minus__0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret)
|
|
{
|
|
__SUPPRESS_UNUSED_WARNING(args);
|
|
ret.write<QJsonObject::const_iterator & > ((QJsonObject::const_iterator &)((QJsonObject::const_iterator *)cls)->operator-- ());
|
|
}
|
|
|
|
|
|
// QJsonObject::const_iterator QJsonObject::const_iterator::operator--(int)
|
|
|
|
|
|
static void _init_f_operator_minus__minus__767 (qt_gsi::GenericMethod *decl)
|
|
{
|
|
static gsi::ArgSpecBase argspec_0 ("arg1");
|
|
decl->add_arg<int > (argspec_0);
|
|
decl->set_return<QJsonObject::const_iterator > ();
|
|
}
|
|
|
|
static void _call_f_operator_minus__minus__767 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret)
|
|
{
|
|
__SUPPRESS_UNUSED_WARNING(args);
|
|
tl::Heap heap;
|
|
int arg1 = args.read<int > (heap);
|
|
ret.write<QJsonObject::const_iterator > ((QJsonObject::const_iterator)((QJsonObject::const_iterator *)cls)->operator-- (arg1));
|
|
}
|
|
|
|
|
|
// QJsonObject::const_iterator &QJsonObject::const_iterator::operator-=(int j)
|
|
|
|
|
|
static void _init_f_operator_minus__eq__767 (qt_gsi::GenericMethod *decl)
|
|
{
|
|
static gsi::ArgSpecBase argspec_0 ("j");
|
|
decl->add_arg<int > (argspec_0);
|
|
decl->set_return<QJsonObject::const_iterator & > ();
|
|
}
|
|
|
|
static void _call_f_operator_minus__eq__767 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret)
|
|
{
|
|
__SUPPRESS_UNUSED_WARNING(args);
|
|
tl::Heap heap;
|
|
int arg1 = args.read<int > (heap);
|
|
ret.write<QJsonObject::const_iterator & > ((QJsonObject::const_iterator &)((QJsonObject::const_iterator *)cls)->operator-= (arg1));
|
|
}
|
|
|
|
|
|
// QJsonValuePtr QJsonObject::const_iterator::operator->()
|
|
|
|
|
|
static void _init_f_operator_minus__gt__c0 (qt_gsi::GenericMethod *decl)
|
|
{
|
|
decl->set_return<QJsonValuePtr > ();
|
|
}
|
|
|
|
static void _call_f_operator_minus__gt__c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret)
|
|
{
|
|
__SUPPRESS_UNUSED_WARNING(args);
|
|
ret.write<QJsonValuePtr > ((QJsonValuePtr)((QJsonObject::const_iterator *)cls)->operator-> ());
|
|
}
|
|
|
|
|
|
// bool QJsonObject::const_iterator::operator==(const QJsonObject::const_iterator &other)
|
|
|
|
|
|
static void _init_f_operator_eq__eq__c4039 (qt_gsi::GenericMethod *decl)
|
|
{
|
|
static gsi::ArgSpecBase argspec_0 ("other");
|
|
decl->add_arg<const QJsonObject::const_iterator & > (argspec_0);
|
|
decl->set_return<bool > ();
|
|
}
|
|
|
|
static void _call_f_operator_eq__eq__c4039 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret)
|
|
{
|
|
__SUPPRESS_UNUSED_WARNING(args);
|
|
tl::Heap heap;
|
|
const QJsonObject::const_iterator &arg1 = args.read<const QJsonObject::const_iterator & > (heap);
|
|
ret.write<bool > ((bool)((QJsonObject::const_iterator *)cls)->operator== (arg1));
|
|
}
|
|
|
|
|
|
// bool QJsonObject::const_iterator::operator==(const QJsonObject::iterator &other)
|
|
|
|
|
|
static void _init_f_operator_eq__eq__c3393 (qt_gsi::GenericMethod *decl)
|
|
{
|
|
static gsi::ArgSpecBase argspec_0 ("other");
|
|
decl->add_arg<const QJsonObject::iterator & > (argspec_0);
|
|
decl->set_return<bool > ();
|
|
}
|
|
|
|
static void _call_f_operator_eq__eq__c3393 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret)
|
|
{
|
|
__SUPPRESS_UNUSED_WARNING(args);
|
|
tl::Heap heap;
|
|
const QJsonObject::iterator &arg1 = args.read<const QJsonObject::iterator & > (heap);
|
|
ret.write<bool > ((bool)((QJsonObject::const_iterator *)cls)->operator== (arg1));
|
|
}
|
|
|
|
|
|
// QJsonValue QJsonObject::const_iterator::value()
|
|
|
|
|
|
static void _init_f_value_c0 (qt_gsi::GenericMethod *decl)
|
|
{
|
|
decl->set_return<QJsonValue > ();
|
|
}
|
|
|
|
static void _call_f_value_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret)
|
|
{
|
|
__SUPPRESS_UNUSED_WARNING(args);
|
|
ret.write<QJsonValue > ((QJsonValue)((QJsonObject::const_iterator *)cls)->value ());
|
|
}
|
|
|
|
|
|
|
|
namespace gsi
|
|
{
|
|
|
|
static gsi::Methods methods_QJsonObject_Const_iterator () {
|
|
gsi::Methods methods;
|
|
methods += new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QJsonObject::const_iterator::const_iterator()\nThis method creates an object of class QJsonObject::const_iterator.", &_init_ctor_QJsonObject_Const_iterator_0, &_call_ctor_QJsonObject_Const_iterator_0);
|
|
methods += new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QJsonObject::const_iterator::const_iterator(const QJsonObject *obj, int index)\nThis method creates an object of class QJsonObject::const_iterator.", &_init_ctor_QJsonObject_Const_iterator_3066, &_call_ctor_QJsonObject_Const_iterator_3066);
|
|
methods += new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QJsonObject::const_iterator::const_iterator(const QJsonObject::iterator &other)\nThis method creates an object of class QJsonObject::const_iterator.", &_init_ctor_QJsonObject_Const_iterator_3393, &_call_ctor_QJsonObject_Const_iterator_3393);
|
|
methods += new qt_gsi::GenericMethod ("key", "@brief Method QString QJsonObject::const_iterator::key()\n", true, &_init_f_key_c0, &_call_f_key_c0);
|
|
methods += new qt_gsi::GenericMethod ("!=", "@brief Method bool QJsonObject::const_iterator::operator!=(const QJsonObject::const_iterator &other)\n", true, &_init_f_operator_excl__eq__c4039, &_call_f_operator_excl__eq__c4039);
|
|
methods += new qt_gsi::GenericMethod ("!=", "@brief Method bool QJsonObject::const_iterator::operator!=(const QJsonObject::iterator &other)\n", true, &_init_f_operator_excl__eq__c3393, &_call_f_operator_excl__eq__c3393);
|
|
methods += new qt_gsi::GenericMethod ("*", "@brief Method QJsonValue QJsonObject::const_iterator::operator*()\n", true, &_init_f_operator_star__c0, &_call_f_operator_star__c0);
|
|
methods += new qt_gsi::GenericMethod ("+", "@brief Method QJsonObject::const_iterator QJsonObject::const_iterator::operator+(int j)\n", true, &_init_f_operator_plus__c767, &_call_f_operator_plus__c767);
|
|
methods += new qt_gsi::GenericMethod ("++", "@brief Method QJsonObject::const_iterator &QJsonObject::const_iterator::operator++()\n", false, &_init_f_operator_plus__plus__0, &_call_f_operator_plus__plus__0);
|
|
methods += new qt_gsi::GenericMethod ("++", "@brief Method QJsonObject::const_iterator QJsonObject::const_iterator::operator++(int)\n", false, &_init_f_operator_plus__plus__767, &_call_f_operator_plus__plus__767);
|
|
methods += new qt_gsi::GenericMethod ("+=", "@brief Method QJsonObject::const_iterator &QJsonObject::const_iterator::operator+=(int j)\n", false, &_init_f_operator_plus__eq__767, &_call_f_operator_plus__eq__767);
|
|
methods += new qt_gsi::GenericMethod ("-", "@brief Method QJsonObject::const_iterator QJsonObject::const_iterator::operator-(int j)\n", true, &_init_f_operator_minus__c767, &_call_f_operator_minus__c767);
|
|
methods += new qt_gsi::GenericMethod ("--", "@brief Method QJsonObject::const_iterator &QJsonObject::const_iterator::operator--()\n", false, &_init_f_operator_minus__minus__0, &_call_f_operator_minus__minus__0);
|
|
methods += new qt_gsi::GenericMethod ("--", "@brief Method QJsonObject::const_iterator QJsonObject::const_iterator::operator--(int)\n", false, &_init_f_operator_minus__minus__767, &_call_f_operator_minus__minus__767);
|
|
methods += new qt_gsi::GenericMethod ("-=", "@brief Method QJsonObject::const_iterator &QJsonObject::const_iterator::operator-=(int j)\n", false, &_init_f_operator_minus__eq__767, &_call_f_operator_minus__eq__767);
|
|
methods += new qt_gsi::GenericMethod ("->", "@brief Method QJsonValuePtr QJsonObject::const_iterator::operator->()\n", true, &_init_f_operator_minus__gt__c0, &_call_f_operator_minus__gt__c0);
|
|
methods += new qt_gsi::GenericMethod ("==", "@brief Method bool QJsonObject::const_iterator::operator==(const QJsonObject::const_iterator &other)\n", true, &_init_f_operator_eq__eq__c4039, &_call_f_operator_eq__eq__c4039);
|
|
methods += new qt_gsi::GenericMethod ("==", "@brief Method bool QJsonObject::const_iterator::operator==(const QJsonObject::iterator &other)\n", true, &_init_f_operator_eq__eq__c3393, &_call_f_operator_eq__eq__c3393);
|
|
methods += new qt_gsi::GenericMethod ("value", "@brief Method QJsonValue QJsonObject::const_iterator::value()\n", true, &_init_f_value_c0, &_call_f_value_c0);
|
|
return methods;
|
|
}
|
|
|
|
gsi::Class<QJsonObject::const_iterator> decl_QJsonObject_Const_iterator ("QJsonObject_Const_iterator",
|
|
methods_QJsonObject_Const_iterator (),
|
|
"@qt\n@brief Binding of QJsonObject::const_iterator");
|
|
|
|
gsi::ClassExt<QJsonObject> decl_QJsonObject_Const_iterator_as_child (decl_QJsonObject_Const_iterator, "Const_iterator");
|
|
|
|
GSIQT_PUBLIC gsi::Class<QJsonObject::const_iterator> &qtdecl_QJsonObject_Const_iterator () { return decl_QJsonObject_Const_iterator; }
|
|
|
|
}
|
|
|