
/*

  KLayout Layout Viewer
  Copyright (C) 2006-2016 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 gsiDeclQPersistentModelIndex.cc 
*
*  DO NOT EDIT THIS FILE. 
*  This file has been created automatically
*/

#include "gsiQtCore.h"
#include "gsiDeclQtTypeTraits.h"
#include "gsiDeclQPersistentModelIndex_Enums.h"
#include <memory>

// -----------------------------------------------------------------------
// class QPersistentModelIndex
  static const QModelIndex &castToQModelIndex(const QPersistentModelIndex *m)
  {
    return m->operator const QModelIndex &();
  }

//  Constructor QPersistentModelIndex::QPersistentModelIndex()


static void _init_ctor_QPersistentModelIndex_0 (qt_gsi::GenericStaticMethod *decl)
{
  decl->set_return_new<QPersistentModelIndex *> ();
}

static void _call_ctor_QPersistentModelIndex_0 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<QPersistentModelIndex *> (new QPersistentModelIndex ());
}

static qt_gsi::GenericStaticMethod *_create_ctor_QPersistentModelIndex_0 ()
{
  return new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QPersistentModelIndex::QPersistentModelIndex()\nThis method creates an object of class QPersistentModelIndex.", &_init_ctor_QPersistentModelIndex_0, &_call_ctor_QPersistentModelIndex_0);
}

//  Constructor QPersistentModelIndex::QPersistentModelIndex(const QModelIndex &index)


static void _init_ctor_QPersistentModelIndex_2395 (qt_gsi::GenericStaticMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("index");
  decl->add_arg<const QModelIndex & > (argspec_0);
  decl->set_return_new<QPersistentModelIndex *> ();
}

static void _call_ctor_QPersistentModelIndex_2395 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QModelIndex &arg1 = args.read<const QModelIndex & > ();
  ret.write<QPersistentModelIndex *> (new QPersistentModelIndex (arg1));
}

static qt_gsi::GenericStaticMethod *_create_ctor_QPersistentModelIndex_2395 ()
{
  return new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QPersistentModelIndex::QPersistentModelIndex(const QModelIndex &index)\nThis method creates an object of class QPersistentModelIndex.", &_init_ctor_QPersistentModelIndex_2395, &_call_ctor_QPersistentModelIndex_2395);
}

//  Constructor QPersistentModelIndex::QPersistentModelIndex(const QPersistentModelIndex &other)


static void _init_ctor_QPersistentModelIndex_3468 (qt_gsi::GenericStaticMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("other");
  decl->add_arg<const QPersistentModelIndex & > (argspec_0);
  decl->set_return_new<QPersistentModelIndex *> ();
}

static void _call_ctor_QPersistentModelIndex_3468 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QPersistentModelIndex &arg1 = args.read<const QPersistentModelIndex & > ();
  ret.write<QPersistentModelIndex *> (new QPersistentModelIndex (arg1));
}

static qt_gsi::GenericStaticMethod *_create_ctor_QPersistentModelIndex_3468 ()
{
  return new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QPersistentModelIndex::QPersistentModelIndex(const QPersistentModelIndex &other)\nThis method creates an object of class QPersistentModelIndex.", &_init_ctor_QPersistentModelIndex_3468, &_call_ctor_QPersistentModelIndex_3468);
}

// QModelIndex QPersistentModelIndex::child(int row, int column)


static void _init_f_child_c1426 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("row");
  decl->add_arg<int > (argspec_0);
  static gsi::ArgSpecBase argspec_1 ("column");
  decl->add_arg<int > (argspec_1);
  decl->set_return<QModelIndex > ();
}

static void _call_f_child_c1426 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  int arg1 = args.read<int > ();
  int arg2 = args.read<int > ();
  ret.write<QModelIndex > ((QModelIndex)((QPersistentModelIndex *)cls)->child (arg1, arg2));
}

static qt_gsi::GenericMethod *_create_f_child_c1426 ()
{
  return new qt_gsi::GenericMethod ("child", "@brief Method QModelIndex QPersistentModelIndex::child(int row, int column)\n", true, &_init_f_child_c1426, &_call_f_child_c1426);
}

// int QPersistentModelIndex::column()


static void _init_f_column_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<int > ();
}

static void _call_f_column_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<int > ((int)((QPersistentModelIndex *)cls)->column ());
}

static qt_gsi::GenericMethod *_create_f_column_c0 ()
{
  return new qt_gsi::GenericMethod ("column", "@brief Method int QPersistentModelIndex::column()\n", true, &_init_f_column_c0, &_call_f_column_c0);
}

// QVariant QPersistentModelIndex::data(int role)


static void _init_f_data_c767 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("role", true, "Qt::DisplayRole");
  decl->add_arg<int > (argspec_0);
  decl->set_return<QVariant > ();
}

static void _call_f_data_c767 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  int arg1 = args ? args.read<int > () : (int)(Qt::DisplayRole);
  ret.write<QVariant > ((QVariant)((QPersistentModelIndex *)cls)->data (arg1));
}

static qt_gsi::GenericMethod *_create_f_data_c767 ()
{
  return new qt_gsi::GenericMethod ("data", "@brief Method QVariant QPersistentModelIndex::data(int role)\n", true, &_init_f_data_c767, &_call_f_data_c767);
}

// QFlags<Qt::ItemFlag> QPersistentModelIndex::flags()


static void _init_f_flags_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<qt_gsi::Converter<QFlags<Qt::ItemFlag> >::target_type > ();
}

static void _call_f_flags_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<qt_gsi::Converter<QFlags<Qt::ItemFlag> >::target_type > ((qt_gsi::Converter<QFlags<Qt::ItemFlag> >::target_type)qt_gsi::CppToQtAdaptor<QFlags<Qt::ItemFlag> >(((QPersistentModelIndex *)cls)->flags ()));
}

static qt_gsi::GenericMethod *_create_f_flags_c0 ()
{
  return new qt_gsi::GenericMethod ("flags", "@brief Method QFlags<Qt::ItemFlag> QPersistentModelIndex::flags()\n", true, &_init_f_flags_c0, &_call_f_flags_c0);
}

// qint64 QPersistentModelIndex::internalId()


static void _init_f_internalId_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<qint64 > ();
}

static void _call_f_internalId_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<qint64 > ((qint64)((QPersistentModelIndex *)cls)->internalId ());
}

static qt_gsi::GenericMethod *_create_f_internalId_c0 ()
{
  return new qt_gsi::GenericMethod ("internalId", "@brief Method qint64 QPersistentModelIndex::internalId()\n", true, &_init_f_internalId_c0, &_call_f_internalId_c0);
}

// void *QPersistentModelIndex::internalPointer()


static void _init_f_internalPointer_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<void * > ();
}

static void _call_f_internalPointer_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<void * > ((void *)((QPersistentModelIndex *)cls)->internalPointer ());
}

static qt_gsi::GenericMethod *_create_f_internalPointer_c0 ()
{
  return new qt_gsi::GenericMethod ("internalPointer", "@brief Method void *QPersistentModelIndex::internalPointer()\n", true, &_init_f_internalPointer_c0, &_call_f_internalPointer_c0);
}

// bool QPersistentModelIndex::isValid()


static void _init_f_isValid_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<bool > ();
}

static void _call_f_isValid_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<bool > ((bool)((QPersistentModelIndex *)cls)->isValid ());
}

static qt_gsi::GenericMethod *_create_f_isValid_c0 ()
{
  return new qt_gsi::GenericMethod ("isValid?", "@brief Method bool QPersistentModelIndex::isValid()\n", true, &_init_f_isValid_c0, &_call_f_isValid_c0);
}

// const QAbstractItemModel *QPersistentModelIndex::model()


static void _init_f_model_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<const QAbstractItemModel * > ();
}

static void _call_f_model_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<const QAbstractItemModel * > ((const QAbstractItemModel *)((QPersistentModelIndex *)cls)->model ());
}

static qt_gsi::GenericMethod *_create_f_model_c0 ()
{
  return new qt_gsi::GenericMethod ("model", "@brief Method const QAbstractItemModel *QPersistentModelIndex::model()\n", true, &_init_f_model_c0, &_call_f_model_c0);
}

// bool QPersistentModelIndex::operator!=(const QPersistentModelIndex &other)


static void _init_f_operator_excl__eq__c3468 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("other");
  decl->add_arg<const QPersistentModelIndex & > (argspec_0);
  decl->set_return<bool > ();
}

static void _call_f_operator_excl__eq__c3468 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QPersistentModelIndex &arg1 = args.read<const QPersistentModelIndex & > ();
  ret.write<bool > ((bool)((QPersistentModelIndex *)cls)->operator!= (arg1));
}

static qt_gsi::GenericMethod *_create_f_operator_excl__eq__c3468 ()
{
  return new qt_gsi::GenericMethod ("!=", "@brief Method bool QPersistentModelIndex::operator!=(const QPersistentModelIndex &other)\n", true, &_init_f_operator_excl__eq__c3468, &_call_f_operator_excl__eq__c3468);
}

// bool QPersistentModelIndex::operator!=(const QModelIndex &other)


static void _init_f_operator_excl__eq__c2395 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("other");
  decl->add_arg<const QModelIndex & > (argspec_0);
  decl->set_return<bool > ();
}

static void _call_f_operator_excl__eq__c2395 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QModelIndex &arg1 = args.read<const QModelIndex & > ();
  ret.write<bool > ((bool)((QPersistentModelIndex *)cls)->operator!= (arg1));
}

static qt_gsi::GenericMethod *_create_f_operator_excl__eq__c2395 ()
{
  return new qt_gsi::GenericMethod ("!=", "@brief Method bool QPersistentModelIndex::operator!=(const QModelIndex &other)\n", true, &_init_f_operator_excl__eq__c2395, &_call_f_operator_excl__eq__c2395);
}

// bool QPersistentModelIndex::operator<(const QPersistentModelIndex &other)


static void _init_f_operator_lt__c3468 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("other");
  decl->add_arg<const QPersistentModelIndex & > (argspec_0);
  decl->set_return<bool > ();
}

static void _call_f_operator_lt__c3468 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QPersistentModelIndex &arg1 = args.read<const QPersistentModelIndex & > ();
  ret.write<bool > ((bool)((QPersistentModelIndex *)cls)->operator< (arg1));
}

static qt_gsi::GenericMethod *_create_f_operator_lt__c3468 ()
{
  return new qt_gsi::GenericMethod ("<", "@brief Method bool QPersistentModelIndex::operator<(const QPersistentModelIndex &other)\n", true, &_init_f_operator_lt__c3468, &_call_f_operator_lt__c3468);
}

// QPersistentModelIndex &QPersistentModelIndex::operator=(const QPersistentModelIndex &other)


static void _init_f_operator_eq__3468 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("other");
  decl->add_arg<const QPersistentModelIndex & > (argspec_0);
  decl->set_return<QPersistentModelIndex & > ();
}

static void _call_f_operator_eq__3468 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QPersistentModelIndex &arg1 = args.read<const QPersistentModelIndex & > ();
  ret.write<QPersistentModelIndex & > ((QPersistentModelIndex &)((QPersistentModelIndex *)cls)->operator= (arg1));
}

static qt_gsi::GenericMethod *_create_f_operator_eq__3468 ()
{
  return new qt_gsi::GenericMethod ("assign", "@brief Method QPersistentModelIndex &QPersistentModelIndex::operator=(const QPersistentModelIndex &other)\n", false, &_init_f_operator_eq__3468, &_call_f_operator_eq__3468);
}

// QPersistentModelIndex &QPersistentModelIndex::operator=(const QModelIndex &other)


static void _init_f_operator_eq__2395 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("other");
  decl->add_arg<const QModelIndex & > (argspec_0);
  decl->set_return<QPersistentModelIndex & > ();
}

static void _call_f_operator_eq__2395 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QModelIndex &arg1 = args.read<const QModelIndex & > ();
  ret.write<QPersistentModelIndex & > ((QPersistentModelIndex &)((QPersistentModelIndex *)cls)->operator= (arg1));
}

static qt_gsi::GenericMethod *_create_f_operator_eq__2395 ()
{
  return new qt_gsi::GenericMethod ("assign", "@brief Method QPersistentModelIndex &QPersistentModelIndex::operator=(const QModelIndex &other)\n", false, &_init_f_operator_eq__2395, &_call_f_operator_eq__2395);
}

// bool QPersistentModelIndex::operator==(const QPersistentModelIndex &other)


static void _init_f_operator_eq__eq__c3468 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("other");
  decl->add_arg<const QPersistentModelIndex & > (argspec_0);
  decl->set_return<bool > ();
}

static void _call_f_operator_eq__eq__c3468 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QPersistentModelIndex &arg1 = args.read<const QPersistentModelIndex & > ();
  ret.write<bool > ((bool)((QPersistentModelIndex *)cls)->operator== (arg1));
}

static qt_gsi::GenericMethod *_create_f_operator_eq__eq__c3468 ()
{
  return new qt_gsi::GenericMethod ("==", "@brief Method bool QPersistentModelIndex::operator==(const QPersistentModelIndex &other)\n", true, &_init_f_operator_eq__eq__c3468, &_call_f_operator_eq__eq__c3468);
}

