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
QtPrivate::ResultStoreBase Class Referencefinal

#include <qresultstore.h>

+ Collaboration diagram for QtPrivate::ResultStoreBase:

Public Member Functions

 ResultStoreBase ()
 
void setFilterMode (bool enable)
 
bool filterMode () const
 
int addResult (int index, const void *result)
 
int addResults (int index, const void *results, int vectorSize, int logicalCount)
 
ResultIteratorBase begin () const
 
ResultIteratorBase end () const
 
bool hasNextResult () const
 
ResultIteratorBase resultAt (int index) const
 
bool contains (int index) const
 
int count () const
 
virtual ~ResultStoreBase ()
 
template<typename T , typename... Args>
int emplaceResult (int index, Args &&...args)
 
template<typename T >
int addResult (int index, const T *result)
 
template<typename T >
int moveResult (int index, T &&result)
 
template<typename T >
int addResults (int index, const QList< T > *results)
 
template<typename T >
int addResults (int index, const QList< T > *results, int totalCount)
 
int addCanceledResult (int index)
 
template<typename T >
int addCanceledResults (int index, int _count)
 
template<typename T >
void clear ()
 

Protected Member Functions

int insertResultItem (int index, ResultItem &resultItem)
 
void insertResultItemIfValid (int index, ResultItem &resultItem)
 
bool containsValidResultItem (int index) const
 
void syncPendingResults ()
 
void syncResultCount ()
 
int updateInsertIndex (int index, int _count)
 

Static Protected Member Functions

template<typename T >
static void clear (QMap< int, ResultItem > &store)
 

Protected Attributes

QMap< int, ResultItemm_results
 
int insertIndex
 
int resultCount
 
bool m_filterMode
 
QMap< int, ResultItempendingResults
 
int filteredResults
 

Detailed Description

Definition at line 88 of file qresultstore.h.

Constructor & Destructor Documentation

◆ ResultStoreBase()

QtPrivate::ResultStoreBase::ResultStoreBase ( )

Definition at line 116 of file qresultstore.cpp.

◆ ~ResultStoreBase()

QtPrivate::ResultStoreBase::~ResultStoreBase ( )
virtual

Definition at line 119 of file qresultstore.cpp.

References m_results, and Q_ASSERT.

Referenced by QFutureInterfaceBasePrivate::Data::setException().

+ Here is the caller graph for this function:

Member Function Documentation

◆ addCanceledResult()

int QtPrivate::ResultStoreBase::addCanceledResult ( int index)
inline

Definition at line 193 of file qresultstore.h.

◆ addCanceledResults()

template<typename T >
int QtPrivate::ResultStoreBase::addCanceledResults ( int index,
int _count )
inline

Definition at line 202 of file qresultstore.h.

◆ addResult() [1/2]

template<typename T >
int QtPrivate::ResultStoreBase::addResult ( int index,
const T * result )
inline

Definition at line 146 of file qresultstore.h.

◆ addResult() [2/2]

int QtPrivate::ResultStoreBase::addResult ( int index,
const void * result )

Definition at line 193 of file qresultstore.cpp.

References insertResultItem().

Referenced by QFutureInterface< T >::reportResult().

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

◆ addResults() [1/3]

template<typename T >
int QtPrivate::ResultStoreBase::addResults ( int index,
const QList< T > * results )
inline

Definition at line 166 of file qresultstore.h.

References QList< T >::empty(), results, and QList< T >::size().

+ Here is the call graph for this function:

◆ addResults() [2/3]

template<typename T >
int QtPrivate::ResultStoreBase::addResults ( int index,
const QList< T > * results,
int totalCount )
inline

Definition at line 178 of file qresultstore.h.

References QList< T >::empty(), results, and QList< T >::size().

+ Here is the call graph for this function:

◆ addResults() [3/3]

int QtPrivate::ResultStoreBase::addResults ( int index,
const void * results,
int vectorSize,
int logicalCount )

Definition at line 199 of file qresultstore.cpp.

References insertResultItem(), m_filterMode, Q_ASSERT, and results.

+ Here is the call graph for this function:

◆ begin()

ResultIteratorBase QtPrivate::ResultStoreBase::begin ( ) const

Definition at line 215 of file qresultstore.cpp.

References m_results.

Referenced by hasNextResult().

+ Here is the caller graph for this function:

◆ clear() [1/2]

template<typename T >
void QtPrivate::ResultStoreBase::clear ( )
inline

Definition at line 212 of file qresultstore.h.

◆ clear() [2/2]

template<typename T >
static void QtPrivate::ResultStoreBase::clear ( QMap< int, ResultItem > & store)
inlinestaticprotected

Definition at line 123 of file qresultstore.h.

References QMap< Key, T >::const_iterator::value().

+ Here is the call graph for this function:

◆ contains()

bool QtPrivate::ResultStoreBase::contains ( int index) const

Definition at line 235 of file qresultstore.cpp.

References end(), and resultAt().

+ Here is the call graph for this function:

◆ containsValidResultItem()

