/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtCore module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and The Qt Company. For licensing terms ** and conditions see https://www.qt.io/terms-conditions. For further ** information use the contact form at https://www.qt.io/contact-us. ** ** GNU Lesser General Public License Usage ** Alternatively, this file may be used under the terms of the GNU Lesser ** General Public License version 3 as published by the Free Software ** Foundation and appearing in the file LICENSE.LGPL3 included in the ** packaging of this file. Please review the following information to ** ensure the GNU Lesser General Public License version 3 requirements ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. ** ** GNU General Public License Usage ** Alternatively, this file may be used under the terms of the GNU ** General Public License version 2.0 or (at your option) the GNU General ** Public license version 3 or any later version approved by the KDE Free ** Qt Foundation. The licenses are as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 ** included in the packaging of this file. Please review the following ** information to ensure the GNU General Public License requirements will ** be met: https://www.gnu.org/licenses/gpl-2.0.html and ** https://www.gnu.org/licenses/gpl-3.0.html. ** ** $QT_END_LICENSE$ ** ****************************************************************************/ // Generated code, do not edit! Use generator at tools/qtconcurrent/generaterun/ #ifndef QTCONCURRENT_RUN_H #define QTCONCURRENT_RUN_H #include #ifndef QT_NO_CONCURRENT #include #include QT_BEGIN_NAMESPACE #ifdef Q_QDOC namespace QtConcurrent { template QFuture run(Function function, ...); template QFuture run(QThreadPool *pool, Function function, ...); } // namespace QtConcurrent #else namespace QtConcurrent { template QFuture run(T (*functionPointer)()) { return (new StoredFunctorCall0(functionPointer))->start(); } template QFuture run(T (*functionPointer)(Param1), const Arg1 &arg1) { return (new StoredFunctorCall1(functionPointer, arg1))->start(); } template QFuture run(T (*functionPointer)(Param1, Param2), const Arg1 &arg1, const Arg2 &arg2) { return (new StoredFunctorCall2(functionPointer, arg1, arg2))->start(); } template QFuture run(T (*functionPointer)(Param1, Param2, Param3), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) { return (new StoredFunctorCall3(functionPointer, arg1, arg2, arg3))->start(); } template QFuture run(T (*functionPointer)(Param1, Param2, Param3, Param4), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) { return (new StoredFunctorCall4(functionPointer, arg1, arg2, arg3, arg4))->start(); } template QFuture run(T (*functionPointer)(Param1, Param2, Param3, Param4, Param5), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) { return (new StoredFunctorCall5(functionPointer, arg1, arg2, arg3, arg4, arg5))->start(); } #if defined(Q_COMPILER_DECLTYPE) && defined(Q_COMPILER_AUTO_FUNCTION) template auto run(Functor functor) -> typename QtPrivate::QEnableIf::Value, QFuture >::Type { typedef decltype(functor()) result_type; return (new StoredFunctorCall0(functor))->start(); } template auto run(Functor functor, const Arg1 &arg1) -> typename QtPrivate::QEnableIf::Value, QFuture >::Type { typedef decltype(functor(arg1)) result_type; return (new StoredFunctorCall1(functor, arg1))->start(); } template auto run(Functor functor, const Arg1 &arg1, const Arg2 &arg2) -> typename QtPrivate::QEnableIf::Value, QFuture >::Type { typedef decltype(functor(arg1, arg2)) result_type; return (new StoredFunctorCall2(functor, arg1, arg2))->start(); } template auto run(Functor functor, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) -> typename QtPrivate::QEnableIf::Value, QFuture >::Type { typedef decltype(functor(arg1, arg2, arg3)) result_type; return (new StoredFunctorCall3(functor, arg1, arg2, arg3))->start(); } template auto run(Functor functor, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) -> typename QtPrivate::QEnableIf::Value, QFuture >::Type { typedef decltype(functor(arg1, arg2, arg3, arg4)) result_type; return (new StoredFunctorCall4(functor, arg1, arg2, arg3, arg4))->start(); } template auto run(Functor functor, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) -> typename QtPrivate::QEnableIf::Value, QFuture >::Type { typedef decltype(functor(arg1, arg2, arg3, arg4, arg5)) result_type; return (new StoredFunctorCall5(functor, arg1, arg2, arg3, arg4, arg5))->start(); } #endif template QFuture run(FunctionObject functionObject) { return (new StoredFunctorCall0(functionObject))->start(); } template QFuture run(FunctionObject functionObject, const Arg1 &arg1) { return (new StoredFunctorCall1(functionObject, arg1))->start(); } template QFuture run(FunctionObject functionObject, const Arg1 &arg1, const Arg2 &arg2) { return (new StoredFunctorCall2(functionObject, arg1, arg2))->start(); } template QFuture run(FunctionObject functionObject, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) { return (new StoredFunctorCall3(functionObject, arg1, arg2, arg3))->start(); } template QFuture run(FunctionObject functionObject, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) { return (new StoredFunctorCall4(functionObject, arg1, arg2, arg3, arg4))->start(); } template QFuture run(FunctionObject functionObject, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) { return (new StoredFunctorCall5(functionObject, arg1, arg2, arg3, arg4, arg5))->start(); } template QFuture run(FunctionObject *functionObject) { return (new typename SelectStoredFunctorPointerCall0::type(functionObject))->start(); } template QFuture run(FunctionObject *functionObject, const Arg1 &arg1) { return (new typename SelectStoredFunctorPointerCall1::type(functionObject, arg1))->start(); } template QFuture run(FunctionObject *functionObject, const Arg1 &arg1, const Arg2 &arg2) { return (new typename SelectStoredFunctorPointerCall2::type(functionObject, arg1, arg2))->start(); } template QFuture run(FunctionObject *functionObject, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) { return (new typename SelectStoredFunctorPointerCall3::type(functionObject, arg1, arg2, arg3))->start(); } template QFuture run(FunctionObject *functionObject, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) { return (new typename SelectStoredFunctorPointerCall4::type(functionObject, arg1, arg2, arg3, arg4))->start(); } template QFuture run(FunctionObject *functionObject, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) { return (new typename SelectStoredFunctorPointerCall5::type(functionObject, arg1, arg2, arg3, arg4, arg5))->start(); } template QFuture run(const Class &object, T (Class::*fn)()) { return (new typename SelectStoredMemberFunctionCall0::type(fn, object))->start(); } template QFuture run(const Class &object, T (Class::*fn)(Param1), const Arg1 &arg1) { return (new typename SelectStoredMemberFunctionCall1::type(fn, object, arg1))->start(); } template QFuture run(const Class &object, T (Class::*fn)(Param1, Param2), const Arg1 &arg1, const Arg2 &arg2) { return (new typename SelectStoredMemberFunctionCall2::type(fn, object, arg1, arg2))->start(); } template QFuture run(const Class &object, T (Class::*fn)(Param1, Param2, Param3), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) { return (new typename SelectStoredMemberFunctionCall3::type(fn, object, arg1, arg2, arg3))->start(); } template QFuture run(const Class &object, T (Class::*fn)(Param1, Param2, Param3, Param4), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) { return (new typename SelectStoredMemberFunctionCall4::type(fn, object, arg1, arg2, arg3, arg4))->start(); } template QFuture run(const Class &object, T (Class::*fn)(Param1, Param2, Param3, Param4, Param5), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) { return (new typename SelectStoredMemberFunctionCall5::type(fn, object, arg1, arg2, arg3, arg4, arg5))->start(); } template QFuture run(const Class &object, T (Class::*fn)() const) { return (new typename SelectStoredConstMemberFunctionCall0::type(fn, object))->start(); } template QFuture run(const Class &object, T (Class::*fn)(Param1) const, const Arg1 &arg1) { return (new typename SelectStoredConstMemberFunctionCall1::type(fn, object, arg1))->start(); } template QFuture run(const Class &object, T (Class::*fn)(Param1, Param2) const, const Arg1 &arg1, const Arg2 &arg2) { return (new typename SelectStoredConstMemberFunctionCall2::type(fn, object, arg1, arg2))->start(); } template QFuture run(const Class &object, T (Class::*fn)(Param1, Param2, Param3) const, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) { return (new typename SelectStoredConstMemberFunctionCall3::type(fn, object, arg1, arg2, arg3))->start(); } template QFuture run(const Class &object, T (Class::*fn)(Param1, Param2, Param3, Param4) const, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) { return (new typename SelectStoredConstMemberFunctionCall4::type(fn, object, arg1, arg2, arg3, arg4))->start(); } template QFuture run(const Class &object, T (Class::*fn)(Param1, Param2, Param3, Param4, Param5) const, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) { return (new typename SelectStoredConstMemberFunctionCall5::type(fn, object, arg1, arg2, arg3, arg4, arg5))->start(); } template QFuture run(Class *object, T (Class::*fn)()) { return (new typename SelectStoredMemberFunctionPointerCall0::type(fn, object))->start(); } template QFuture run(Class *object, T (Class::*fn)(Param1), const Arg1 &arg1) { return (new typename SelectStoredMemberFunctionPointerCall1::type(fn, object, arg1))->start(); } template QFuture run(Class *object, T (Class::*fn)(Param1, Param2), const Arg1 &arg1, const Arg2 &arg2) { return (new typename SelectStoredMemberFunctionPointerCall2::type(fn, object, arg1, arg2))->start(); } template QFuture run(Class *object, T (Class::*fn)(Param1, Param2, Param3), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) { return (new typename SelectStoredMemberFunctionPointerCall3::type(fn, object, arg1, arg2, arg3))->start(); } template QFuture run(Class *object, T (Class::*fn)(Param1, Param2, Param3, Param4), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) { return (new typename SelectStoredMemberFunctionPointerCall4::type(fn, object, arg1, arg2, arg3, arg4))->start(); } template QFuture run(Class *object, T (Class::*fn)(Param1, Param2, Param3, Param4, Param5), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) { return (new typename SelectStoredMemberFunctionPointerCall5::type(fn, object, arg1, arg2, arg3, arg4, arg5))->start(); } template QFuture run(const Class *object, T (Class::*fn)() const) { return (new typename SelectStoredConstMemberFunctionPointerCall0::type(fn, object))->start(); } template QFuture run(const Class *object, T (Class::*fn)(Param1) const, const Arg1 &arg1) { return (new typename SelectStoredConstMemberFunctionPointerCall1::type(fn, object, arg1))->start(); } template QFuture run(const Class *object, T (Class::*fn)(Param1, Param2) const, const Arg1 &arg1, const Arg2 &arg2) { return (new typename SelectStoredConstMemberFunctionPointerCall2::type(fn, object, arg1, arg2))->start(); } template QFuture run(const Class *object, T (Class::*fn)(Param1, Param2, Param3) const, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) { return (new typename SelectStoredConstMemberFunctionPointerCall3::type(fn, object, arg1, arg2, arg3))->start(); } template QFuture run(const Class *object, T (Class::*fn)(Param1, Param2, Param3, Param4) const, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) { return (new typename SelectStoredConstMemberFunctionPointerCall4::type(fn, object, arg1, arg2, arg3, arg4))->start(); } template QFuture run(const Class *object, T (Class::*fn)(Param1, Param2, Param3, Param4, Param5) const, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) { return (new typename SelectStoredConstMemberFunctionPointerCall5::type(fn, object, arg1, arg2, arg3, arg4, arg5))->start(); } // ...and the same with a QThreadPool *pool argument... // generate from the above by c'n'p and s/run(/run(QThreadPool *pool, / and s/start()/start(pool)/ template QFuture run(QThreadPool *pool, T (*functionPointer)()) { return (new StoredFunctorCall0(functionPointer))->start(pool); } template QFuture run(QThreadPool *pool, T (*functionPointer)(Param1), const Arg1 &arg1) { return (new StoredFunctorCall1(functionPointer, arg1))->start(pool); } template QFuture run(QThreadPool *pool, T (*functionPointer)(Param1, Param2), const Arg1 &arg1, const Arg2 &arg2) { return (new StoredFunctorCall2(functionPointer, arg1, arg2))->start(pool); } template QFuture run(QThreadPool *pool, T (*functionPointer)(Param1, Param2, Param3), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) { return (new StoredFunctorCall3(functionPointer, arg1, arg2, arg3))->start(pool); } template QFuture run(QThreadPool *pool, T (*functionPointer)(Param1, Param2, Param3, Param4), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) { return (new StoredFunctorCall4(functionPointer, arg1, arg2, arg3, arg4))->start(pool); } template QFuture run(QThreadPool *pool, T (*functionPointer)(Param1, Param2, Param3, Param4, Param5), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) { return (new StoredFunctorCall5(functionPointer, arg1, arg2, arg3, arg4, arg5))->start(pool); } #if defined(Q_COMPILER_DECLTYPE) && defined(Q_COMPILER_AUTO_FUNCTION) template auto run(QThreadPool *pool, Functor functor) -> typename QtPrivate::QEnableIf::Value, QFuture >::Type { typedef decltype(functor()) result_type; return (new StoredFunctorCall0(functor))->start(pool); } template auto run(QThreadPool *pool, Functor functor, const Arg1 &arg1) -> typename QtPrivate::QEnableIf::Value, QFuture >::Type { typedef decltype(functor(arg1)) result_type; return (new StoredFunctorCall1(functor, arg1))->start(pool); } template auto run(QThreadPool *pool, Functor functor, const Arg1 &arg1, const Arg2 &arg2) -> typename QtPrivate::QEnableIf::Value, QFuture >::Type { typedef decltype(functor(arg1, arg2)) result_type; return (new StoredFunctorCall2(functor, arg1, arg2))->start(pool); } template auto run(QThreadPool *pool, Functor functor, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) -> typename QtPrivate::QEnableIf::Value, QFuture >::Type { typedef decltype(functor(arg1, arg2, arg3)) result_type; return (new StoredFunctorCall3(functor, arg1, arg2, arg3))->start(pool); } template auto run(QThreadPool *pool, Functor functor, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) -> typename QtPrivate::QEnableIf::Value, QFuture >::Type { typedef decltype(functor(arg1, arg2, arg3, arg4)) result_type; return (new StoredFunctorCall4(functor, arg1, arg2, arg3, arg4))->start(pool); } template auto run(QThreadPool *pool, Functor functor, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) -> typename QtPrivate::QEnableIf::Value, QFuture >::Type { typedef decltype(functor(arg1, arg2, arg3, arg4, arg5)) result_type; return (new StoredFunctorCall5(functor, arg1, arg2, arg3, arg4, arg5))->start(pool); } #endif template QFuture run(QThreadPool *pool, FunctionObject functionObject) { return (new StoredFunctorCall0(functionObject))->start(pool); } template QFuture run(QThreadPool *pool, FunctionObject functionObject, const Arg1 &arg1) { return (new StoredFunctorCall1(functionObject, arg1))->start(pool); } template QFuture run(QThreadPool *pool, FunctionObject functionObject, const Arg1 &arg1, const Arg2 &arg2) { return (new StoredFunctorCall2(functionObject, arg1, arg2))->start(pool); } template QFuture run(QThreadPool *pool, FunctionObject functionObject, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) { return (new StoredFunctorCall3(functionObject, arg1, arg2, arg3))->start(pool); } template QFuture run(QThreadPool *pool, FunctionObject functionObject, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) { return (new StoredFunctorCall4(functionObject, arg1, arg2, arg3, arg4))->start(pool); } template QFuture run(QThreadPool *pool, FunctionObject functionObject, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) { return (new StoredFunctorCall5(functionObject, arg1, arg2, arg3, arg4, arg5))->start(pool); } template QFuture run(QThreadPool *pool, FunctionObject *functionObject) { return (new typename SelectStoredFunctorPointerCall0::type(functionObject))->start(pool); } template QFuture run(QThreadPool *pool, FunctionObject *functionObject, const Arg1 &arg1) { return (new typename SelectStoredFunctorPointerCall1::type(functionObject, arg1))->start(pool); } template QFuture run(QThreadPool *pool, FunctionObject *functionObject, const Arg1 &arg1, const Arg2 &arg2) { return (new typename SelectStoredFunctorPointerCall2::type(functionObject, arg1, arg2))->start(pool); } template QFuture run(QThreadPool *pool, FunctionObject *functionObject, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) { return (new typename SelectStoredFunctorPointerCall3::type(functionObject, arg1, arg2, arg3))->start(pool); } template QFuture run(QThreadPool *pool, FunctionObject *functionObject, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) { return (new typename SelectStoredFunctorPointerCall4::type(functionObject, arg1, arg2, arg3, arg4))->start(pool); } template QFuture run(QThreadPool *pool, FunctionObject *functionObject, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) { return (new typename SelectStoredFunctorPointerCall5::type(functionObject, arg1, arg2, arg3, arg4, arg5))->start(pool); } template QFuture run(QThreadPool *pool, const Class &object, T (Class::*fn)()) { return (new typename SelectStoredMemberFunctionCall0::type(fn, object))->start(pool); } template QFuture run(QThreadPool *pool, const Class &object, T (Class::*fn)(Param1), const Arg1 &arg1) { return (new typename SelectStoredMemberFunctionCall1::type(fn, object, arg1))->start(pool); } template QFuture run(QThreadPool *pool, const Class &object, T (Class::*fn)(Param1, Param2), const Arg1 &arg1, const Arg2 &arg2) { return (new typename SelectStoredMemberFunctionCall2::type(fn, object, arg1, arg2))->start(pool); } template QFuture run(QThreadPool *pool, const Class &object, T (Class::*fn)(Param1, Param2, Param3), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) { return (new typename SelectStoredMemberFunctionCall3::type(fn, object, arg1, arg2, arg3))->start(pool); } template QFuture run(QThreadPool *pool, const Class &object, T (Class::*fn)(Param1, Param2, Param3, Param4), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) { return (new typename SelectStoredMemberFunctionCall4::type(fn, object, arg1, arg2, arg3, arg4))->start(pool); } template QFuture run(QThreadPool *pool, const Class &object, T (Class::*fn)(Param1, Param2, Param3, Param4, Param5), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) { return (new typename SelectStoredMemberFunctionCall5::type(fn, object, arg1, arg2, arg3, arg4, arg5))->start(pool); } template QFuture run(QThreadPool *pool, const Class &object, T (Class::*fn)() const) { return (new typename SelectStoredConstMemberFunctionCall0::type(fn, object))->start(pool); } template QFuture run(QThreadPool *pool, const Class &object, T (Class::*fn)(Param1) const, const Arg1 &arg1) { return (new typename SelectStoredConstMemberFunctionCall1::type(fn, object, arg1))->start(pool); } template QFuture run(QThreadPool *pool, const Class &object, T (Class::*fn)(Param1, Param2) const, const Arg1 &arg1, const Arg2 &arg2) { return (new typename SelectStoredConstMemberFunctionCall2::type(fn, object, arg1, arg2))->start(pool); } template QFuture run(QThreadPool *pool, const Class &object, T (Class::*fn)(Param1, Param2, Param3) const, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) { return (new typename SelectStoredConstMemberFunctionCall3::type(fn, object, arg1, arg2, arg3))->start(pool); } template QFuture run(QThreadPool *pool, const Class &object, T (Class::*fn)(Param1, Param2, Param3, Param4) const, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) { return (new typename SelectStoredConstMemberFunctionCall4::type(fn, object, arg1, arg2, arg3, arg4))->start(pool); } template QFuture run(QThreadPool *pool, const Class &object, T (Class::*fn)(Param1, Param2, Param3, Param4, Param5) const, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) { return (new typename SelectStoredConstMemberFunctionCall5::type(fn, object, arg1, arg2, arg3, arg4, arg5))->start(pool); } template QFuture run(QThreadPool *pool, Class *object, T (Class::*fn)()) { return (new typename SelectStoredMemberFunctionPointerCall0::type(fn, object))->start(pool); } template QFuture run(QThreadPool *pool, Class *object, T (Class::*fn)(Param1), const Arg1 &arg1) { return (new typename SelectStoredMemberFunctionPointerCall1::type(fn, object, arg1))->start(pool); } template QFuture run(QThreadPool *pool, Class *object, T (Class::*fn)(Param1, Param2), const Arg1 &arg1, const Arg2 &arg2) { return (new typename SelectStoredMemberFunctionPointerCall2::type(fn, object, arg1, arg2))->start(pool); } template QFuture run(QThreadPool *pool, Class *object, T (Class::*fn)(Param1, Param2, Param3), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) { return (new typename SelectStoredMemberFunctionPointerCall3::type(fn, object, arg1, arg2, arg3))->start(pool); } template QFuture run(QThreadPool *pool, Class *object, T (Class::*fn)(Param1, Param2, Param3, Param4), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) { return (new typename SelectStoredMemberFunctionPointerCall4::type(fn, object, arg1, arg2, arg3, arg4))->start(pool); } template QFuture run(QThreadPool *pool, Class *object, T (Class::*fn)(Param1, Param2, Param3, Param4, Param5), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) { return (new typename SelectStoredMemberFunctionPointerCall5::type(fn, object, arg1, arg2, arg3, arg4, arg5))->start(pool); } template QFuture run(QThreadPool *pool, const Class *object, T (Class::*fn)() const) { return (new typename SelectStoredConstMemberFunctionPointerCall0::type(fn, object))->start(pool); } template QFuture run(QThreadPool *pool, const Class *object, T (Class::*fn)(Param1) const, const Arg1 &arg1) { return (new typename SelectStoredConstMemberFunctionPointerCall1::type(fn, object, arg1))->start(pool); } template QFuture run(QThreadPool *pool, const Class *object, T (Class::*fn)(Param1, Param2) const, const Arg1 &arg1, const Arg2 &arg2) { return (new typename SelectStoredConstMemberFunctionPointerCall2::type(fn, object, arg1, arg2))->start(pool); } template QFuture run(QThreadPool *pool, const Class *object, T (Class::*fn)(Param1, Param2, Param3) const, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) { return (new typename SelectStoredConstMemberFunctionPointerCall3::type(fn, object, arg1, arg2, arg3))->start(pool); } template QFuture run(QThreadPool *pool, const Class *object, T (Class::*fn)(Param1, Param2, Param3, Param4) const, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) { return (new typename SelectStoredConstMemberFunctionPointerCall4::type(fn, object, arg1, arg2, arg3, arg4))->start(pool); } template QFuture run(QThreadPool *pool, const Class *object, T (Class::*fn)(Param1, Param2, Param3, Param4, Param5) const, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) { return (new typename SelectStoredConstMemberFunctionPointerCall5::type(fn, object, arg1, arg2, arg3, arg4, arg5))->start(pool); } } //namespace QtConcurrent #endif // Q_QDOC QT_END_NAMESPACE #endif // QT_NO_CONCURRENT #endif