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 <qfutureinterface.h>
Static Public Member Functions | |
static QFutureInterface | canceledResult () |
Static Public Member Functions inherited from QFutureInterfaceBase | |
template<typename T > | |
static QFutureInterfaceBase | get (const QFuture< T > &future) |
Additional Inherited Members | |
Public Types inherited from QFutureInterfaceBase | |
enum | State { NoState = 0x00 , Running = 0x01 , Started = 0x02 , Finished = 0x04 , Canceled = 0x08 , Suspending = 0x10 , Suspended = 0x20 , Throttled = 0x40 , Pending = 0x80 } |
Protected Types inherited from QFutureInterfaceBase | |
enum class | CancelMode { CancelOnly , CancelAndFinish } |
Protected Member Functions inherited from QFutureInterfaceBase | |
bool | refT () const noexcept |
bool | derefT () const noexcept |
void | reset () |
void | rethrowPossibleException () |
void | setContinuation (std::function< void(const QFutureInterfaceBase &)> func) |
void | setContinuation (std::function< void(const QFutureInterfaceBase &)> func, QFutureInterfaceBasePrivate *continuationFutureData) |
void | cleanContinuation () |
void | runContinuation () const |
void | setLaunchAsync (bool value) |
bool | launchAsync () const |
bool | isRunningOrPending () const |
void | cancel (CancelMode mode) |
Definition at line 212 of file qfutureinterface.h.
|
inline |
Definition at line 215 of file qfutureinterface.h.
References QFutureInterfaceBase::refT().
Referenced by QFutureInterface< T >::canceledResult().
|
inline |
Definition at line 220 of file qfutureinterface.h.
References QFutureInterfaceBase::refT().
|
inline |
Definition at line 225 of file qfutureinterface.h.
References QFutureInterfaceBase::refT().
|
inlinenoexcept |
Definition at line 226 of file qfutureinterface.h.
References QFutureInterfaceBase::refT().
|
default |
|
inline |
Definition at line 236 of file qfutureinterface.h.
References QFutureInterfaceBase::derefT(), QFutureInterfaceBase::hasException(), and QFutureInterfaceBase::resultStoreBase().
|
inlinestatic |
Definition at line 242 of file qfutureinterface.h.
References QFutureInterface< T >::QFutureInterface(), QFutureInterfaceBase::Canceled, QFutureInterfaceBase::Finished, and QFutureInterfaceBase::Started.
|
inline |
|
inline |
Definition at line 227 of file qfutureinterface.h.
References copy(), other(), and QFutureInterfaceBase::swap().
|
inline |
Definition at line 315 of file qfutureinterface.h.
References args, QtPrivate::ResultStoreBase::count(), QtPrivate::ResultStoreBase::emplaceResult(), QtPrivate::ResultStoreBase::filterMode(), mutex, and Q_ASSERT.
|
inline |
Definition at line 333 of file qfutureinterface.h.
Referenced by QtConcurrent::StoredFunctionCall< Function, Args >::runFunctor().
|
inline |
Definition at line 280 of file qfutureinterface.h.
References QFutureInterfaceBase::hasException(), QFutureInterfaceBase::reportException(), and QFutureInterfaceBase::resultStoreBase().
|
inline |
Definition at line 272 of file qfutureinterface.h.
References QFutureInterfaceBase::hasException(), QFutureInterfaceBase::reportException(), and QFutureInterfaceBase::resultStoreBase().
|
inline |
Definition at line 255 of file qfutureinterface.h.
References QFutureInterfaceBase::reportFinished(), and QFutureInterfaceBase::runContinuation().
|
inline |
Definition at line 373 of file qfutureinterface.h.
References reportResult().
|
inline |
Definition at line 345 of file qfutureinterface.h.
References reportResult().
|
inline |
Definition at line 292 of file qfutureinterface.h.
References QtPrivate::ResultStoreBase::addResult(), QtPrivate::ResultStoreBase::count(), QtPrivate::ResultStoreBase::filterMode(), mutex, and Q_ASSERT.
Referenced by QtConcurrent::StoredFunctionCall< Function, Args >::runFunctor().
|
inline |
Definition at line 339 of file qfutureinterface.h.
|
inline |
Definition at line 351 of file qfutureinterface.h.
|
inline |
Definition at line 392 of file qfutureinterface.h.
|
inline |
Definition at line 383 of file qfutureinterface.h.
|
inline |
Definition at line 401 of file qfutureinterface.h.
References QSet< T >::begin(), it, mutex, and QFutureInterfaceBase::waitForResult().
T QFutureInterface< T >::takeResult | ( | ) |
Definition at line 423 of file qfutureinterface.h.
References mutex, position(), Q_ASSERT, and ret.