bool QtPrivate::ResultStoreBase::containsValidResultItem ( int index) const
protected

Definition at line 168 of file qresultstore.cpp.

References QtPrivate::findResult(), insertIndex, it, m_filterMode, m_results, and pendingResults.

+ Here is the call graph for this function:

◆ count()

int QtPrivate::ResultStoreBase::count ( ) const

Definition at line 240 of file qresultstore.cpp.

References resultCount.

Referenced by QFutureInterface< T >::reportAndEmplaceResult(), and QFutureInterface< T >::reportResult().

+ Here is the caller graph for this function:

◆ emplaceResult()

template<typename T , typename... Args>
int QtPrivate::ResultStoreBase::emplaceResult ( int index,
Args &&... args )
inline

Definition at line 138 of file qresultstore.h.

References args.

Referenced by QFutureInterface< T >::reportAndEmplaceResult().

+ Here is the caller graph for this function:

◆ end()

ResultIteratorBase QtPrivate::ResultStoreBase::end ( ) const

Definition at line 220 of file qresultstore.cpp.

References m_results.

Referenced by contains(), hasNextResult(), and syncResultCount().

+ Here is the caller graph for this function:

◆ filterMode()

bool QtPrivate::ResultStoreBase::filterMode ( ) const

Definition at line 130 of file qresultstore.cpp.

References m_filterMode.

Referenced by QFutureInterface< T >::reportAndEmplaceResult(), and QFutureInterface< T >::reportResult().

+ Here is the caller graph for this function:

◆ hasNextResult()

bool QtPrivate::ResultStoreBase::hasNextResult ( ) const

Definition at line 225 of file qresultstore.cpp.

References begin(), and end().

+ Here is the call graph for this function:

◆ insertResultItem()

int QtPrivate::ResultStoreBase::insertResultItem ( int index,
ResultItem & resultItem )
protected

Definition at line 154 of file qresultstore.cpp.

References filteredResults, insertIndex, insertResultItemIfValid(), m_filterMode, pendingResults, syncPendingResults(), and updateInsertIndex().

Referenced by addResult(), and addResults().

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

◆ insertResultItemIfValid()

void QtPrivate::ResultStoreBase::insertResultItemIfValid ( int index,
ResultItem & resultItem )
protected

Definition at line 144 of file qresultstore.cpp.

References filteredResults, m_results, and syncResultCount().

Referenced by insertResultItem(), and syncPendingResults().

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

◆ moveResult()

template<typename T >
int QtPrivate::ResultStoreBase::moveResult ( int index,
T && result )
inline

Definition at line 158 of file qresultstore.h.

◆ resultAt()

ResultIteratorBase QtPrivate::ResultStoreBase::resultAt ( int index) const

Definition at line 230 of file qresultstore.cpp.

References QtPrivate::findResult(), and m_results.

Referenced by contains(), and syncResultCount().

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

◆ setFilterMode()

void QtPrivate::ResultStoreBase::setFilterMode ( bool enable)

Definition at line 125 of file qresultstore.cpp.

References m_filterMode.

Referenced by QFutureInterfaceBase::setFilterMode().

+ Here is the caller graph for this function:

◆ syncPendingResults()

void QtPrivate::ResultStoreBase::syncPendingResults ( )
protected

Definition at line 177 of file qresultstore.cpp.

References filteredResults, insertResultItemIfValid(), it, pendingResults, and resultCount.

Referenced by insertResultItem().

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

◆ syncResultCount()

void QtPrivate::ResultStoreBase::syncResultCount ( )
protected

Definition at line 135 of file qresultstore.cpp.

References end(), it, resultAt(), and resultCount.

Referenced by insertResultItemIfValid().

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

◆ updateInsertIndex()

int QtPrivate::ResultStoreBase::updateInsertIndex ( int index,
int _count )
protected

Definition at line 247 of file qresultstore.cpp.

References insertIndex, and qMax().

Referenced by insertResultItem().

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

Member Data Documentation

◆ filteredResults

int QtPrivate::ResultStoreBase::filteredResults
protected

Definition at line 120 of file qresultstore.h.

Referenced by insertResultItem(), insertResultItemIfValid(), and syncPendingResults().

◆ insertIndex

int QtPrivate::ResultStoreBase::insertIndex
protected

Definition at line 115 of file qresultstore.h.

Referenced by containsValidResultItem(), insertResultItem(), and updateInsertIndex().

◆ m_filterMode

bool QtPrivate::ResultStoreBase::m_filterMode
protected

◆ m_results

QMap<int, ResultItem> QtPrivate::ResultStoreBase::m_results
protected

◆ pendingResults

QMap<int, ResultItem> QtPrivate::ResultStoreBase::pendingResults
protected

Definition at line 119 of file qresultstore.h.

Referenced by containsValidResultItem(), insertResultItem(), and syncPendingResults().

◆ resultCount

int QtPrivate::ResultStoreBase::resultCount
protected

Definition at line 116 of file qresultstore.h.

Referenced by count(), syncPendingResults(), and syncResultCount().


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