QGIS API Documentation
2.0.1-Dufour
|
Internal feature iterator to be implemented within data providers. More...
#include <qgsfeatureiterator.h>
Public Member Functions | |
QgsAbstractFeatureIterator (const QgsFeatureRequest &request) | |
base class constructor - stores the iteration parameters | |
virtual | ~QgsAbstractFeatureIterator () |
destructor makes sure that the iterator is closed properly | |
virtual bool | nextFeature (QgsFeature &f)=0 |
fetch next feature, return true on success | |
virtual bool | rewind ()=0 |
reset the iterator to the starting position | |
virtual bool | close ()=0 |
end of iterating: free the resources / lock |
Protected Member Functions | |
void | ref () |
void | deref () |
Protected Attributes | |
QgsFeatureRequest | mRequest |
bool | mClosed |
int | refs |
Friends | |
class | QgsFeatureIterator |
Internal feature iterator to be implemented within data providers.
Definition at line 24 of file qgsfeatureiterator.h.
QgsAbstractFeatureIterator::QgsAbstractFeatureIterator | ( | const QgsFeatureRequest & | request | ) |
base class constructor - stores the iteration parameters
Definition at line 18 of file qgsfeatureiterator.cpp.
|
virtual |
destructor makes sure that the iterator is closed properly
Definition at line 25 of file qgsfeatureiterator.cpp.
|
pure virtual |
end of iterating: free the resources / lock
Implemented in QgsCachedFeatureWriterIterator, QgsCachedFeatureIterator, and QgsVectorLayerFeatureIterator.
Referenced by QgsFeatureIterator::close().
|
protected |
Definition at line 34 of file qgsfeatureiterator.cpp.
References refs.
Referenced by QgsFeatureIterator::operator=(), and QgsFeatureIterator::~QgsFeatureIterator().
|
pure virtual |
fetch next feature, return true on success
Implemented in QgsCachedFeatureWriterIterator, QgsCachedFeatureIterator, and QgsVectorLayerFeatureIterator.
Referenced by QgsFeatureIterator::nextFeature().
|
protected |
Definition at line 29 of file qgsfeatureiterator.cpp.
References refs.
Referenced by QgsFeatureIterator::operator=(), and QgsFeatureIterator::QgsFeatureIterator().
|
pure virtual |
reset the iterator to the starting position
Implemented in QgsCachedFeatureWriterIterator, QgsCachedFeatureIterator, and QgsVectorLayerFeatureIterator.
Referenced by QgsFeatureIterator::rewind().
|
friend |
Definition at line 49 of file qgsfeatureiterator.h.
Referenced by QgsVectorLayerCache::getFeatures().
|
protected |
Definition at line 43 of file qgsfeatureiterator.h.
Referenced by QgsVectorLayerFeatureIterator::close(), QgsFeatureIterator::isClosed(), QgsVectorLayerFeatureIterator::nextFeature(), and QgsVectorLayerFeatureIterator::rewind().
|
protected |
Definition at line 41 of file qgsfeatureiterator.h.
Referenced by QgsVectorLayerFeatureIterator::fetchNextAddedFeature(), QgsVectorLayerFeatureIterator::fetchNextChangedGeomFeature(), QgsVectorLayerFeatureIterator::nextFeature(), QgsCachedFeatureWriterIterator::nextFeature(), QgsVectorLayerFeatureIterator::nextFeatureFid(), QgsVectorLayerFeatureIterator::prepareJoins(), QgsVectorLayerFeatureIterator::QgsVectorLayerFeatureIterator(), QgsVectorLayerFeatureIterator::rewind(), QgsVectorLayerFeatureIterator::useAddedFeature(), and QgsVectorLayerFeatureIterator::useChangedAttributeFeature().
|
protected |
Definition at line 46 of file qgsfeatureiterator.h.