/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.5.0
 *
 * Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt3D.
 * 
 * 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 "sipAPIQt3DAnimation.h"

#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DCore/qsharedpointer.sip"
#include <qsharedpointer.h>
#line 29 "/build/pyqt5-3d/src/PyQt3D-5.15.5/build/Qt3DAnimation/sipQt3DAnimationQSharedPointer0100Qt3DAnimationQClipBlendNodeCreatedChangeBase.cpp"

#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DAnimation/qabstractanimation.sip"
#include <qabstractanimation.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DAnimation/qabstractanimationclip.sip"
#include <qabstractanimationclip.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DAnimation/qabstractchannelmapping.sip"
#include <qabstractchannelmapping.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DAnimation/qabstractclipanimator.sip"
#include <qabstractclipanimator.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DAnimation/qabstractclipblendnode.sip"
#include <qabstractclipblendnode.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DAnimation/qadditiveclipblend.sip"
#include <qadditiveclipblend.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DAnimation/qanimationaspect.sip"
#include <qanimationaspect.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DAnimation/qanimationclip.sip"
#include <qanimationclip.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DAnimation/qanimationclipdata.sip"
#include <qanimationclipdata.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DAnimation/qanimationcliploader.sip"
#include <qanimationcliploader.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DAnimation/qanimationcontroller.sip"
#include <qanimationcontroller.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DAnimation/qanimationgroup.sip"
#include <qanimationgroup.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DAnimation/qblendedclipanimator.sip"
#include <qblendedclipanimator.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DAnimation/qchannel.sip"
#include <qchannel.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DAnimation/qchannelcomponent.sip"
#include <qchannelcomponent.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DAnimation/qchannelmapper.sip"
#include <qchannelmapper.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DAnimation/qchannelmapping.sip"
#include <qchannelmapping.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DAnimation/qclipanimator.sip"
#include <qclipanimator.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DAnimation/qclipblendnodecreatedchange.sip"
#include <qclipblendnodecreatedchange.h>
#line 34 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DAnimation/qclipblendnodecreatedchange.sip"
#include <qclipblendnodecreatedchange.h>
#line 71 "/build/pyqt5-3d/src/PyQt3D-5.15.5/build/Qt3DAnimation/sipQt3DAnimationQSharedPointer0100Qt3DAnimationQClipBlendNodeCreatedChangeBase.cpp"


extern "C" {static void assign_QSharedPointer_0100Qt3DAnimation_QClipBlendNodeCreatedChangeBase(void *, Py_ssize_t, void *);}
static void assign_QSharedPointer_0100Qt3DAnimation_QClipBlendNodeCreatedChangeBase(void *sipDst, Py_ssize_t sipDstIdx, void *sipSrc)
{
    reinterpret_cast<QSharedPointer< ::Qt3DAnimation::QClipBlendNodeCreatedChangeBase> *>(sipDst)[sipDstIdx] = *reinterpret_cast<QSharedPointer< ::Qt3DAnimation::QClipBlendNodeCreatedChangeBase> *>(sipSrc);
}


extern "C" {static void *array_QSharedPointer_0100Qt3DAnimation_QClipBlendNodeCreatedChangeBase(Py_ssize_t);}
static void *array_QSharedPointer_0100Qt3DAnimation_QClipBlendNodeCreatedChangeBase(Py_ssize_t sipNrElem)
{
    return new QSharedPointer< ::Qt3DAnimation::QClipBlendNodeCreatedChangeBase>[sipNrElem];
}


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


/* Call the mapped type's destructor. */
extern "C" {static void release_QSharedPointer_0100Qt3DAnimation_QClipBlendNodeCreatedChangeBase(void *, int);}
static void release_QSharedPointer_0100Qt3DAnimation_QClipBlendNodeCreatedChangeBase(void *sipCppV, int)
{
    QSharedPointer< ::Qt3DAnimation::QClipBlendNodeCreatedChangeBase> *sipCpp = reinterpret_cast<QSharedPointer< ::Qt3DAnimation::QClipBlendNodeCreatedChangeBase> *>(sipCppV);
    delete sipCpp;
}



extern "C" {static int convertTo_QSharedPointer_0100Qt3DAnimation_QClipBlendNodeCreatedChangeBase(PyObject *, void **, int *, PyObject *);}
static int convertTo_QSharedPointer_0100Qt3DAnimation_QClipBlendNodeCreatedChangeBase(PyObject *sipPy, void **sipCppPtrV, int *sipIsErr, PyObject *sipTransferObj)
{
    QSharedPointer< ::Qt3DAnimation::QClipBlendNodeCreatedChangeBase> **sipCppPtr = reinterpret_cast<QSharedPointer< ::Qt3DAnimation::QClipBlendNodeCreatedChangeBase> **>(sipCppPtrV);

#line 51 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DCore/qsharedpointer.sip"
    if (!sipIsErr)
        return sipCanConvertToType(sipPy, sipType_Qt3DAnimation_QClipBlendNodeCreatedChangeBase,
                SIP_NOT_NONE | SIP_NO_CONVERTORS);

    // If there is a user object then just copy the shared pointer it wraps.
    PyObject *user = sipGetUserObject((sipSimpleWrapper *)sipPy);

    QSharedPointer<Qt3DAnimation::QClipBlendNodeCreatedChangeBase> *qsp;

    if (user)
    {
#if defined(SIP_USE_PYCAPSULE)
        qsp = reinterpret_cast<QSharedPointer<Qt3DAnimation::QClipBlendNodeCreatedChangeBase> *>(
                PyCapsule_GetPointer(user, 0));
#else
        qsp = reinterpret_cast<QSharedPointer<Qt3DAnimation::QClipBlendNodeCreatedChangeBase> *>(
                PyCObject_AsVoidPtr(user));
#endif

        qsp = new QSharedPointer<Qt3DAnimation::QClipBlendNodeCreatedChangeBase>(*qsp);
    }
    else
    {
        // Create a new shared pointer and save it in the user object.
        Qt3DAnimation::QClipBlendNodeCreatedChangeBase *cpp = reinterpret_cast<Qt3DAnimation::QClipBlendNodeCreatedChangeBase *>(
                sipConvertToType(sipPy, sipType_Qt3DAnimation_QClipBlendNodeCreatedChangeBase, sipTransferObj,
                        SIP_NOT_NONE | SIP_NO_CONVERTORS, 0, sipIsErr));

        if (*sipIsErr)
            return 0;

        qsp = new QSharedPointer<Qt3DAnimation::QClipBlendNodeCreatedChangeBase>(cpp);

        if (!qt3d_SaveQsp<Qt3DAnimation::QClipBlendNodeCreatedChangeBase>(sipPy, qsp))
        {
            delete qsp;
            *sipIsErr = 1;
            return 0;
        }
    }

    *sipCppPtr = qsp;

    return sipGetState(sipTransferObj);
#line 155 "/build/pyqt5-3d/src/PyQt3D-5.15.5/build/Qt3DAnimation/sipQt3DAnimationQSharedPointer0100Qt3DAnimationQClipBlendNodeCreatedChangeBase.cpp"
}


extern "C" {static PyObject *convertFrom_QSharedPointer_0100Qt3DAnimation_QClipBlendNodeCreatedChangeBase(void *, PyObject *);}
static PyObject *convertFrom_QSharedPointer_0100Qt3DAnimation_QClipBlendNodeCreatedChangeBase(void *sipCppV, PyObject *sipTransferObj)
{
   QSharedPointer< ::Qt3DAnimation::QClipBlendNodeCreatedChangeBase> *sipCpp = reinterpret_cast<QSharedPointer< ::Qt3DAnimation::QClipBlendNodeCreatedChangeBase> *>(sipCppV);

#line 30 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DCore/qsharedpointer.sip"
    PyObject *py = sipConvertFromType(sipCpp->data(), sipType_Qt3DAnimation_QClipBlendNodeCreatedChangeBase,
            sipTransferObj);

    if (!py)
        return 0;

    // We need our own copy of the shared pointer so we can copy it when asked
    // to convert the Python object back to C++.
    QSharedPointer<Qt3DAnimation::QClipBlendNodeCreatedChangeBase> *qsp = new QSharedPointer<Qt3DAnimation::QClipBlendNodeCreatedChangeBase>(*sipCpp);

    if (!qt3d_SaveQsp<Qt3DAnimation::QClipBlendNodeCreatedChangeBase>(py, qsp))
    {
        Py_DECREF(py);
        delete qsp;
        return 0;
    }

    return py;
#line 183 "/build/pyqt5-3d/src/PyQt3D-5.15.5/build/Qt3DAnimation/sipQt3DAnimationQSharedPointer0100Qt3DAnimationQClipBlendNodeCreatedChangeBase.cpp"
}


sipMappedTypeDef sipTypeDef_Qt3DAnimation_QSharedPointer_0100Qt3DAnimation_QClipBlendNodeCreatedChangeBase = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_MAPPED,
        sipNameNr_0,
        SIP_NULLPTR,
        SIP_NULLPTR
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QSharedPointer_0100Qt3DAnimation_QClipBlendNodeCreatedChangeBase,
    array_QSharedPointer_0100Qt3DAnimation_QClipBlendNodeCreatedChangeBase,
    copy_QSharedPointer_0100Qt3DAnimation_QClipBlendNodeCreatedChangeBase,
    release_QSharedPointer_0100Qt3DAnimation_QClipBlendNodeCreatedChangeBase,
    convertTo_QSharedPointer_0100Qt3DAnimation_QClipBlendNodeCreatedChangeBase,
    convertFrom_QSharedPointer_0100Qt3DAnimation_QClipBlendNodeCreatedChangeBase
};
