QtCore/qtconcurrentfunctionwrappers.h Source File
Go to the documentation of this file.
42 #ifndef QTCONCURRENT_FUNCTIONWRAPPERS_H
43 #define QTCONCURRENT_FUNCTIONWRAPPERS_H
47 #ifndef QT_NO_CONCURRENT
65 :functionPointer(_functionPointer) { }
69 return functionPointer();
75 template <
typename T,
typename U>
82 :functionPointer(_functionPointer) { }
86 return functionPointer(u);
93 template <
typename T,
typename U,
typename V>
100 :functionPointer(_functionPointer) { }
104 return functionPointer(u, v);
110 template <
typename T,
typename C>
117 :functionPointer(_functionPointer) { }
121 return (c.*functionPointer)();
127 template <
typename T,
typename C,
typename U>
135 : functionPointer(_functionPointer)
140 return (c.*functionPointer)(u);
147 template <
typename T,
typename C>
154 :functionPointer(_functionPointer) { }
158 return (c.*functionPointer)();
168 template <
typename T>
174 template <
typename T,
typename U>
180 template <
typename T,
typename C>
186 template <
typename T,
typename C,
typename U>
192 template <
typename T,
typename C>
202 template <
class C,
class U>
205 return c.push_back(u);
208 #ifdef Q_COMPILER_RVALUE_REFS
209 template <
class C,
class U>
212 return c.push_back(u);
217 template <typename Functor, bool foo = HasResultType<Functor>::Value>
219 template <
typename Functor>
225 template <
class U,
class V>
231 template <
class T,
class C,
class U>
237 template <
class InputSequence,
class MapFunctor>
243 template <
class U,
class V>
249 template <
class T,
class C>
255 #ifndef QT_NO_TEMPLATE_TEMPLATE_PARAMETERS
257 template <
template <
typename>
class InputSequence,
typename MapFunctor,
typename T>
260 typedef InputSequence<typename LazyResultType<MapFunctor>::Type>
ResultType;
263 template <
template <
typename>
class InputSequence,
class T,
class U,
class V>
269 template <
template <
typename>
class InputSequence,
class T,
class U,
class C>
275 #endif // QT_NO_TEMPLATE_TEMPLATE_PARAMETER
277 template <
class MapFunctor>
283 template <
class U,
class V>
289 template <
class U,
class C>
302 #endif // QT_NO_CONCURRENT
ConstMemberFunctionWrapper(FunctionPointerType _functionPointer)
T(* FunctionPointerType)(U u, V v)
T(C::* FunctionPointerType)()
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
T(* FunctionPointerType)()
T operator()(const C &c) const
Functor::result_type Type
#define QT_BEGIN_NAMESPACE
MemberFunctionWrapper(FunctionPointerType _functionPointer)
FunctionWrapper1(FunctionPointerType _functionPointer)
T(C::* FunctionPointerType)(U)
FunctionWrapper0(FunctionPointerType _functionPointer)
void operator()(C &c, const U &u) const
FunctionWrapper2(FunctionPointerType _functionPointer)
const T & createFunctionWrapper(const T &t)
T(C::* FunctionPointerType)() const
QList< typename LazyResultType< MapFunctor >::Type > ResultType
T(* FunctionPointerType)(U u)
MemberFunctionWrapper1(FunctionPointerType _functionPointer)
LazyResultType< MapFunctor >::Type ResultType