/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.6.2
 *
 * Copyright (c) 2022 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt5.
 * 
 * This file may be used under the terms of the GNU General Public License
 * version 3.0 as published by the Free Software Foundation and appearing in
 * the file LICENSE included in the packaging of this file.  Please review the
 * following information to ensure the GNU General Public License version 3.0
 * requirements will be met: http://www.gnu.org/copyleft/gpl.html.
 * 
 * If you do not wish to use this file under the terms of the GPL version 3.0
 * then you may purchase a commercial license.  For more information contact
 * info@riverbankcomputing.com.
 * 
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 */

#include "sipAPIQtXmlPatterns.h"

#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtXmlPatterns/qxmlnamepool.sip"
#include <qxmlnamepool.h>
#line 29 "/build/pyqt5/src/PyQt5-5.15.7/build/QtXmlPatterns/sipQtXmlPatternsQXmlNamePool.cpp"



/* Call the instance's destructor. */
extern "C" {static void release_QXmlNamePool(void *, int);}
static void release_QXmlNamePool(void *sipCppV, int)
{
    delete reinterpret_cast< ::QXmlNamePool *>(sipCppV);
}


extern "C" {static void *array_QXmlNamePool(Py_ssize_t);}
static void *array_QXmlNamePool(Py_ssize_t sipNrElem)
{
    return new  ::QXmlNamePool[sipNrElem];
}


extern "C" {static void array_delete_QXmlNamePool(void *);}
static void array_delete_QXmlNamePool(void *sipCpp)
{
    delete[] reinterpret_cast< ::QXmlNamePool *>(sipCpp);
}


extern "C" {static void assign_QXmlNamePool(void *, Py_ssize_t, void *);}
static void assign_QXmlNamePool(void *sipDst, Py_ssize_t sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QXmlNamePool *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::QXmlNamePool *>(sipSrc);
}


extern "C" {static void *copy_QXmlNamePool(const void *, Py_ssize_t);}
static void *copy_QXmlNamePool(const void *sipSrc, Py_ssize_t sipSrcIdx)
{
    return new  ::QXmlNamePool(reinterpret_cast<const  ::QXmlNamePool *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QXmlNamePool(sipSimpleWrapper *);}
static void dealloc_QXmlNamePool(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_QXmlNamePool(sipGetAddress(sipSelf), 0);
    }
}


extern "C" {static void *init_type_QXmlNamePool(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QXmlNamePool(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
     ::QXmlNamePool *sipCpp = SIP_NULLPTR;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
        {
            sipCpp = new  ::QXmlNamePool();

            return sipCpp;
        }
    }

    {
        const  ::QXmlNamePool* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9", sipType_QXmlNamePool, &a0))
        {
            sipCpp = new  ::QXmlNamePool(*a0);

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}

PyDoc_STRVAR(doc_QXmlNamePool, "\1QXmlNamePool()\n"
"QXmlNamePool(QXmlNamePool)");


static pyqt5ClassPluginDef plugin_QXmlNamePool = {
    SIP_NULLPTR,
    0,
    SIP_NULLPTR,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtXmlPatterns_QXmlNamePool = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QXmlNamePool,
        SIP_NULLPTR,
        &plugin_QXmlNamePool
    },
    {
        sipNameNr_QXmlNamePool,
        {0, 0, 1},
        0, SIP_NULLPTR,
        0, SIP_NULLPTR,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QXmlNamePool,
    -1,
    sipNameNr_sip_simplewrapper,
    SIP_NULLPTR,
    SIP_NULLPTR,
    init_type_QXmlNamePool,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QXmlNamePool,
    assign_QXmlNamePool,
    array_QXmlNamePool,
    copy_QXmlNamePool,
    release_QXmlNamePool,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QXmlNamePool,
    sizeof ( ::QXmlNamePool),
};
