QGIS API Documentation  master-3f58142
QgsFeatureIterator Class Reference

Wrapper for iterator of features from vector data provider or vector layer. More...

#include <qgsfeatureiterator.h>

+ Collaboration diagram for QgsFeatureIterator:

List of all members.

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
bool close ()
bool isClosed ()
 find out whether the iterator is still valid or closed already
bool nextFeature (QgsFeature &f)
QgsFeatureIteratoroperator= (const QgsFeatureIterator &other)
bool rewind ()

Protected Attributes

QgsAbstractFeatureIteratormIter

Friends

bool operator!= (const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
bool operator== (const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)

Detailed Description

Wrapper for iterator of features from vector data provider or vector layer.

Definition at line 57 of file qgsfeatureiterator.h.


Constructor & Destructor Documentation

construct invalid iterator

Definition at line 87 of file qgsfeatureiterator.h.

construct a valid iterator

Definition at line 92 of file qgsfeatureiterator.h.

References QgsAbstractFeatureIterator::ref().

copy constructor copies the iterator, increases ref.count

Definition at line 99 of file qgsfeatureiterator.h.

References mIter, and QgsAbstractFeatureIterator::ref().

destructor deletes the iterator if it has no more references

Definition at line 106 of file qgsfeatureiterator.h.

References QgsAbstractFeatureIterator::deref(), and mIter.


Member Function Documentation

bool QgsFeatureIterator::isClosed ( ) [inline]

find out whether the iterator is still valid or closed already

Definition at line 127 of file qgsfeatureiterator.h.

References QgsAbstractFeatureIterator::mClosed, and mIter.

Definition at line 112 of file qgsfeatureiterator.h.

References mIter, and QgsAbstractFeatureIterator::nextFeature().

Referenced by QgsVectorLayerFeatureIterator::FetchJoinInfo::addJoinedAttributesDirect(), QgsVectorLayerEditUtils::addPart(), QgsVectorLayerEditUtils::addRing(), QgsOfflineEditing::applyFeaturesAdded(), QgsAtlasComposition::beginRender(), QgsVectorLayer::boundingBoxOfSelected(), QgsGeometryAnalyzer::buffer(), QgsInterpolator::cacheBaseData(), QgsVectorLayerJoinBuffer::cacheJoinLayer(), QgsZonalStatistics::calculateStatistics(), QgsGeometryAnalyzer::centroids(), QgsGeometryAnalyzer::convexHull(), QgsOfflineEditing::copyVectorLayer(), QgsRuleBasedRendererV2Widget::countFeatures(), QgsSearchQueryBuilder::countRecords(), QgsVectorLayer::countSymbolFeatures(), QgsAttributeEditor::createAttributeEditor(), QgsFormAnnotationItem::createDesignerWidget(), QgsPointDisplacementRenderer::createDisplacementGroups(), QgsGraduatedSymbolRendererV2::createRenderer(), QgsGeometryAnalyzer::dissolve(), QgsVectorLayer::drawLabels(), QgsVectorLayer::drawRendererV2(), QgsVectorLayer::drawRendererV2Levels(), QgsGeometryAnalyzer::eventLayer(), QgsVectorFileWriter::exportFeaturesSymbolLevels(), QgsVectorLayer::extent(), QgsVectorLayerCache::featureAtId(), QgsMapTip::fetchFeature(), QgsVectorDataProvider::fillMinMaxCache(), QgsAttributeTableFilterModel::generateListOfVisibleFeatures(), QgsComposerAttributeTable::getFeatureAttributes(), QgsSearchQueryBuilder::getFieldValues(), QgsMapToolIdentify::identifyVectorLayer(), QgsVectorLayerImport::importLayer(), QgsTINInterpolator::initialize(), QgsOverlayAnalyzer::intersectFeature(), QgsOverlayAnalyzer::intersection(), QgsVectorLayer::invertSelection(), QgsVectorLayer::invertSelectionInRectangle(), QgsAttributeTableModel::loadLayer(), QgsLineVectorLayerDirector::makeGraph(), QgsVectorLayer::maximumValue(), QgsVectorLayer::minimumValue(), QgsVectorLayerFeatureIterator::nextFeature(), QgsCachedFeatureWriterIterator::nextFeature(), QgsVectorLayerFeatureIterator::nextFeatureFid(), QgsExpressionSelectionDialog::on_mActionAddToSelection_triggered(), QgsExpressionSelectionDialog::on_mActionRemoveFromSelection_triggered(), QgsExpressionSelectionDialog::on_mActionSelect_triggered(), QgsExpressionSelectionDialog::on_mActionSelectInstersect_triggered(), QgsAttributeTableModel::prefetchColumnData(), QgsAtlasComposition::prepareForFeature(), QgsVectorLayer::prepareLabelingAndDiagrams(), QgsAttributeDialog::QgsAttributeDialog(), QgsVectorLayer::removePolygonIntersections(), QgsVectorLayer::select(), QgsGeometryAnalyzer::simplify(), QgsVectorLayer::snapWithContext(), QgsVectorLayerEditUtils::splitFeatures(), QgsRendererRulePropsDialog::testFilter(), QgsVectorLayerEditUtils::translateFeature(), QgsVectorLayerUndoCommandChangeAttribute::undo(), QgsVectorDataProvider::uniqueValues(), QgsVectorLayer::uniqueValues(), QgsOfflineEditing::updateFidLookup(), QgsVectorLayerFeatureIterator::useChangedAttributeFeature(), and QgsVectorFileWriter::writeAsVectorFormat().

QgsFeatureIterator & QgsFeatureIterator::operator= ( const QgsFeatureIterator other)

Friends And Related Function Documentation

bool operator!= ( const QgsFeatureIterator fi1,
const QgsFeatureIterator fi2 
) [friend]

Definition at line 137 of file qgsfeatureiterator.h.

bool operator== ( const QgsFeatureIterator fi1,
const QgsFeatureIterator fi2 
) [friend]

Definition at line 133 of file qgsfeatureiterator.h.


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines