/**************************************************************************** ** ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/ ** ** This file is part of the QtCore module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** GNU Lesser General Public License Usage ** This file may be used under the terms of the GNU Lesser General Public ** License version 2.1 as published by the Free Software Foundation and ** appearing in the file LICENSE.LGPL included in the packaging of this ** file. Please review the following information to ensure the GNU Lesser ** General Public License version 2.1 requirements will be met: ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. ** ** In addition, as a special exception, Nokia gives you certain additional ** rights. These rights are described in the Nokia Qt LGPL Exception ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. ** ** GNU General Public License Usage ** Alternatively, 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.GPL 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. ** ** Other Usage ** Alternatively, this file may be used in accordance with the terms and ** conditions contained in a signed written agreement between you and Nokia. ** ** ** ** ** ** ** $QT_END_LICENSE$ ** ****************************************************************************/ // Generated code, do not edit! Use generator at tools/qtconcurrent/generaterun/ #ifndef QTCONCURRENT_STOREDFUNCTIONCALL_H #define QTCONCURRENT_STOREDFUNCTIONCALL_H #include #ifndef QT_NO_CONCURRENT #include QT_BEGIN_HEADER QT_BEGIN_NAMESPACE #ifndef qdoc namespace QtConcurrent { template struct StoredFunctorCall0: public RunFunctionTask { inline StoredFunctorCall0(FunctionPointer _function) : function(_function) {} void runFunctor() { this->result = function(); } FunctionPointer function; }; template struct StoredFunctorCall0: public RunFunctionTask { inline StoredFunctorCall0(FunctionPointer _function) : function(_function) {} void runFunctor() { function(); } FunctionPointer function; }; template struct StoredFunctorPointerCall0: public RunFunctionTask { inline StoredFunctorPointerCall0(FunctionPointer * _function) : function(_function) {} void runFunctor() { this->result =(*function)(); } FunctionPointer * function; }; template struct VoidStoredFunctorPointerCall0: public RunFunctionTask { inline VoidStoredFunctorPointerCall0(FunctionPointer * _function) : function(_function) {} void runFunctor() {(*function)(); } FunctionPointer * function; }; template struct SelectStoredFunctorPointerCall0 { typedef typename SelectSpecialization::template Type, VoidStoredFunctorPointerCall0 >::type type; }; template class StoredMemberFunctionCall0 : public RunFunctionTask { public: StoredMemberFunctionCall0(T (Class::*_fn)() , const Class &_object) : fn(_fn), object(_object){ } void runFunctor() { this->result = (object.*fn)(); } private: T (Class::*fn)(); Class object; }; template class VoidStoredMemberFunctionCall0 : public RunFunctionTask { public: VoidStoredMemberFunctionCall0(T (Class::*_fn)() , const Class &_object) : fn(_fn), object(_object){ } void runFunctor() { (object.*fn)(); } private: T (Class::*fn)(); Class object; }; template struct SelectStoredMemberFunctionCall0 { typedef typename SelectSpecialization::template Type, VoidStoredMemberFunctionCall0 >::type type; }; template class StoredConstMemberFunctionCall0 : public RunFunctionTask { public: StoredConstMemberFunctionCall0(T (Class::*_fn)() const, const Class &_object) : fn(_fn), object(_object){ } void runFunctor() { this->result = (object.*fn)(); } private: T (Class::*fn)()const; const Class object; }; template class VoidStoredConstMemberFunctionCall0 : public RunFunctionTask { public: VoidStoredConstMemberFunctionCall0(T (Class::*_fn)() const, const Class &_object) : fn(_fn), object(_object){ } void runFunctor() { (object.*fn)(); } private: T (Class::*fn)()const; const Class object; }; template struct SelectStoredConstMemberFunctionCall0 { typedef typename SelectSpecialization::template Type, VoidStoredConstMemberFunctionCall0 >::type type; }; template class StoredMemberFunctionPointerCall0 : public RunFunctionTask { public: StoredMemberFunctionPointerCall0(T (Class::*_fn)() , Class *_object) : fn(_fn), object(_object){ } void runFunctor() { this->result = (object->*fn)(); } private: T (Class::*fn)(); Class *object; }; template class VoidStoredMemberFunctionPointerCall0 : public RunFunctionTask { public: VoidStoredMemberFunctionPointerCall0(T (Class::*_fn)() , Class *_object) : fn(_fn), object(_object){ } void runFunctor() { (object->*fn)(); } private: T (Class::*fn)(); Class *object; }; template struct SelectStoredMemberFunctionPointerCall0 { typedef typename SelectSpecialization::template Type, VoidStoredMemberFunctionPointerCall0 >::type type; }; template class StoredConstMemberFunctionPointerCall0 : public RunFunctionTask { public: StoredConstMemberFunctionPointerCall0(T (Class::*_fn)() const, Class const *_object) : fn(_fn), object(_object){ } void runFunctor() { this->result = (object->*fn)(); } private: T (Class::*fn)()const; Class const *object; }; template class VoidStoredConstMemberFunctionPointerCall0 : public RunFunctionTask { public: VoidStoredConstMemberFunctionPointerCall0(T (Class::*_fn)() const, Class const *_object) : fn(_fn), object(_object){ } void runFunctor() { (object->*fn)(); } private: T (Class::*fn)()const; Class const *object; }; template struct SelectStoredConstMemberFunctionPointerCall0 { typedef typename SelectSpecialization::template Type, VoidStoredConstMemberFunctionPointerCall0 >::type type; }; template struct StoredFunctorCall1: public RunFunctionTask { inline StoredFunctorCall1(FunctionPointer _function, const Arg1 &_arg1) : function(_function), arg1(_arg1) {} void runFunctor() { this->result = function(arg1); } FunctionPointer function; Arg1 arg1; }; template struct StoredFunctorCall1: public RunFunctionTask { inline StoredFunctorCall1(FunctionPointer _function, const Arg1 &_arg1) : function(_function), arg1(_arg1) {} void runFunctor() { function(arg1); } FunctionPointer function; Arg1 arg1; }; template struct StoredFunctorPointerCall1: public RunFunctionTask { inline StoredFunctorPointerCall1(FunctionPointer * _function, const Arg1 &_arg1) : function(_function), arg1(_arg1) {} void runFunctor() { this->result =(*function)(arg1); } FunctionPointer * function; Arg1 arg1; }; template struct VoidStoredFunctorPointerCall1: public RunFunctionTask { inline VoidStoredFunctorPointerCall1(FunctionPointer * _function, const Arg1 &_arg1) : function(_function), arg1(_arg1) {} void runFunctor() {(*function)(arg1); } FunctionPointer * function; Arg1 arg1; }; template struct SelectStoredFunctorPointerCall1 { typedef typename SelectSpecialization::template Type, VoidStoredFunctorPointerCall1 >::type type; }; template class StoredMemberFunctionCall1 : public RunFunctionTask { public: StoredMemberFunctionCall1(T (Class::*_fn)(Param1) , const Class &_object, const Arg1 &_arg1) : fn(_fn), object(_object), arg1(_arg1){ } void runFunctor() { this->result = (object.*fn)(arg1); } private: T (Class::*fn)(Param1); Class object; Arg1 arg1; }; template class VoidStoredMemberFunctionCall1 : public RunFunctionTask { public: VoidStoredMemberFunctionCall1(T (Class::*_fn)(Param1) , const Class &_object, const Arg1 &_arg1) : fn(_fn), object(_object), arg1(_arg1){ } void runFunctor() { (object.*fn)(arg1); } private: T (Class::*fn)(Param1); Class object; Arg1 arg1; }; template struct SelectStoredMemberFunctionCall1 { typedef typename SelectSpecialization::template Type, VoidStoredMemberFunctionCall1 >::type type; }; template class StoredConstMemberFunctionCall1 : public RunFunctionTask { public: StoredConstMemberFunctionCall1(T (Class::*_fn)(Param1) const, const Class &_object, const Arg1 &_arg1) : fn(_fn), object(_object), arg1(_arg1){ } void runFunctor() { this->result = (object.*fn)(arg1); } private: T (Class::*fn)(Param1)const; const Class object; Arg1 arg1; }; template class VoidStoredConstMemberFunctionCall1 : public RunFunctionTask { public: VoidStoredConstMemberFunctionCall1(T (Class::*_fn)(Param1) const, const Class &_object, const Arg1 &_arg1) : fn(_fn), object(_object), arg1(_arg1){ } void runFunctor() { (object.*fn)(arg1); } private: T (Class::*fn)(Param1)const; const Class object; Arg1 arg1; }; template struct SelectStoredConstMemberFunctionCall1 { typedef typename SelectSpecialization::template Type, VoidStoredConstMemberFunctionCall1 >::type type; }; template class StoredMemberFunctionPointerCall1 : public RunFunctionTask { public: StoredMemberFunctionPointerCall1(T (Class::*_fn)(Param1) , Class *_object, const Arg1 &_arg1) : fn(_fn), object(_object), arg1(_arg1){ } void runFunctor() { this->result = (object->*fn)(arg1); } private: T (Class::*fn)(Param1); Class *object; Arg1 arg1; }; template class VoidStoredMemberFunctionPointerCall1 : public RunFunctionTask { public: VoidStoredMemberFunctionPointerCall1(T (Class::*_fn)(Param1) , Class *_object, const Arg1 &_arg1) : fn(_fn), object(_object), arg1(_arg1){ } void runFunctor() { (object->*fn)(arg1); } private: T (Class::*fn)(Param1); Class *object; Arg1 arg1; }; template struct SelectStoredMemberFunctionPointerCall1 { typedef typename SelectSpecialization::template Type, VoidStoredMemberFunctionPointerCall1 >::type type; }; template class StoredConstMemberFunctionPointerCall1 : public RunFunctionTask { public: StoredConstMemberFunctionPointerCall1(T (Class::*_fn)(Param1) const, Class const *_object, const Arg1 &_arg1) : fn(_fn), object(_object), arg1(_arg1){ } void runFunctor() { this->result = (object->*fn)(arg1); } private: T (Class::*fn)(Param1)const; Class const *object; Arg1 arg1; }; template class VoidStoredConstMemberFunctionPointerCall1 : public RunFunctionTask { public: VoidStoredConstMemberFunctionPointerCall1(T (Class::*_fn)(Param1) const, Class const *_object, const Arg1 &_arg1) : fn(_fn), object(_object), arg1(_arg1){ } void runFunctor() { (object->*fn)(arg1); } private: T (Class::*fn)(Param1)const; Class const *object; Arg1 arg1; }; template struct SelectStoredConstMemberFunctionPointerCall1 { typedef typename SelectSpecialization::template Type, VoidStoredConstMemberFunctionPointerCall1 >::type type; }; template struct StoredFunctorCall2: public RunFunctionTask { inline StoredFunctorCall2(FunctionPointer _function, const Arg1 &_arg1, const Arg2 &_arg2) : function(_function), arg1(_arg1), arg2(_arg2) {} void runFunctor() { this->result = function(arg1, arg2); } FunctionPointer function; Arg1 arg1; Arg2 arg2; }; template struct StoredFunctorCall2: public RunFunctionTask { inline StoredFunctorCall2(FunctionPointer _function, const Arg1 &_arg1, const Arg2 &_arg2) : function(_function), arg1(_arg1), arg2(_arg2) {} void runFunctor() { function(arg1, arg2); } FunctionPointer function; Arg1 arg1; Arg2 arg2; }; template struct StoredFunctorPointerCall2: public RunFunctionTask { inline StoredFunctorPointerCall2(FunctionPointer * _function, const Arg1 &_arg1, const Arg2 &_arg2) : function(_function), arg1(_arg1), arg2(_arg2) {} void runFunctor() { this->result =(*function)(arg1, arg2); } FunctionPointer * function; Arg1 arg1; Arg2 arg2; }; template struct VoidStoredFunctorPointerCall2: public RunFunctionTask { inline VoidStoredFunctorPointerCall2(FunctionPointer * _function, const Arg1 &_arg1, const Arg2 &_arg2) : function(_function), arg1(_arg1), arg2(_arg2) {} void runFunctor() {(*function)(arg1, arg2); } FunctionPointer * function; Arg1 arg1; Arg2 arg2; }; template struct SelectStoredFunctorPointerCall2 { typedef typename SelectSpecialization::template Type, VoidStoredFunctorPointerCall2 >::type type; }; template class StoredMemberFunctionCall2 : public RunFunctionTask { public: StoredMemberFunctionCall2(T (Class::*_fn)(Param1, Param2) , const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2){ } void runFunctor() { this->result = (object.*fn)(arg1, arg2); } private: T (Class::*fn)(Param1, Param2); Class object; Arg1 arg1; Arg2 arg2; }; template class VoidStoredMemberFunctionCall2 : public RunFunctionTask { public: VoidStoredMemberFunctionCall2(T (Class::*_fn)(Param1, Param2) , const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2){ } void runFunctor() { (object.*fn)(arg1, arg2); } private: T (Class::*fn)(Param1, Param2); Class object; Arg1 arg1; Arg2 arg2; }; template struct SelectStoredMemberFunctionCall2 { typedef typename SelectSpecialization::template Type, VoidStoredMemberFunctionCall2 >::type type; }; template class StoredConstMemberFunctionCall2 : public RunFunctionTask { public: StoredConstMemberFunctionCall2(T (Class::*_fn)(Param1, Param2) const, const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2){ } void runFunctor() { this->result = (object.*fn)(arg1, arg2); } private: T (Class::*fn)(Param1, Param2)const; const Class object; Arg1 arg1; Arg2 arg2; }; template class VoidStoredConstMemberFunctionCall2 : public RunFunctionTask { public: VoidStoredConstMemberFunctionCall2(T (Class::*_fn)(Param1, Param2) const, const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2){ } void runFunctor() { (object.*fn)(arg1, arg2); } private: T (Class::*fn)(Param1, Param2)const; const Class object; Arg1 arg1; Arg2 arg2; }; template struct SelectStoredConstMemberFunctionCall2 { typedef typename SelectSpecialization::template Type, VoidStoredConstMemberFunctionCall2 >::type type; }; template class StoredMemberFunctionPointerCall2 : public RunFunctionTask { public: StoredMemberFunctionPointerCall2(T (Class::*_fn)(Param1, Param2) , Class *_object, const Arg1 &_arg1, const Arg2 &_arg2) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2){ } void runFunctor() { this->result = (object->*fn)(arg1, arg2); } private: T (Class::*fn)(Param1, Param2); Class *object; Arg1 arg1; Arg2 arg2; }; template class VoidStoredMemberFunctionPointerCall2 : public RunFunctionTask { public: VoidStoredMemberFunctionPointerCall2(T (Class::*_fn)(Param1, Param2) , Class *_object, const Arg1 &_arg1, const Arg2 &_arg2) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2){ } void runFunctor() { (object->*fn)(arg1, arg2); } private: T (Class::*fn)(Param1, Param2); Class *object; Arg1 arg1; Arg2 arg2; }; template struct SelectStoredMemberFunctionPointerCall2 { typedef typename SelectSpecialization::template Type, VoidStoredMemberFunctionPointerCall2 >::type type; }; template class StoredConstMemberFunctionPointerCall2 : public RunFunctionTask { public: StoredConstMemberFunctionPointerCall2(T (Class::*_fn)(Param1, Param2) const, Class const *_object, const Arg1 &_arg1, const Arg2 &_arg2) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2){ } void runFunctor() { this->result = (object->*fn)(arg1, arg2); } private: T (Class::*fn)(Param1, Param2)const; Class const *object; Arg1 arg1; Arg2 arg2; }; template class VoidStoredConstMemberFunctionPointerCall2 : public RunFunctionTask { public: VoidStoredConstMemberFunctionPointerCall2(T (Class::*_fn)(Param1, Param2) const, Class const *_object, const Arg1 &_arg1, const Arg2 &_arg2) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2){ } void runFunctor() { (object->*fn)(arg1, arg2); } private: T (Class::*fn)(Param1, Param2)const; Class const *object; Arg1 arg1; Arg2 arg2; }; template struct SelectStoredConstMemberFunctionPointerCall2 { typedef typename SelectSpecialization::template Type, VoidStoredConstMemberFunctionPointerCall2 >::type type; }; template struct StoredFunctorCall3: public RunFunctionTask { inline StoredFunctorCall3(FunctionPointer _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3) : function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3) {} void runFunctor() { this->result = function(arg1, arg2, arg3); } FunctionPointer function; Arg1 arg1; Arg2 arg2; Arg3 arg3; }; template struct StoredFunctorCall3: public RunFunctionTask { inline StoredFunctorCall3(FunctionPointer _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3) : function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3) {} void runFunctor() { function(arg1, arg2, arg3); } FunctionPointer function; Arg1 arg1; Arg2 arg2; Arg3 arg3; }; template struct StoredFunctorPointerCall3: public RunFunctionTask { inline StoredFunctorPointerCall3(FunctionPointer * _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3) : function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3) {} void runFunctor() { this->result =(*function)(arg1, arg2, arg3); } FunctionPointer * function; Arg1 arg1; Arg2 arg2; Arg3 arg3; }; template struct VoidStoredFunctorPointerCall3: public RunFunctionTask { inline VoidStoredFunctorPointerCall3(FunctionPointer * _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3) : function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3) {} void runFunctor() {(*function)(arg1, arg2, arg3); } FunctionPointer * function; Arg1 arg1; Arg2 arg2; Arg3 arg3; }; template struct SelectStoredFunctorPointerCall3 { typedef typename SelectSpecialization::template Type, VoidStoredFunctorPointerCall3 >::type type; }; template class StoredMemberFunctionCall3 : public RunFunctionTask { public: StoredMemberFunctionCall3(T (Class::*_fn)(Param1, Param2, Param3) , const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3){ } void runFunctor() { this->result = (object.*fn)(arg1, arg2, arg3); } private: T (Class::*fn)(Param1, Param2, Param3); Class object; Arg1 arg1; Arg2 arg2; Arg3 arg3; }; template class VoidStoredMemberFunctionCall3 : public RunFunctionTask { public: VoidStoredMemberFunctionCall3(T (Class::*_fn)(Param1, Param2, Param3) , const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3){ } void runFunctor() { (object.*fn)(arg1, arg2, arg3); } private: T (Class::*fn)(Param1, Param2, Param3); Class object; Arg1 arg1; Arg2 arg2; Arg3 arg3; }; template struct SelectStoredMemberFunctionCall3 { typedef typename SelectSpecialization::template Type, VoidStoredMemberFunctionCall3 >::type type; }; template class StoredConstMemberFunctionCall3 : public RunFunctionTask { public: StoredConstMemberFunctionCall3(T (Class::*_fn)(Param1, Param2, Param3) const, const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3){ } void runFunctor() { this->result = (object.*fn)(arg1, arg2, arg3); } private: T (Class::*fn)(Param1, Param2, Param3)const; const Class object; Arg1 arg1; Arg2 arg2; Arg3 arg3; }; template class VoidStoredConstMemberFunctionCall3 : public RunFunctionTask { public: VoidStoredConstMemberFunctionCall3(T (Class::*_fn)(Param1, Param2, Param3) const, const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3){ } void runFunctor() { (object.*fn)(arg1, arg2, arg3); } private: T (Class::*fn)(Param1, Param2, Param3)const; const Class object; Arg1 arg1; Arg2 arg2; Arg3 arg3; }; template struct SelectStoredConstMemberFunctionCall3 { typedef typename SelectSpecialization::template Type, VoidStoredConstMemberFunctionCall3 >::type type; }; template class StoredMemberFunctionPointerCall3 : public RunFunctionTask { public: StoredMemberFunctionPointerCall3(T (Class::*_fn)(Param1, Param2, Param3) , Class *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3){ } void runFunctor() { this->result = (object->*fn)(arg1, arg2, arg3); } private: T (Class::*fn)(Param1, Param2, Param3); Class *object; Arg1 arg1; Arg2 arg2; Arg3 arg3; }; template class VoidStoredMemberFunctionPointerCall3 : public RunFunctionTask { public: VoidStoredMemberFunctionPointerCall3(T (Class::*_fn)(Param1, Param2, Param3) , Class *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3){ } void runFunctor() { (object->*fn)(arg1, arg2, arg3); } private: T (Class::*fn)(Param1, Param2, Param3); Class *object; Arg1 arg1; Arg2 arg2; Arg3 arg3; }; template struct SelectStoredMemberFunctionPointerCall3 { typedef typename SelectSpecialization::template Type, VoidStoredMemberFunctionPointerCall3 >::type type; }; template class StoredConstMemberFunctionPointerCall3 : public RunFunctionTask { public: StoredConstMemberFunctionPointerCall3(T (Class::*_fn)(Param1, Param2, Param3) const, Class const *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3){ } void runFunctor() { this->result = (object->*fn)(arg1, arg2, arg3); } private: T (Class::*fn)(Param1, Param2, Param3)const; Class const *object; Arg1 arg1; Arg2 arg2; Arg3 arg3; }; template class VoidStoredConstMemberFunctionPointerCall3 : public RunFunctionTask { public: VoidStoredConstMemberFunctionPointerCall3(T (Class::*_fn)(Param1, Param2, Param3) const, Class const *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3){ } void runFunctor() { (object->*fn)(arg1, arg2, arg3); } private: T (Class::*fn)(Param1, Param2, Param3)const; Class const *object; Arg1 arg1; Arg2 arg2; Arg3 arg3; }; template struct SelectStoredConstMemberFunctionPointerCall3 { typedef typename SelectSpecialization::template Type, VoidStoredConstMemberFunctionPointerCall3 >::type type; }; template struct StoredFunctorCall4: public RunFunctionTask { inline StoredFunctorCall4(FunctionPointer _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4) : function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4) {} void runFunctor() { this->result = function(arg1, arg2, arg3, arg4); } FunctionPointer function; Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; }; template struct StoredFunctorCall4: public RunFunctionTask { inline StoredFunctorCall4(FunctionPointer _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4) : function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4) {} void runFunctor() { function(arg1, arg2, arg3, arg4); } FunctionPointer function; Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; }; template struct StoredFunctorPointerCall4: public RunFunctionTask { inline StoredFunctorPointerCall4(FunctionPointer * _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4) : function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4) {} void runFunctor() { this->result =(*function)(arg1, arg2, arg3, arg4); } FunctionPointer * function; Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; }; template struct VoidStoredFunctorPointerCall4: public RunFunctionTask { inline VoidStoredFunctorPointerCall4(FunctionPointer * _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4) : function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4) {} void runFunctor() {(*function)(arg1, arg2, arg3, arg4); } FunctionPointer * function; Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; }; template struct SelectStoredFunctorPointerCall4 { typedef typename SelectSpecialization::template Type, VoidStoredFunctorPointerCall4 >::type type; }; template class StoredMemberFunctionCall4 : public RunFunctionTask { public: StoredMemberFunctionCall4(T (Class::*_fn)(Param1, Param2, Param3, Param4) , const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4){ } void runFunctor() { this->result = (object.*fn)(arg1, arg2, arg3, arg4); } private: T (Class::*fn)(Param1, Param2, Param3, Param4); Class object; Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; }; template class VoidStoredMemberFunctionCall4 : public RunFunctionTask { public: VoidStoredMemberFunctionCall4(T (Class::*_fn)(Param1, Param2, Param3, Param4) , const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4){ } void runFunctor() { (object.*fn)(arg1, arg2, arg3, arg4); } private: T (Class::*fn)(Param1, Param2, Param3, Param4); Class object; Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; }; template struct SelectStoredMemberFunctionCall4 { typedef typename SelectSpecialization::template Type, VoidStoredMemberFunctionCall4 >::type type; }; template class StoredConstMemberFunctionCall4 : public RunFunctionTask { public: StoredConstMemberFunctionCall4(T (Class::*_fn)(Param1, Param2, Param3, Param4) const, const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4){ } void runFunctor() { this->result = (object.*fn)(arg1, arg2, arg3, arg4); } private: T (Class::*fn)(Param1, Param2, Param3, Param4)const; const Class object; Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; }; template class VoidStoredConstMemberFunctionCall4 : public RunFunctionTask { public: VoidStoredConstMemberFunctionCall4(T (Class::*_fn)(Param1, Param2, Param3, Param4) const, const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4){ } void runFunctor() { (object.*fn)(arg1, arg2, arg3, arg4); } private: T (Class::*fn)(Param1, Param2, Param3, Param4)const; const Class object; Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; }; template struct SelectStoredConstMemberFunctionCall4 { typedef typename SelectSpecialization::template Type, VoidStoredConstMemberFunctionCall4 >::type type; }; template class StoredMemberFunctionPointerCall4 : public RunFunctionTask { public: StoredMemberFunctionPointerCall4(T (Class::*_fn)(Param1, Param2, Param3, Param4) , Class *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4){ } void runFunctor() { this->result = (object->*fn)(arg1, arg2, arg3, arg4); } private: T (Class::*fn)(Param1, Param2, Param3, Param4); Class *object; Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; }; template class VoidStoredMemberFunctionPointerCall4 : public RunFunctionTask { public: VoidStoredMemberFunctionPointerCall4(T (Class::*_fn)(Param1, Param2, Param3, Param4) , Class *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4){ } void runFunctor() { (object->*fn)(arg1, arg2, arg3, arg4); } private: T (Class::*fn)(Param1, Param2, Param3, Param4); Class *object; Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; }; template struct SelectStoredMemberFunctionPointerCall4 { typedef typename SelectSpecialization::template Type, VoidStoredMemberFunctionPointerCall4 >::type type; }; template class StoredConstMemberFunctionPointerCall4 : public RunFunctionTask { public: StoredConstMemberFunctionPointerCall4(T (Class::*_fn)(Param1, Param2, Param3, Param4) const, Class const *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4){ } void runFunctor() { this->result = (object->*fn)(arg1, arg2, arg3, arg4); } private: T (Class::*fn)(Param1, Param2, Param3, Param4)const; Class const *object; Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; }; template class VoidStoredConstMemberFunctionPointerCall4 : public RunFunctionTask { public: VoidStoredConstMemberFunctionPointerCall4(T (Class::*_fn)(Param1, Param2, Param3, Param4) const, Class const *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4){ } void runFunctor() { (object->*fn)(arg1, arg2, arg3, arg4); } private: T (Class::*fn)(Param1, Param2, Param3, Param4)const; Class const *object; Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; }; template struct SelectStoredConstMemberFunctionPointerCall4 { typedef typename SelectSpecialization::template Type, VoidStoredConstMemberFunctionPointerCall4 >::type type; }; template struct StoredFunctorCall5: public RunFunctionTask { inline StoredFunctorCall5(FunctionPointer _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5) : function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5) {} void runFunctor() { this->result = function(arg1, arg2, arg3, arg4, arg5); } FunctionPointer function; Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; Arg5 arg5; }; template struct StoredFunctorCall5: public RunFunctionTask { inline StoredFunctorCall5(FunctionPointer _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5) : function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5) {} void runFunctor() { function(arg1, arg2, arg3, arg4, arg5); } FunctionPointer function; Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; Arg5 arg5; }; template struct StoredFunctorPointerCall5: public RunFunctionTask { inline StoredFunctorPointerCall5(FunctionPointer * _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5) : function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5) {} void runFunctor() { this->result =(*function)(arg1, arg2, arg3, arg4, arg5); } FunctionPointer * function; Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; Arg5 arg5; }; template struct VoidStoredFunctorPointerCall5: public RunFunctionTask { inline VoidStoredFunctorPointerCall5(FunctionPointer * _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5) : function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5) {} void runFunctor() {(*function)(arg1, arg2, arg3, arg4, arg5); } FunctionPointer * function; Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; Arg5 arg5; }; template struct SelectStoredFunctorPointerCall5 { typedef typename SelectSpecialization::template Type, VoidStoredFunctorPointerCall5 >::type type; }; template class StoredMemberFunctionCall5 : public RunFunctionTask { public: StoredMemberFunctionCall5(T (Class::*_fn)(Param1, Param2, Param3, Param4, Param5) , const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5){ } void runFunctor() { this->result = (object.*fn)(arg1, arg2, arg3, arg4, arg5); } private: T (Class::*fn)(Param1, Param2, Param3, Param4, Param5); Class object; Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; Arg5 arg5; }; template class VoidStoredMemberFunctionCall5 : public RunFunctionTask { public: VoidStoredMemberFunctionCall5(T (Class::*_fn)(Param1, Param2, Param3, Param4, Param5) , const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5){ } void runFunctor() { (object.*fn)(arg1, arg2, arg3, arg4, arg5); } private: T (Class::*fn)(Param1, Param2, Param3, Param4, Param5); Class object; Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; Arg5 arg5; }; template struct SelectStoredMemberFunctionCall5 { typedef typename SelectSpecialization::template Type, VoidStoredMemberFunctionCall5 >::type type; }; template class StoredConstMemberFunctionCall5 : public RunFunctionTask { public: StoredConstMemberFunctionCall5(T (Class::*_fn)(Param1, Param2, Param3, Param4, Param5) const, const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5){ } void runFunctor() { this->result = (object.*fn)(arg1, arg2, arg3, arg4, arg5); } private: T (Class::*fn)(Param1, Param2, Param3, Param4, Param5)const; const Class object; Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; Arg5 arg5; }; template class VoidStoredConstMemberFunctionCall5 : public RunFunctionTask { public: VoidStoredConstMemberFunctionCall5(T (Class::*_fn)(Param1, Param2, Param3, Param4, Param5) const, const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5){ } void runFunctor() { (object.*fn)(arg1, arg2, arg3, arg4, arg5); } private: T (Class::*fn)(Param1, Param2, Param3, Param4, Param5)const; const Class object; Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; Arg5 arg5; }; template struct SelectStoredConstMemberFunctionCall5 { typedef typename SelectSpecialization::template Type, VoidStoredConstMemberFunctionCall5 >::type type; }; template class StoredMemberFunctionPointerCall5 : public RunFunctionTask { public: StoredMemberFunctionPointerCall5(T (Class::*_fn)(Param1, Param2, Param3, Param4, Param5) , Class *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5){ } void runFunctor() { this->result = (object->*fn)(arg1, arg2, arg3, arg4, arg5); } private: T (Class::*fn)(Param1, Param2, Param3, Param4, Param5); Class *object; Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; Arg5 arg5; }; template class VoidStoredMemberFunctionPointerCall5 : public RunFunctionTask { public: VoidStoredMemberFunctionPointerCall5(T (Class::*_fn)(Param1, Param2, Param3, Param4, Param5) , Class *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5){ } void runFunctor() { (object->*fn)(arg1, arg2, arg3, arg4, arg5); } private: T (Class::*fn)(Param1, Param2, Param3, Param4, Param5); Class *object; Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; Arg5 arg5; }; template struct SelectStoredMemberFunctionPointerCall5 { typedef typename SelectSpecialization::template Type, VoidStoredMemberFunctionPointerCall5 >::type type; }; template class StoredConstMemberFunctionPointerCall5 : public RunFunctionTask { public: StoredConstMemberFunctionPointerCall5(T (Class::*_fn)(Param1, Param2, Param3, Param4, Param5) const, Class const *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5){ } void runFunctor() { this->result = (object->*fn)(arg1, arg2, arg3, arg4, arg5); } private: T (Class::*fn)(Param1, Param2, Param3, Param4, Param5)const; Class const *object; Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; Arg5 arg5; }; template class VoidStoredConstMemberFunctionPointerCall5 : public RunFunctionTask { public: VoidStoredConstMemberFunctionPointerCall5(T (Class::*_fn)(Param1, Param2, Param3, Param4, Param5) const, Class const *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5) : fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5){ } void runFunctor() { (object->*fn)(arg1, arg2, arg3, arg4, arg5); } private: T (Class::*fn)(Param1, Param2, Param3, Param4, Param5)const; Class const *object; Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; Arg5 arg5; }; template struct SelectStoredConstMemberFunctionPointerCall5 { typedef typename SelectSpecialization::template Type, VoidStoredConstMemberFunctionPointerCall5 >::type type; }; template class StoredFunctorCall : public RunFunctionTask { public: StoredFunctorCall(const Functor &f) : functor(f) { } void runFunctor() { this->result = functor(); } private: Functor functor; }; template class StoredFunctorCall : public RunFunctionTask { public: StoredFunctorCall(const Functor &f) : functor(f) { } void runFunctor() { functor(); } private: Functor functor; }; } //namespace QtConcurrent #endif // qdoc QT_END_NAMESPACE QT_END_HEADER #endif // QT_NO_CONCURRENT #endif