/****************************************************************************
** Meta object code from reading C++ file 'calcworker.h'
**
** Created by: The Qt Meta Object Compiler version 69 (Qt 6.11.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../../../avogadrolibs/avogadro/qtgui/calcworker.h"
#include <QtCore/qmetatype.h>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'calcworker.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.0. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {
struct qt_meta_tag_ZN8Avogadro5QtGui10CalcWorkerE_t {};
} // unnamed namespace

template <> constexpr inline auto Avogadro::QtGui::CalcWorker::qt_create_metaobjectdata<qt_meta_tag_ZN8Avogadro5QtGui10CalcWorkerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Avogadro::QtGui::CalcWorker",
        "optimizeFinished",
        "",
        "Eigen::VectorXd",
        "positions",
        "gradient",
        "energy",
        "converged",
        "evaluateFinished",
        "calculatorReady",
        "initCalculator",
        "Avogadro::Calc::EnergyCalculator*",
        "calculator",
        "Avogadro::Core::Molecule",
        "molSnapshot",
        "mask",
        "std::vector<Avogadro::Core::Constraint>",
        "constraints",
        "runOptimizeChunk",
        "Avogadro::Calc::OptimizationOptions",
        "options",
        "runEvaluate",
        "computeGradient",
        "runGradient",
        "cancel"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'optimizeFinished'
        QtMocHelpers::SignalData<void(Eigen::VectorXd, Eigen::VectorXd, double, bool)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { 0x80000000 | 3, 5 }, { QMetaType::Double, 6 }, { QMetaType::Bool, 7 },
        }}),
        // Signal 'evaluateFinished'
        QtMocHelpers::SignalData<void(Eigen::VectorXd, double)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 5 }, { QMetaType::Double, 6 },
        }}),
        // Signal 'calculatorReady'
        QtMocHelpers::SignalData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'initCalculator'
        QtMocHelpers::SlotData<void(Avogadro::Calc::EnergyCalculator *, Avogadro::Core::Molecule, Eigen::VectorXd, std::vector<Avogadro::Core::Constraint>)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 11, 12 }, { 0x80000000 | 13, 14 }, { 0x80000000 | 3, 15 }, { 0x80000000 | 16, 17 },
        }}),
        // Slot 'runOptimizeChunk'
        QtMocHelpers::SlotData<void(Eigen::VectorXd, Avogadro::Calc::OptimizationOptions)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { 0x80000000 | 19, 20 },
        }}),
        // Slot 'runEvaluate'
        QtMocHelpers::SlotData<void(Eigen::VectorXd, bool)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { QMetaType::Bool, 22 },
        }}),
        // Slot 'runGradient'
        QtMocHelpers::SlotData<void(Eigen::VectorXd)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'cancel'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<CalcWorker, qt_meta_tag_ZN8Avogadro5QtGui10CalcWorkerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Avogadro::QtGui::CalcWorker::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro5QtGui10CalcWorkerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro5QtGui10CalcWorkerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8Avogadro5QtGui10CalcWorkerE_t>.metaTypes,
    nullptr
} };

void Avogadro::QtGui::CalcWorker::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<CalcWorker *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->optimizeFinished((*reinterpret_cast<std::add_pointer_t<Eigen::VectorXd>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Eigen::VectorXd>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<double>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[4]))); break;
        case 1: _t->evaluateFinished((*reinterpret_cast<std::add_pointer_t<Eigen::VectorXd>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<double>>(_a[2]))); break;
        case 2: _t->calculatorReady(); break;
        case 3: _t->initCalculator((*reinterpret_cast<std::add_pointer_t<Avogadro::Calc::EnergyCalculator*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Avogadro::Core::Molecule>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<Eigen::VectorXd>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<std::vector<Avogadro::Core::Constraint>>>(_a[4]))); break;
        case 4: _t->runOptimizeChunk((*reinterpret_cast<std::add_pointer_t<Eigen::VectorXd>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Avogadro::Calc::OptimizationOptions>>(_a[2]))); break;
        case 5: _t->runEvaluate((*reinterpret_cast<std::add_pointer_t<Eigen::VectorXd>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 6: _t->runGradient((*reinterpret_cast<std::add_pointer_t<Eigen::VectorXd>>(_a[1]))); break;
        case 7: _t->cancel(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Eigen::VectorXd >(); break;
            }
            break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Eigen::VectorXd >(); break;
            }
            break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Avogadro::Calc::EnergyCalculator* >(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Avogadro::Core::Molecule >(); break;
            case 2:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Eigen::VectorXd >(); break;
            case 3:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< std::vector<Avogadro::Core::Constraint> >(); break;
            }
            break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Avogadro::Calc::OptimizationOptions >(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Eigen::VectorXd >(); break;
            }
            break;
        case 5:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Eigen::VectorXd >(); break;
            }
            break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Eigen::VectorXd >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (CalcWorker::*)(Eigen::VectorXd , Eigen::VectorXd , double , bool )>(_a, &CalcWorker::optimizeFinished, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (CalcWorker::*)(Eigen::VectorXd , double )>(_a, &CalcWorker::evaluateFinished, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (CalcWorker::*)()>(_a, &CalcWorker::calculatorReady, 2))
            return;
    }
}

const QMetaObject *Avogadro::QtGui::CalcWorker::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *Avogadro::QtGui::CalcWorker::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro5QtGui10CalcWorkerE_t>.strings))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int Avogadro::QtGui::CalcWorker::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
    return _id;
}

// SIGNAL 0
void Avogadro::QtGui::CalcWorker::optimizeFinished(Eigen::VectorXd _t1, Eigen::VectorXd _t2, double _t3, bool _t4)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2, _t3, _t4);
}

// SIGNAL 1
void Avogadro::QtGui::CalcWorker::evaluateFinished(Eigen::VectorXd _t1, double _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}

// SIGNAL 2
void Avogadro::QtGui::CalcWorker::calculatorReady()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
QT_WARNING_POP
