QGIS API Documentation
2.2.0-Valmiera
|
Wrapper for iterator of features from vector data provider or vector layer. More...
#include <qgsfeatureiterator.h>
Public Member Functions | |
QgsFeatureIterator () | |
construct invalid iterator | |
QgsFeatureIterator (QgsAbstractFeatureIterator *iter) | |
construct a valid iterator | |
QgsFeatureIterator (const QgsFeatureIterator &fi) | |
copy constructor copies the iterator, increases ref.count | |
~QgsFeatureIterator () | |
destructor deletes the iterator if it has no more references | |
QgsFeatureIterator & | operator= (const QgsFeatureIterator &other) |
bool | nextFeature (QgsFeature &f) |
bool | rewind () |
bool | close () |
bool | isClosed () const |
find out whether the iterator is still valid or closed already |
Protected Attributes | |
QgsAbstractFeatureIterator * | mIter |
Friends | |
bool | operator== (const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2) |
bool | operator!= (const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2) |
Wrapper for iterator of features from vector data provider or vector layer.
Definition at line 111 of file qgsfeatureiterator.h.
|
inline |
construct invalid iterator
Definition at line 141 of file qgsfeatureiterator.h.
|
inline |
construct a valid iterator
Definition at line 146 of file qgsfeatureiterator.h.
References QgsAbstractFeatureIterator::ref().
|
inline |
copy constructor copies the iterator, increases ref.count
Definition at line 153 of file qgsfeatureiterator.h.
References mIter, and QgsAbstractFeatureIterator::ref().
|
inline |
destructor deletes the iterator if it has no more references
Definition at line 160 of file qgsfeatureiterator.h.
References QgsAbstractFeatureIterator::deref(), and mIter.
|
inline |
Definition at line 176 of file qgsfeatureiterator.h.
References QgsAbstractFeatureIterator::close(), and mIter.
Referenced by QgsVectorLayerFeatureIterator::close(), QgsCachedFeatureWriterIterator::close(), QgsVectorLayerFeatureIterator::fetchFeature(), QgsAttributeTableFilterModel::generateListOfVisibleFeatures(), QgsExpressionSelectionDialog::on_mActionAddToSelection_triggered(), QgsExpressionSelectionDialog::on_mActionRemoveFromSelection_triggered(), QgsExpressionSelectionDialog::on_mActionSelect_triggered(), and QgsExpressionSelectionDialog::on_mActionSelectInstersect_triggered().
|
inline |
find out whether the iterator is still valid or closed already
Definition at line 181 of file qgsfeatureiterator.h.
References QgsAbstractFeatureIterator::mClosed, and mIter.
Referenced by QgsVectorLayerFeatureIterator::fetchFeature().
|
inline |
Definition at line 166 of file qgsfeatureiterator.h.
References mIter, and QgsAbstractFeatureIterator::nextFeature().
Referenced by QgsVectorLayerFeatureIterator::FetchJoinInfo::addJoinedAttributesDirect(), QgsVectorLayerEditUtils::addPart(), QgsVectorLayerEditUtils::addRing(), QgsVectorLayer::allFeatureIds(), QgsOfflineEditing::applyFeaturesAdded(), QgsGeometry::avoidIntersections(), QgsVectorLayer::boundingBoxOfSelected(), QgsGeometryAnalyzer::buffer(), QgsInterpolator::cacheBaseData(), QgsVectorLayerJoinBuffer::cacheJoinLayer(), QgsZonalStatistics::calculateStatistics(), QgsGeometryAnalyzer::centroids(), QgsGeometryAnalyzer::convexHull(), QgsOfflineEditing::copyVectorLayer(), QgsSearchQueryBuilder::countRecords(), QgsVectorLayer::countSymbolFeatures(), QgsAttributeEditor::createAttributeEditor(), QgsFormAnnotationItem::createDesignerWidget(), QgsPointDisplacementRenderer::createDisplacementGroups(), QgsPointSample::createRandomPoints(), QgsGraduatedSymbolRendererV2::createRenderer(), QgsTransectSample::createSample(), QgsGeometryAnalyzer::dissolve(), QgsVectorLayer::drawLabels(), QgsVectorLayer::drawRendererV2(), QgsVectorLayer::drawRendererV2Levels(), QgsGeometryAnalyzer::eventLayer(), QgsVectorFileWriter::exportFeaturesSymbolLevels(), QgsVectorLayer::extent(), QgsVectorLayerCache::featureAtId(), QgsVectorLayerFeatureIterator::fetchFeature(), QgsMapTip::fetchFeature(), QgsCachedFeatureWriterIterator::fetchFeature(), QgsVectorLayerFeatureIterator::fetchNextChangedAttributeFeature(), QgsVectorDataProvider::fillMinMaxCache(), QgsTransectSample::findBaselineGeometry(), QgsAttributeTableFilterModel::generateListOfVisibleFeatures(), QgsComposerAttributeTable::getFeatureAttributes(), QgsSearchQueryBuilder::getFieldValues(), QgsMapToolIdentify::identifyVectorLayer(), QgsVectorLayerImport::importLayer(), QgsAttributeDialog::init(), QgsTINInterpolator::initialize(), QgsOverlayAnalyzer::intersectFeature(), QgsOverlayAnalyzer::intersection(), QgsVectorLayer::invertSelectionInRectangle(), QgsAttributeTableModel::loadLayer(), QgsVectorLayer::maximumValue(), QgsVectorLayer::minimumValue(), QgsVectorLayerFeatureIterator::nextFeatureFid(), QgsExpressionSelectionDialog::on_mActionAddToSelection_triggered(), QgsExpressionSelectionDialog::on_mActionRemoveFromSelection_triggered(), QgsExpressionSelectionDialog::on_mActionSelect_triggered(), QgsExpressionSelectionDialog::on_mActionSelectInstersect_triggered(), QgsExpressionBuilderWidget::on_txtExpressionString_textChanged(), QgsAttributeTableModel::prefetchColumnData(), QgsAtlasComposition::prepareForFeature(), QgsVectorLayer::prepareLabelingAndDiagrams(), QgsVectorLayer::removePolygonIntersections(), QgsVectorLayer::select(), QgsAtlasComposition::setCoverageLayer(), QgsGeometryAnalyzer::simplify(), QgsVectorLayer::snapWithContext(), QgsVectorLayerEditUtils::splitFeatures(), QgsVectorLayerEditUtils::splitParts(), QgsVectorLayerEditUtils::translateFeature(), QgsVectorLayerUndoCommandChangeAttribute::undo(), QgsVectorDataProvider::uniqueValues(), QgsVectorLayer::uniqueValues(), QgsAtlasComposition::updateFeatures(), QgsOfflineEditing::updateFidLookup(), QgsVectorLayerFeatureIterator::useChangedAttributeFeature(), and QgsVectorFileWriter::writeAsVectorFormat().
QgsFeatureIterator & QgsFeatureIterator::operator= | ( | const QgsFeatureIterator & | other | ) |
Definition at line 143 of file qgsfeatureiterator.cpp.
References QgsAbstractFeatureIterator::deref(), mIter, and QgsAbstractFeatureIterator::ref().
|
inline |
Definition at line 171 of file qgsfeatureiterator.h.
References mIter, and QgsAbstractFeatureIterator::rewind().
Referenced by QgsVectorLayerFeatureIterator::rewind(), and QgsCachedFeatureWriterIterator::rewind().
|
friend |
Definition at line 191 of file qgsfeatureiterator.h.
|
friend |
Definition at line 186 of file qgsfeatureiterator.h.
|
protected |
Definition at line 136 of file qgsfeatureiterator.h.
Referenced by close(), isClosed(), nextFeature(), operator=(), operator==(), QgsFeatureIterator(), rewind(), and ~QgsFeatureIterator().