QGIS API Documentation
2.0.1-Dufour
|
Delivers features from the cache. More...
#include <qgscachedfeatureiterator.h>
Public Member Functions | |
QgsCachedFeatureIterator (QgsVectorLayerCache *vlCache, QgsFeatureRequest featureRequest, QgsFeatureIds featureIds) | |
This constructor creates a feature iterator, that delivers only cached information, based on the QgsFeatureIds. | |
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 | |
QgsFeatureIds | mFeatureIds |
QgsVectorLayerCache * | mVectorLayerCache |
QgsFeatureIds::Iterator | mFeatureIdIterator |
Additional Inherited Members | |
Protected Member Functions inherited from QgsAbstractFeatureIterator | |
void | ref () |
void | deref () |
Protected Attributes inherited from QgsAbstractFeatureIterator | |
QgsFeatureRequest | mRequest |
bool | mClosed |
int | refs |
Delivers features from the cache.
Definition at line 29 of file qgscachedfeatureiterator.h.
QgsCachedFeatureIterator::QgsCachedFeatureIterator | ( | QgsVectorLayerCache * | vlCache, |
QgsFeatureRequest | featureRequest, | ||
QgsFeatureIds | featureIds | ||
) |
This constructor creates a feature iterator, that delivers only cached information, based on the QgsFeatureIds.
No request is made to the backend.
vlCache | The vector layer cache to use |
featureRequest | The feature request to answer |
featureIds | The feature ids to return |
Definition at line 19 of file qgscachedfeatureiterator.cpp.
References mFeatureIdIterator.
|
virtual |
Implements QgsAbstractFeatureIterator.
Definition at line 48 of file qgscachedfeatureiterator.cpp.
|
virtual |
f |
Implements QgsAbstractFeatureIterator.
Definition at line 27 of file qgscachedfeatureiterator.cpp.
References QgsVectorLayerCache::mCache, mFeatureIdIterator, mFeatureIds, and mVectorLayerCache.
|
virtual |
Implements QgsAbstractFeatureIterator.
Definition at line 42 of file qgscachedfeatureiterator.cpp.
References mFeatureIdIterator, and mFeatureIds.
|
private |
Definition at line 68 of file qgscachedfeatureiterator.h.
Referenced by nextFeature(), QgsCachedFeatureIterator(), and rewind().
|
private |
Definition at line 66 of file qgscachedfeatureiterator.h.
Referenced by nextFeature(), and rewind().
|
private |
Definition at line 67 of file qgscachedfeatureiterator.h.
Referenced by nextFeature().