Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#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 |
Definition at line 263 of file qfuture.h.
References QFuture< T >::const_iterator.
|
inline |
Definition at line 266 of file qfuture.h.
References QFuture< T >::const_iterator.
|
inline |
Definition at line 272 of file qfuture.h.
References QFuture< T >::const_iterator.
|
inline |
Definition at line 269 of file qfuture.h.
References QFuture< T >::const_iterator.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
QFuture< T > QFuture< T >::onCanceled | ( | Function && | handler | ) |
Definition at line 394 of file qfuture.h.
References create(), and QFutureInterfaceBase::Pending.
QFuture< T > QFuture< T >::onCanceled | ( | QObject * | context, |
Function && | handler ) |
Definition at line 404 of file qfuture.h.
References context, create(), and QFutureInterfaceBase::Pending.
QFuture< T > QFuture< T >::onFailed | ( | Function && | handler | ) |
Definition at line 372 of file qfuture.h.
References create(), and QFutureInterfaceBase::Pending.
QFuture< T > QFuture< T >::onFailed | ( | QObject * | context, |
Function && | handler ) |
Definition at line 382 of file qfuture.h.
References context, create(), and QFutureInterfaceBase::Pending.
|
inline |
|
inline |
|
inline |
Definition at line 309 of file qfuture.h.
References d.
Referenced by QtPrivate::fulfillPromise().
|
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 |
Definition at line 117 of file qfuture.h.
Referenced by QtConcurrent::blockingFilteredReduced(), QtConcurrent::blockingFilteredReduced(), QtConcurrent::blockingFilteredReduced(), QtConcurrent::blockingFilteredReduced(), QtConcurrent::blockingFilteredReduced(), QtConcurrent::blockingFilteredReduced(), QtConcurrent::blockingFilteredReduced(), QtConcurrent::blockingFilteredReduced(), QtConcurrent::blockingMappedReduced(), QtConcurrent::blockingMappedReduced(), QtConcurrent::blockingMappedReduced(), QtConcurrent::blockingMappedReduced(), QtConcurrent::blockingMappedReduced(), QtConcurrent::blockingMappedReduced(), QtConcurrent::blockingMappedReduced(), QtConcurrent::blockingMappedReduced(), and QtPrivate::fulfillPromise().
QFuture< typename QFuture< T >::template ResultType< Function > > QFuture< T >::then | ( | Function && | function | ) |
Definition at line 331 of file qfuture.h.
References 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 360 of file qfuture.h.
References context, create(), 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 339 of file qfuture.h.
References create(), 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 349 of file qfuture.h.
References create(), QFutureInterfaceBase::Pending, and pool.
Definition at line 414 of file qfuture.h.
References QtPrivate::UnwrapHandler::unwrapImpl().
Definition at line 102 of file qfuture.h.
Referenced by QFFmpegMediaPlayer::~QFFmpegMediaPlayer(), QtConcurrent::blockingFilter(), QtConcurrent::blockingFilter(), QtConcurrent::blockingMap(), QtConcurrent::blockingMap(), QtConcurrent::blockingMap(), QtConcurrent::blockingMap(), and QFFmpegMediaPlayer::setMedia().
|
friend |
Definition at line 259 of file qfuture.h.
Referenced by QFuture< T >::begin(), QFuture< T >::constBegin(), QFuture< T >::constEnd(), and QFuture< T >::end().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |