61 class QFutureWatcher<
void>;
79 inline QFuture &operator=(
const QFuture &other);
80 bool operator==(
const QFuture &other)
const {
return (d == other.
d); }
81 bool operator!=(
const QFuture &other)
const {
return (d != other.
d); }
86 void setPaused(
bool paused) { d.setPaused(paused); }
88 void pause() { setPaused(
true); }
103 inline T result()
const;
104 inline T resultAt(
int index)
const;
105 bool isResultReadyAt(
int resultIndex)
const {
return d.isResultReadyAt(resultIndex); }
107 operator T()
const {
return result(); }
123 { future = o.future;
index = o.index;
return *
this; }
129 if (
index == -1 && other.index == -1)
131 if (other.index == -1)
132 return (future->isRunning() || (
index < future->resultCount()));
133 return (
index != other.index);
146 QFuture
const * future;
158 friend class QFutureWatcher<T>;
164 template <
typename T>
171 template <
typename T>
175 return d.resultReference(0);
178 template <
typename T>
181 d.waitForResult(index);
182 return d.resultReference(index);
185 template <
typename T>
213 #if !defined(Q_CC_XLC)
214 template <
typename T>
219 template <
typename T>
267 template <
typename T>
276 #endif // QT_NO_CONCURRENT
const T & operator*() const
GLdouble GLdouble GLdouble r
QFuture< void > qToVoidFuture(const QFuture< T > &future)
const_iterator operator++(int)
void setPaused(bool paused)
QFuture(const QFuture< T > &other)
int progressMinimum() const
const_iterator begin() const
QFuture< T > future() const
const_iterator operator-(int j) const
QFuture(QFutureInterfaceBase *p)
void setPaused(bool paused)
bool operator!=(const const_iterator &other) const
QFuture(const QFuture &other)
int progressMinimum() const
QFuture(QFutureInterface< T > *p)
const_iterator operator+(int j) const
std::bidirectional_iterator_tag iterator_category
QString progressText() const
const_iterator(const const_iterator &o)
int progressMaximum() const
const_iterator & operator=(const const_iterator &o)
int progressValue() const
#define QT_BEGIN_NAMESPACE
#define Q_DECLARE_SEQUENTIAL_ITERATOR(C)
const_iterator & operator++()
void setPaused(bool paused)
const_iterator & operator-=(int j)
int progressValue() const
const_iterator operator--(int)
QString progressText() const
bool operator==(const const_iterator &o) const
const_iterator & operator--()
bool operator!=(const QByteArray &a1, const QByteArray &a2)
QFuture< void > & operator=(const QFuture< T > &other)
bool operator!=(const QFuture &other) const
bool isResultReadyAt(int resultIndex) const
const_iterator constBegin() const
const_iterator constEnd() const
QList< T > results() const
QFuture & operator=(const QFuture &other)
const_iterator & operator+=(int j)
T resultAt(int index) const
const_iterator(QFuture const *const _future, int _index)
bool operator==(const QFuture &other) const
QFuture(const QFuture &other)
bool operator==(const QFuture &other) const
const_iterator ConstIterator
const_iterator end() const
bool operator!=(const QFuture &other) const
int progressMaximum() const
const T * operator->() const