QGIS API Documentation
2.0.1-Dufour
|
Uses another iterator as backend and writes features to the cache. More...
#include <qgscachedfeatureiterator.h>
Public Member Functions | |
QgsCachedFeatureWriterIterator (QgsVectorLayerCache *vlCache, QgsFeatureRequest featureRequest) | |
This constructor creates a feature iterator, which queries the backend and caches retrieved features. | |
virtual bool | nextFeature (QgsFeature &f) |
virtual bool | rewind () |
virtual bool | close () |
Public Member Functions inherited from QgsAbstractFeatureIterator | |
QgsAbstractFeatureIterator (const QgsFeatureRequest &request) | |
base class constructor - stores the iteration parameters | |
virtual | ~QgsAbstractFeatureIterator () |
destructor makes sure that the iterator is closed properly |
Private Attributes | |
QgsFeatureIterator | mFeatIt |
QgsVectorLayerCache * | mVectorLayerCache |
QgsFeatureIds | mFids |
Additional Inherited Members | |
Protected Member Functions inherited from QgsAbstractFeatureIterator | |
void | ref () |
void | deref () |
Protected Attributes inherited from QgsAbstractFeatureIterator | |
QgsFeatureRequest | mRequest |
bool | mClosed |
int | refs |
Uses another iterator as backend and writes features to the cache.
Definition at line 76 of file qgscachedfeatureiterator.h.
QgsCachedFeatureWriterIterator::QgsCachedFeatureWriterIterator | ( | QgsVectorLayerCache * | vlCache, |
QgsFeatureRequest | featureRequest | ||
) |
This constructor creates a feature iterator, which queries the backend and caches retrieved features.
vlCache | The vector layer cache to use |
featureRequest | The feature request to answer |
Definition at line 54 of file qgscachedfeatureiterator.cpp.
References QgsVectorLayer::getFeatures(), QgsVectorLayerCache::layer(), and mFeatIt.
|
virtual |
Implements QgsAbstractFeatureIterator.
Definition at line 85 of file qgscachedfeatureiterator.cpp.
References QgsFeatureIterator::close(), and mFeatIt.
|
virtual |
f |
Implements QgsAbstractFeatureIterator.
Definition at line 61 of file qgscachedfeatureiterator.cpp.
References QgsVectorLayerCache::cacheFeature(), QgsFeature::id(), mFeatIt, mFids, QgsAbstractFeatureIterator::mRequest, mVectorLayerCache, QgsFeatureIterator::nextFeature(), and QgsVectorLayerCache::requestCompleted().
|
virtual |
Implements QgsAbstractFeatureIterator.
Definition at line 79 of file qgscachedfeatureiterator.cpp.
References mFeatIt, mFids, and QgsFeatureIterator::rewind().
|
private |
Definition at line 111 of file qgscachedfeatureiterator.h.
Referenced by close(), nextFeature(), QgsCachedFeatureWriterIterator(), and rewind().
|
private |
Definition at line 113 of file qgscachedfeatureiterator.h.
Referenced by nextFeature(), and rewind().
|
private |
Definition at line 112 of file qgscachedfeatureiterator.h.
Referenced by nextFeature().