// bool QPersistentModelIndex::operator==(const QModelIndex &other)


static void _init_f_operator_eq__eq__c2395 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("other");
  decl->add_arg<const QModelIndex & > (argspec_0);
  decl->set_return<bool > ();
}

static void _call_f_operator_eq__eq__c2395 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QModelIndex &arg1 = args.read<const QModelIndex & > ();
  ret.write<bool > ((bool)((QPersistentModelIndex *)cls)->operator== (arg1));
}

static qt_gsi::GenericMethod *_create_f_operator_eq__eq__c2395 ()
{
  return new qt_gsi::GenericMethod ("==", "@brief Method bool QPersistentModelIndex::operator==(const QModelIndex &other)\n", true, &_init_f_operator_eq__eq__c2395, &_call_f_operator_eq__eq__c2395);
}

// QModelIndex QPersistentModelIndex::parent()


static void _init_f_parent_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<QModelIndex > ();
}

static void _call_f_parent_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<QModelIndex > ((QModelIndex)((QPersistentModelIndex *)cls)->parent ());
}

static qt_gsi::GenericMethod *_create_f_parent_c0 ()
{
  return new qt_gsi::GenericMethod ("parent", "@brief Method QModelIndex QPersistentModelIndex::parent()\n", true, &_init_f_parent_c0, &_call_f_parent_c0);
}

// int QPersistentModelIndex::row()


static void _init_f_row_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<int > ();
}

static void _call_f_row_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<int > ((int)((QPersistentModelIndex *)cls)->row ());
}

static qt_gsi::GenericMethod *_create_f_row_c0 ()
{
  return new qt_gsi::GenericMethod ("row", "@brief Method int QPersistentModelIndex::row()\n", true, &_init_f_row_c0, &_call_f_row_c0);
}

// QModelIndex QPersistentModelIndex::sibling(int row, int column)


static void _init_f_sibling_c1426 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("row");
  decl->add_arg<int > (argspec_0);
  static gsi::ArgSpecBase argspec_1 ("column");
  decl->add_arg<int > (argspec_1);
  decl->set_return<QModelIndex > ();
}

static void _call_f_sibling_c1426 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  int arg1 = args.read<int > ();
  int arg2 = args.read<int > ();
  ret.write<QModelIndex > ((QModelIndex)((QPersistentModelIndex *)cls)->sibling (arg1, arg2));
}

static qt_gsi::GenericMethod *_create_f_sibling_c1426 ()
{
  return new qt_gsi::GenericMethod ("sibling", "@brief Method QModelIndex QPersistentModelIndex::sibling(int row, int column)\n", true, &_init_f_sibling_c1426, &_call_f_sibling_c1426);
}


namespace gsi
{
gsi::Class<QPersistentModelIndex> decl_QPersistentModelIndex ("QPersistentModelIndex",
  gsi::method_ext("castToQModelIndex", &castToQModelIndex, "@brief Binding for \"operator const QModelIndex &\".")
+
  gsi::Methods(_create_ctor_QPersistentModelIndex_0 ()) +
  gsi::Methods(_create_ctor_QPersistentModelIndex_2395 ()) +
  gsi::Methods(_create_ctor_QPersistentModelIndex_3468 ()) +
  gsi::Methods(_create_f_child_c1426 ()) +
  gsi::Methods(_create_f_column_c0 ()) +
  gsi::Methods(_create_f_data_c767 ()) +
  gsi::Methods(_create_f_flags_c0 ()) +
  gsi::Methods(_create_f_internalId_c0 ()) +
  gsi::Methods(_create_f_internalPointer_c0 ()) +
  gsi::Methods(_create_f_isValid_c0 ()) +
  gsi::Methods(_create_f_model_c0 ()) +
  gsi::Methods(_create_f_operator_excl__eq__c3468 ()) +
  gsi::Methods(_create_f_operator_excl__eq__c2395 ()) +
  gsi::Methods(_create_f_operator_lt__c3468 ()) +
  gsi::Methods(_create_f_operator_eq__3468 ()) +
  gsi::Methods(_create_f_operator_eq__2395 ()) +
  gsi::Methods(_create_f_operator_eq__eq__c3468 ()) +
  gsi::Methods(_create_f_operator_eq__eq__c2395 ()) +
  gsi::Methods(_create_f_parent_c0 ()) +
  gsi::Methods(_create_f_row_c0 ()) +
  gsi::Methods(_create_f_sibling_c1426 ()),
  "@qt\n@brief Binding of QPersistentModelIndex");

}

