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>.
Loading...
Searching...
No Matches
QFutureSynchronizer< T > Class Template Reference

#include <qfuturesynchronizer.h>

+ Collaboration diagram for QFutureSynchronizer< T >:

Public Member Functions

Q_NODISCARD_CTOR QFutureSynchronizer ()
 
 QFutureSynchronizer (QFuture< T > future)
 
 ~QFutureSynchronizer ()
 
void setFuture (QFuture< T > future)
 
void addFuture (QFuture< T > future)
 
void waitForFinished ()
 
void clearFutures ()
 
QList< QFuture< T > > futures () const
 
void setCancelOnWait (bool enabled)
 
bool cancelOnWait () const
 

Protected Attributes

QList< QFuture< T > > m_futures
 
bool m_cancelOnWait
 

Detailed Description

template<typename T>
class QFutureSynchronizer< T >

Definition at line 15 of file qfuturesynchronizer.h.

Constructor & Destructor Documentation

◆ QFutureSynchronizer() [1/2]

template<typename T >
Q_NODISCARD_CTOR QFutureSynchronizer< T >::QFutureSynchronizer ( )
inline

Definition at line 20 of file qfuturesynchronizer.h.

◆ QFutureSynchronizer() [2/2]

template<typename T >
QFutureSynchronizer< T >::QFutureSynchronizer ( QFuture< T > future)
inlineexplicit

Definition at line 22 of file qfuturesynchronizer.h.

References QFutureSynchronizer< T >::addFuture(), and future.

+ Here is the call graph for this function:

◆ ~QFutureSynchronizer()

template<typename T >
QFutureSynchronizer< T >::~QFutureSynchronizer ( )
inline

Definition at line 25 of file qfuturesynchronizer.h.

References QFutureSynchronizer< T >::waitForFinished().

+ Here is the call graph for this function:

Member Function Documentation

◆ addFuture()

template<typename T >
void QFutureSynchronizer< T >::addFuture ( QFuture< T > future)
inline

Definition at line 34 of file qfuturesynchronizer.h.

References QList< T >::append(), future, and QFutureSynchronizer< T >::m_futures.

Referenced by QFutureSynchronizer< T >::QFutureSynchronizer(), and QFutureSynchronizer< T >::setFuture().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cancelOnWait()

template<typename T >
bool QFutureSynchronizer< T >::cancelOnWait ( ) const
inline

Definition at line 67 of file qfuturesynchronizer.h.

References QFutureSynchronizer< T >::m_cancelOnWait.

◆ clearFutures()

template<typename T >
void QFutureSynchronizer< T >::clearFutures ( )
inline

Definition at line 52 of file qfuturesynchronizer.h.

References QList< T >::clear(), and QFutureSynchronizer< T >::m_futures.

+ Here is the call graph for this function:

◆ futures()

template<typename T >
QList< QFuture< T > > QFutureSynchronizer< T >::futures ( ) const
inline

Definition at line 57 of file qfuturesynchronizer.h.

References QFutureSynchronizer< T >::m_futures.

◆ setCancelOnWait()

template<typename T >
void QFutureSynchronizer< T >::setCancelOnWait ( bool enabled)
inline

Definition at line 62 of file qfuturesynchronizer.h.

References enabled, and QFutureSynchronizer< T >::m_cancelOnWait.

◆ setFuture()

template<typename T >
void QFutureSynchronizer< T >::setFuture ( QFuture< T > future)
inline

Definition at line 27 of file qfuturesynchronizer.h.

References QFutureSynchronizer< T >::addFuture(), QList< T >::clear(), future, QFutureSynchronizer< T >::m_futures, and QFutureSynchronizer< T >::waitForFinished().

+ Here is the call graph for this function:

◆ waitForFinished()

template<typename T >
void QFutureSynchronizer< T >::waitForFinished ( )
inline

Definition at line 39 of file qfuturesynchronizer.h.

References i, QFutureSynchronizer< T >::m_cancelOnWait, QFutureSynchronizer< T >::m_futures, and QList< T >::size().

Referenced by QFutureSynchronizer< T >::~QFutureSynchronizer(), and QFutureSynchronizer< T >::setFuture().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_cancelOnWait

template<typename T >
bool QFutureSynchronizer< T >::m_cancelOnWait
protected

◆ m_futures


The documentation for this class was generated from the following file: