/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Toolkit. ** ****************************************************************************/ // Generated code, do not edit! Use generator at tools/generatebuild/ #ifndef COROUTINE_MAKE_H #define COROUTINE_MAKE_H #include "coroutine.h" #include "coroutinestoredfunctioncall.h" #ifdef qdoc Coroutine* build(Function function, ...); #else Coroutine* build(int stackSize, void (*functionPointer)()) { return new StoredFunctorCall0(stackSize, functionPointer); } template Coroutine* build(int stackSize, void (*functionPointer)(Param1), const Arg1 &arg1) { return new StoredFunctorCall1(stackSize, functionPointer, arg1); } template Coroutine* build(int stackSize, void (*functionPointer)(Param1, Param2), const Arg1 &arg1, const Arg2 &arg2) { return new StoredFunctorCall2(stackSize, functionPointer, arg1, arg2); } template Coroutine* build(int stackSize, void (*functionPointer)(Param1, Param2, Param3), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) { return new StoredFunctorCall3(stackSize, functionPointer, arg1, arg2, arg3); } template Coroutine* build(int stackSize, void (*functionPointer)(Param1, Param2, Param3, Param4), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) { return new StoredFunctorCall4(stackSize, functionPointer, arg1, arg2, arg3, arg4); } template Coroutine* build(int stackSize, void (*functionPointer)(Param1, Param2, Param3, Param4, Param5), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) { return new StoredFunctorCall5(stackSize, functionPointer, arg1, arg2, arg3, arg4, arg5); } template Coroutine* build(int stackSize, FunctionObject functionObject) { return new StoredFunctorCall0(stackSize, functionObject); } template Coroutine* build(int stackSize, FunctionObject functionObject, const Arg1 &arg1) { return new StoredFunctorCall1(stackSize, functionObject, arg1); } template Coroutine* build(int stackSize, FunctionObject functionObject, const Arg1 &arg1, const Arg2 &arg2) { return new StoredFunctorCall2(stackSize, functionObject, arg1, arg2); } template Coroutine* build(int stackSize, FunctionObject functionObject, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) { return new StoredFunctorCall3(stackSize, functionObject, arg1, arg2, arg3); } template Coroutine* build(int stackSize, FunctionObject functionObject, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) { return new StoredFunctorCall4(stackSize, functionObject, arg1, arg2, arg3, arg4); } template Coroutine* build(int stackSize, FunctionObject functionObject, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) { return new StoredFunctorCall5(stackSize, functionObject, arg1, arg2, arg3, arg4, arg5); } template Coroutine* build(int stackSize, FunctionObject *functionObject) { return new StoredFunctorPointerCall0(stackSize, functionObject); } template Coroutine* build(int stackSize, FunctionObject *functionObject, const Arg1 &arg1) { return new StoredFunctorPointerCall1(stackSize, functionObject, arg1); } template Coroutine* build(int stackSize, FunctionObject *functionObject, const Arg1 &arg1, const Arg2 &arg2) { return new StoredFunctorPointerCall2(stackSize, functionObject, arg1, arg2); } template Coroutine* build(int stackSize, FunctionObject *functionObject, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) { return new StoredFunctorPointerCall3(stackSize, functionObject, arg1, arg2, arg3); } template Coroutine* build(int stackSize, FunctionObject *functionObject, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) { return new StoredFunctorPointerCall4(stackSize, functionObject, arg1, arg2, arg3, arg4); } template Coroutine* build(int stackSize, FunctionObject *functionObject, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) { return new StoredFunctorPointerCall5(stackSize, functionObject, arg1, arg2, arg3, arg4, arg5); } template Coroutine* build(int stackSize, const Class &object, void (Class::*fn)()) { return new StoredMemberFunctionCall0(stackSize, fn, object); } template Coroutine* build(int stackSize, const Class &object, void (Class::*fn)(Param1), const Arg1 &arg1) { return new StoredMemberFunctionCall1(stackSize, fn, object, arg1); } template Coroutine* build(int stackSize, const Class &object, void (Class::*fn)(Param1, Param2), const Arg1 &arg1, const Arg2 &arg2) { return new StoredMemberFunctionCall2(stackSize, fn, object, arg1, arg2); } template Coroutine* build(int stackSize, const Class &object, void (Class::*fn)(Param1, Param2, Param3), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) { return new StoredMemberFunctionCall3(stackSize, fn, object, arg1, arg2, arg3); } template Coroutine* build(int stackSize, const Class &object, void (Class::*fn)(Param1, Param2, Param3, Param4), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) { return new StoredMemberFunctionCall4(stackSize, fn, object, arg1, arg2, arg3, arg4); } template Coroutine* build(int stackSize, const Class &object, void (Class::*fn)(Param1, Param2, Param3, Param4, Param5), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) { return new StoredMemberFunctionCall5(stackSize, fn, object, arg1, arg2, arg3, arg4, arg5); } template Coroutine *build(int stackSize, const Class &object, void (Class::*fn)() const) { return new StoredConstMemberFunctionCall0(stackSize, fn, object); } template Coroutine *build(int stackSize, const Class &object, void (Class::*fn)(Param1) const, const Arg1 &arg1) { return new StoredConstMemberFunctionCall1(stackSize, fn, object, arg1); } template Coroutine *build(int stackSize, const Class &object, void (Class::*fn)(Param1, Param2) const, const Arg1 &arg1, const Arg2 &arg2) { return new StoredConstMemberFunctionCall2(stackSize, fn, object, arg1, arg2); } template Coroutine *build(int stackSize, const Class &object, void (Class::*fn)(Param1, Param2, Param3) const, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) { return new StoredConstMemberFunctionCall3(stackSize, fn, object, arg1, arg2, arg3); } template Coroutine *build(int stackSize, const Class &object, void (Class::*fn)(Param1, Param2, Param3, Param4) const, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) { return new StoredConstMemberFunctionCall4(stackSize, fn, object, arg1, arg2, arg3, arg4); } template Coroutine *build(int stackSize, const Class &object, void (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 StoredConstMemberFunctionCall5(stackSize, fn, object, arg1, arg2, arg3, arg4, arg5); } template Coroutine* build(int stackSize, Class *object, void (Class::*fn)()) { return new StoredMemberFunctionPointerCall0(stackSize, fn, object); } template Coroutine* build(int stackSize, Class *object, void (Class::*fn)(Param1), const Arg1 &arg1) { return new StoredMemberFunctionPointerCall1(stackSize, fn, object, arg1); } template Coroutine* build(int stackSize, Class *object, void (Class::*fn)(Param1, Param2), const Arg1 &arg1, const Arg2 &arg2) { return new StoredMemberFunctionPointerCall2(stackSize, fn, object, arg1, arg2); } template Coroutine* build(int stackSize, Class *object, void (Class::*fn)(Param1, Param2, Param3), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) { return new StoredMemberFunctionPointerCall3(stackSize, fn, object, arg1, arg2, arg3); } template Coroutine* build(int stackSize, Class *object, void (Class::*fn)(Param1, Param2, Param3, Param4), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) { return new StoredMemberFunctionPointerCall4(stackSize, fn, object, arg1, arg2, arg3, arg4); } template Coroutine* build(int stackSize, Class *object, void (Class::*fn)(Param1, Param2, Param3, Param4, Param5), const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) { return new StoredMemberFunctionPointerCall5(stackSize, fn, object, arg1, arg2, arg3, arg4, arg5); } template Coroutine* build(int stackSize, const Class *object, void (Class::*fn)() const) { return new StoredConstMemberFunctionPointerCall0(stackSize, fn, object); } template Coroutine* build(int stackSize, const Class *object, void (Class::*fn)(Param1) const, const Arg1 &arg1) { return new StoredConstMemberFunctionPointerCall1(stackSize, fn, object, arg1); } template Coroutine* build(int stackSize, const Class *object, void (Class::*fn)(Param1, Param2) const, const Arg1 &arg1, const Arg2 &arg2) { return new StoredConstMemberFunctionPointerCall2(stackSize, fn, object, arg1, arg2); } template Coroutine* build(int stackSize, const Class *object, void (Class::*fn)(Param1, Param2, Param3) const, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) { return new StoredConstMemberFunctionPointerCall3(stackSize, fn, object, arg1, arg2, arg3); } template Coroutine* build(int stackSize, const Class *object, void (Class::*fn)(Param1, Param2, Param3, Param4) const, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) { return new StoredConstMemberFunctionPointerCall4(stackSize, fn, object, arg1, arg2, arg3, arg4); } template Coroutine* build(int stackSize, const Class *object, void (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 StoredConstMemberFunctionPointerCall5(stackSize, fn, object, arg1, arg2, arg3, arg4, arg5); } #endif // qdoc #endif