![]() |
Qt 6.x
The Qt SDK
|
#include <qpromise.h>
Collaboration diagram for QPromise< T >:Public Member Functions | |
| QPromise ()=default | |
| QPromise (QPromise< T > &&other)=default | |
| QPromise (const QFutureInterface< T > &other) | |
| QPromise (QFutureInterface< T > &&other) noexcept | |
| ~QPromise () | |
| QFuture< T > | future () const |
| template<typename... Args, std::enable_if_t< std::is_constructible_v< T, Args... >, bool > = true> | |
| bool | emplaceResultAt (int index, Args &&...args) |
| template<typename... Args, std::enable_if_t< std::is_constructible_v< T, Args... >, bool > = true> | |
| bool | emplaceResult (Args &&...args) |
| template<typename U = T, typename = QtPrivate::EnableIfSameOrConvertible<U, T>> | |
| bool | addResult (U &&result, int index=-1) |
| bool | addResults (const QList< T > &result) |
| void | setException (const QException &e) |
| void | setException (const std::exception_ptr &e) |
| void | start () |
| void | finish () |
| void | suspendIfRequested () |
| bool | isCanceled () const |
| void | setProgressRange (int minimum, int maximum) |
| void | setProgressValue (int progressValue) |
| void | setProgressValueAndText (int progressValue, const QString &progressText) |
| void | swap (QPromise< T > &other) noexcept |
Definition at line 24 of file qpromise.h.
|
default |
|
default |
|
inline |
Definition at line 33 of file qpromise.h.
|
inlinenoexcept |
Definition at line 34 of file qpromise.h.
Definition at line 36 of file qpromise.h.
References QFutureInterfaceBase::Finished.
|
inline |
Definition at line 60 of file qpromise.h.
Referenced by aFunction(), cancel(), QtPrivate::WhenAllContext< ResultFutures >::checkForCompletion(), QtPrivate::WhenAnyContext< ResultType >::checkForCompletion(), QtPrivate::fulfillPromise(), QtPrivate::fulfillPromise(), helloWorldFunction(), increment(), and QQmlXmlListModelQueryRunnable::run().
Here is the caller graph for this function:Definition at line 64 of file qpromise.h.
|
inline |
Definition at line 55 of file qpromise.h.
References args.
|
inline |
Definition at line 50 of file qpromise.h.
References args.
Definition at line 75 of file qpromise.h.
Referenced by QtPrivate::WhenAllContext< ResultFutures >::checkForCompletion(), QtPrivate::WhenAnyContext< ResultType >::checkForCompletion(), and QQmlXmlListModelQueryRunnable::run().
Here is the caller graph for this function:Definition at line 48 of file qpromise.h.
Referenced by QQmlXmlListModelQueryRunnable::future().
Here is the caller graph for this function:
|
inline |
Definition at line 79 of file qpromise.h.
Referenced by aFunction(), and QQmlXmlListModelQueryRunnable::run().
Here is the caller graph for this function:
|
inline |
Definition at line 67 of file qpromise.h.
References e.
Definition at line 71 of file qpromise.h.
References e.
Definition at line 82 of file qpromise.h.
Referenced by cancel().
Here is the caller graph for this function:Definition at line 83 of file qpromise.h.
Referenced by cancel().
Here is the caller graph for this function:
|
inline |
Definition at line 84 of file qpromise.h.
Definition at line 74 of file qpromise.h.
Referenced by QQmlXmlListModelQueryRunnable::run().
Here is the caller graph for this function:Definition at line 77 of file qpromise.h.
Referenced by aFunction().
Here is the caller graph for this function:Definition at line 89 of file qpromise.h.
References other().
Here is the call graph for this function: