![]() |
Qt 6.x
The Qt SDK
|
#include <qfuture.h>
Classes | |
class | const_iterator |
Public Types | |
template<class Function > | |
using | ResultType = typename QtPrivate::ResultTypeHelper< Function, T >::ResultType |
typedef const_iterator | ConstIterator |
Public Member Functions | |
QFuture () | |
template<typename U = T, typename = QtPrivate::EnableForNonVoid<U>> | |
QFuture (QFutureInterface< T > *p) | |
template<typename U = T, typename = QtPrivate::EnableForVoid<U>> | |
QFuture (QFutureInterfaceBase *p) | |
template<typename U , typename V = T, typename = QtPrivate::EnableForVoid<V>> | |
QFuture (const QFuture< U > &other) | |
template<typename U , typename V = T, typename = QtPrivate::EnableForVoid<V>> | |
QFuture< void > & | operator= (const QFuture< U > &other) |
void | cancel () |
bool | isCanceled () const |
bool | isSuspending () const |
bool | isSuspended () const |
void | setSuspended (bool suspend) |
void | suspend () |
void | resume () |
void | toggleSuspended () |
bool | isStarted () const |
bool | isFinished () const |
bool | isRunning () const |
int | resultCount () const |
int | progressValue () const |
int | progressMinimum () const |
int | progressMaximum () const |
QString | progressText () const |
void | waitForFinished () |
template<typename U = T, typename = QtPrivate::EnableForNonVoid<U>> | |
T | result () const |
template<typename U = T, typename = QtPrivate::EnableForNonVoid<U>> | |
T | resultAt (int index) const |
template<typename U = T, typename = QtPrivate::EnableForNonVoid<U>> | |
bool | isResultReadyAt (int resultIndex) const |
template<typename U = T, typename = QtPrivate::EnableForNonVoid<U>> | |
QList< T > | results () const |
template<typename U = T, typename = QtPrivate::EnableForNonVoid<U>> | |
T | takeResult () |
bool | isValid () const |
template<class Function > | |
QFuture< ResultType< Function > > | then (Function &&function) |
template<class Function > | |
QFuture< ResultType< Function > > | then (QtFuture::Launch policy, Function &&function) |
template<class Function > | |
QFuture< ResultType< Function > > | then (QThreadPool *pool, Function &&function) |
template<class Function > | |
QFuture< ResultType< Function > > | then (QObject *context, Function &&function) |
template<class Function , typename = std::enable_if_t<!QtPrivate::ArgResolver<Function>::HasExtraArgs>> | |
QFuture< T > | onFailed (Function &&handler) |
template<class Function , typename = std::enable_if_t<!QtPrivate::ArgResolver<Function>::HasExtraArgs>> | |
QFuture< T > | onFailed (QObject *context, Function &&handler) |
template<class Function , typename = std::enable_if_t<std::is_invocable_r_v<T, Function>>> | |
QFuture< T > | onCanceled (Function &&handler) |
template<class Function , typename = std::enable_if_t<std::is_invocable_r_v<T, Function>>> | |
QFuture< T > | onCanceled (QObject *context, Function &&handler) |
template<class U = T, typename = std::enable_if_t<QtPrivate::isQFutureV<U>>> | |
auto | unwrap () |
template<class U = T, typename = QtPrivate::EnableForNonVoid<U>> | |
const_iterator | begin () const |
template<class U = T, typename = QtPrivate::EnableForNonVoid<U>> | |
const_iterator | constBegin () const |
template<class U = T, typename = QtPrivate::EnableForNonVoid<U>> | |
const_iterator | end () const |
template<class U = T, typename = QtPrivate::EnableForNonVoid<U>> | |
const_iterator | constEnd () const |
template<class Function > | |
QFuture< typename QFuture< T >::template ResultType< Function > > | then (Function &&function) |
template<class Function > | |
QFuture< typename QFuture< T >::template ResultType< Function > > | then (QtFuture::Launch policy, Function &&function) |
template<class Function > | |
QFuture< typename QFuture< T >::template ResultType< Function > > | then (QThreadPool *pool, Function &&function) |
template<class Function > | |
QFuture< typename QFuture< T >::template ResultType< Function > > | then (QObject *context, Function &&function) |
Friends | |
class | const_iterator |
class | QFutureWatcher< T > |
template<class U > | |
class | QFuture |
class | QFutureInterfaceBase |
template<class Function , class ResultType , class ParentResultType > | |
class | QtPrivate::Continuation |
template<class Function , class ResultType > | |
class | QtPrivate::CanceledHandler |
template<class Function , class ResultType > | |
class | QtPrivate::FailureHandler |
template<typename ResultType > | |
struct | QtPrivate::WhenAnyContext |
struct | QtPrivate::UnwrapHandler |
typedef const_iterator QFuture< T >::ConstIterator |
using QFuture< T >::ResultType = typename QtPrivate::ResultTypeHelper<Function, T>::ResultType |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 65 of file qfuture.h.
Referenced by QtPrivate::CanceledHandler< Function, ResultType >::run().
|
inline |
Definition at line 94 of file qfuture.h.
Referenced by QtPrivate::UnwrapHandler::unwrapImpl().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
QFuture< T > QFuture< T >::onCanceled | ( | Function && | handler | ) |
Definition at line 390 of file qfuture.h.
References create(), QFutureInterface< T >::future(), and QFutureInterfaceBase::Pending.
QFuture< T > QFuture< T >::onCanceled | ( | QObject * | context, |
Function && | handler | ||
) |
Definition at line 400 of file qfuture.h.
References context, create(), QFutureInterface< T >::future(), and QFutureInterfaceBase::Pending.
QFuture< T > QFuture< T >::onFailed | ( | Function && | handler | ) |
Definition at line 368 of file qfuture.h.
References create(), QFutureInterface< T >::future(), and QFutureInterfaceBase::Pending.
QFuture< T > QFuture< T >::onFailed | ( | QObject * | context, |
Function && | handler | ||
) |
Definition at line 378 of file qfuture.h.
References context, create(), QFutureInterface< T >::future(), and QFutureInterfaceBase::Pending.
|
inline |
|
inline |
|
inline |
Definition at line 305 of file qfuture.h.
References d.
Referenced by QtPrivate::UnwrapHandler::unwrapImpl().
|
inline |
|
inline |
Definition at line 90 of file qfuture.h.
References QFuture< T >::setSuspended().
Definition at line 88 of file qfuture.h.
References QFuture< T >::suspend().
Referenced by QFuture< T >::resume(), and QFuture< T >::suspend().
Definition at line 89 of file qfuture.h.
References QFuture< T >::setSuspended().
Referenced by QFuture< T >::setSuspended().
|
inline |
QFuture< typename QFuture< T >::template ResultType< Function > > QFuture< T >::then | ( | Function && | function | ) |
Definition at line 327 of file qfuture.h.
References function, and QtFuture::Sync.
QFuture< ResultType< Function > > QFuture< T >::then | ( | QObject * | context, |
Function && | function | ||
) |
QFuture< typename QFuture< T >::template ResultType< Function > > QFuture< T >::then | ( | QObject * | context, |
Function && | function | ||
) |
Definition at line 356 of file qfuture.h.
References context, create(), function, QFutureInterface< T >::future(), and QFutureInterfaceBase::Pending.
QFuture< ResultType< Function > > QFuture< T >::then | ( | QtFuture::Launch | policy, |
Function && | function | ||
) |
QFuture< typename QFuture< T >::template ResultType< Function > > QFuture< T >::then | ( | QtFuture::Launch | policy, |
Function && | function | ||
) |
Definition at line 335 of file qfuture.h.
References create(), function, QFutureInterface< T >::future(), QFutureInterfaceBase::Pending, and policy.
QFuture< ResultType< Function > > QFuture< T >::then | ( | QThreadPool * | pool, |
Function && | function | ||
) |
QFuture< typename QFuture< T >::template ResultType< Function > > QFuture< T >::then | ( | QThreadPool * | pool, |
Function && | function | ||
) |
Definition at line 345 of file qfuture.h.
References create(), function, QFutureInterface< T >::future(), QFutureInterfaceBase::Pending, and pool.
Definition at line 410 of file qfuture.h.
References QtPrivate::UnwrapHandler::unwrapImpl().
Referenced by if().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |