40 #ifndef QTCONCURRENT_FUNCTIONWRAPPERS_H    41 #define QTCONCURRENT_FUNCTIONWRAPPERS_H    43 #include <QtConcurrent/qtconcurrentcompilertest.h>    44 #include <QtCore/QStringList>    46 #if !defined(QT_NO_CONCURRENT) || defined(Q_CLANG_QDOC)    59     :functionPointer(_functionPointer) { }
    63         return functionPointer();
    69 template <
typename T, 
typename U>
    76     :functionPointer(_functionPointer) { }
    80         return functionPointer(u);
    87 template <
typename T, 
typename U, 
typename V>
    94     :functionPointer(_functionPointer) { }
    98         return functionPointer(u, v);
   104 template <
typename T, 
typename C>
   111     :functionPointer(_functionPointer) { }
   115         return (c.*functionPointer)();
   121 template <
typename T, 
typename C, 
typename U>
   129         : functionPointer(_functionPointer)
   134         return (c.*functionPointer)(u);
   141 template <
typename T, 
typename C>
   148     :functionPointer(_functionPointer) { }
   152         return (c.*functionPointer)();
   162 template <
typename T>
   168 template <
typename T, 
typename U>
   174 template <
typename T, 
typename C>
   180 template <
typename T, 
typename C, 
typename U>
   186 template <
typename T, 
typename C>
   192 #if defined(__cpp_noexcept_function_type) && __cpp_noexcept_function_type >= 201510   193 template <
typename T, 
typename U>
   199 template <
typename T, 
typename C>
   205 template <
typename T, 
typename C, 
typename U>
   211 template <
typename T, 
typename C>
   222     template <
class C, 
class U>
   225         return c.push_back(u);
   228 #ifdef Q_COMPILER_RVALUE_REFS   229     template <
class C, 
class U>
   232         return c.push_back(u);
   237 template <typename Functor, bool foo = HasResultType<Functor>::Value>
   239 template <
typename Functor>
   245 template <
class U, 
class V>
   251 template <
class T, 
class C, 
class U>
   257 #if defined(__cpp_noexcept_function_type) && __cpp_noexcept_function_type >= 201510   258 template <
class U, 
class V>
   264 template <
class T, 
class C, 
class U>
   271 template <
class InputSequence, 
class MapFunctor>
   277 template <
class U, 
class V>
   283 template <
class T, 
class C>
   289 #if defined(__cpp_noexcept_function_type) && __cpp_noexcept_function_type >= 201510   290 template <
class U, 
class V>
   296 template <
class T, 
class C>
   303 #ifndef QT_NO_TEMPLATE_TEMPLATE_PARAMETERS   305 template <
template <
typename> 
class InputSequence, 
typename MapFunctor, 
typename T>
   308     typedef InputSequence<typename LazyResultType<MapFunctor>::Type> 
ResultType;
   311 template <
template <
typename> 
class InputSequence, 
class T, 
class U, 
class V>
   317 template <
template <
typename> 
class InputSequence, 
class T, 
class U, 
class C>
   323 #if defined(__cpp_noexcept_function_type) && __cpp_noexcept_function_type >= 201510   325 template <
template <
typename> 
class InputSequence, 
class T, 
class U, 
class V>
   331 template <
template <
typename> 
class InputSequence, 
class T, 
class U, 
class C>
   332 struct MapResultType<InputSequence<T>, U(C::*)() const noexcept>
   338 #endif // QT_NO_TEMPLATE_TEMPLATE_PARAMETER   340 template <
class MapFunctor>
   343     typedef QList<typename LazyResultType<MapFunctor>::Type> 
ResultType;
   346 template <
class U, 
class V>
   352 template <
class U, 
class C>
   358 #if defined(__cpp_noexcept_function_type) && __cpp_noexcept_function_type >= 201510   360 template <
class U, 
class V>
   366 template <
class U, 
class C>
   378 #endif // QT_NO_CONCURRENT T result_type
Definition: qtconcurrentfunctionwrappers.h:109
 
