QtCore/qtconcurrentresultstore.h Source File
Go to the documentation of this file.
42 #ifndef QTCONCURRENT_RESULTSTORE_H
43 #define QTCONCURRENT_RESULTSTORE_H
87 int vectorIndex()
const;
88 int resultIndex()
const;
91 int batchSize()
const;
92 void batchedAdvance();
95 bool isVector()
const;
96 bool canIncrementVectorIndex()
const;
102 template <
typename T>
119 return reinterpret_cast<const T *
>(
mapIterator.value().result);
127 void setFilterMode(
bool enable);
128 bool filterMode()
const;
129 int addResult(
int index,
const void *result);
130 int addResults(
int index,
const void *results,
int vectorSize,
int logicalCount);
133 bool hasNextResult()
const;
135 bool contains(
int index)
const;
140 int insertResultItem(
int index,
ResultItem &resultItem);
141 void insertResultItemIfValid(
int index,
ResultItem &resultItem);
142 void syncPendingResults();
143 void syncResultCount();
144 int updateInsertIndex(
int index,
int _count);
156 template <
typename T>
215 while (mapIterator !=
m_results.constEnd()) {
216 if (mapIterator.
value().isVector())
217 delete reinterpret_cast<const QVector<T> *
>(mapIterator.
value().result);
219 delete reinterpret_cast<const T *
>(mapIterator.
value().result);
240 #endif // QT_NO_CONCURRENT
const T * pointer() const
ResultIterator(const ResultIteratorBase &base)
int addResult(int index, const T *result)
ResultItem(const void *_result)
int addCanceledResult(int index)
int addCanceledResults(int index, int _count)
bool operator==(const Attribute &cA, const AttributeInstance< type > &cB)
This operator compares the two attributes and NOT their values.
#define QT_BEGIN_NAMESPACE
virtual ~ResultStoreBase()
ResultItem(const void *_result, int _count)
int addResults(int index, const QVector< T > *results)
QMap< int, ResultItem > pendingResults
ResultIterator< T > end() const
GLuint GLuint GLsizei count
bool operator!=(const QByteArray &a1, const QByteArray &a2)
ResultIteratorBase end() const
int count(const T &t) const
ResultIterator< T > resultAt(int index) const
QMap< int, ResultItem >::const_iterator mapIterator
ResultIterator< T > begin() const
QMap< int, ResultItem > m_results
int addResult(int index, const void *result)
ResultIteratorBase begin() const
ResultStore(const ResultStoreBase &base)
int addResults(int index, const void *results, int vectorSize, int logicalCount)
ResultIteratorBase resultAt(int index) const
int addResults(int index, const QVector< T > *results, int totalCount)