Definition: qtconcurrentfunctionwrappers.h:243
 
void Type
Definition: qtconcurrentfunctionwrappers.h:240
 
T(* FunctionPointerType)()
Definition: qtconcurrentfunctionwrappers.h:56
 
T result_type
Definition: qtconcurrentfunctionwrappers.h:57
 
T result_type
Definition: qtconcurrentfunctionwrappers.h:74
 
MemberFunctionWrapper(FunctionPointerType _functionPointer)
Definition: qtconcurrentfunctionwrappers.h:110
 
Definition: qtconcurrentfunctionwrappers.h:218
 
T operator()()
Definition: qtconcurrentfunctionwrappers.h:61
 
T operator()(U u, V v)
Definition: qtconcurrentfunctionwrappers.h:96
 
T operator()(U u)
Definition: qtconcurrentfunctionwrappers.h:78
 
T operator()(const C &c) const
Definition: qtconcurrentfunctionwrappers.h:150
 
T operator()(C &c, U u)
Definition: qtconcurrentfunctionwrappers.h:132
 
Definition: qtconcurrentcompilertest.h:49
 
Definition: qtconcurrentfunctionwrappers.h:272
 
T ResultType
Definition: qtconcurrentfunctionwrappers.h:286
 
Definition: qtconcurrentfunctionwrappers.h:105
 
ConstMemberFunctionWrapper(FunctionPointerType _functionPointer)
Definition: qtconcurrentfunctionwrappers.h:147
 
Definition: qtconcurrentfunctionwrappers.h:142
 
Definition: qtconcurrentfunctionwrappers.h:238
 
T result_type
Definition: qtconcurrentfunctionwrappers.h:126
 
FunctionWrapper2(FunctionPointerType _functionPointer)
Definition: qtconcurrentfunctionwrappers.h:93
 
C ResultType
Definition: qtconcurrentfunctionwrappers.h:254
 
Definition: qtconcurrentfunctionwrappers.h:88
 
QtConcurrent::ConstMemberFunctionWrapper< T, C > createFunctionWrapper(T(C::*func)() const)
Definition: qtconcurrentfunctionwrappers.h:187
 
QList< U > ResultType
Definition: qtconcurrentfunctionwrappers.h:355
 
U ResultType
Definition: qtconcurrentfunctionwrappers.h:280
 
QList< U > ResultType
Definition: qtconcurrentfunctionwrappers.h:349
 
Definition: qtconcurrentfunctionwrappers.h:70
 
Functor::result_type Type
Definition: qtconcurrentfunctionwrappers.h:238
 
U ResultType
Definition: qtconcurrentfunctionwrappers.h:248
 
The QtConcurrent namespace provides high-level APIs that make it possible to write multi-threaded pro...
Definition: qtconcurrentexception.h:51
 
void operator()(C &c, const U &u) const
Definition: qtconcurrentfunctionwrappers.h:223
 
FunctionWrapper0(FunctionPointerType _functionPointer)
Definition: qtconcurrentfunctionwrappers.h:58
 
void result_type
Definition: qtconcurrentfunctionwrappers.h:220
 
T result_type
Definition: qtconcurrentfunctionwrappers.h:146
 
T operator()(C &c)
Definition: qtconcurrentfunctionwrappers.h:113
 
QList< typename LazyResultType< MapFunctor >::Type > ResultType
Definition: qtconcurrentfunctionwrappers.h:343
 
Definition: qtconcurrentfunctionwrappers.h:122
 
Definition: qtconcurrentfunctionwrappers.h:53
 
LazyResultType< MapFunctor >::Type ResultType
Definition: qtconcurrentfunctionwrappers.h:274
 
MemberFunctionWrapper1(FunctionPointerType _functionPointer)
Definition: qtconcurrentfunctionwrappers.h:128
 
FunctionWrapper1(FunctionPointerType _functionPointer)
Definition: qtconcurrentfunctionwrappers.h:75
 
T result_type
Definition: qtconcurrentfunctionwrappers.h:92