QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Protected Attributes | Friends | List of all members
QgsFeatureIterator Class Reference

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

#include <qgsfeatureiterator.h>

Collaboration diagram for QgsFeatureIterator:
Collaboration graph
[legend]

Public Member Functions

 QgsFeatureIterator ()
 construct invalid iterator More...
 
 QgsFeatureIterator (QgsAbstractFeatureIterator *iter)
 construct a valid iterator More...
 
 QgsFeatureIterator (const QgsFeatureIterator &fi)
 copy constructor copies the iterator, increases ref.count More...
 
 ~QgsFeatureIterator ()
 destructor deletes the iterator if it has no more references More...
 
QgsFeatureIteratoroperator= (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 More...
 

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 139 of file qgsfeatureiterator.h.

Constructor & Destructor Documentation

QgsFeatureIterator::QgsFeatureIterator ( )
inline

construct invalid iterator

Definition at line 169 of file qgsfeatureiterator.h.

QgsFeatureIterator::QgsFeatureIterator ( QgsAbstractFeatureIterator iter)
inline

construct a valid iterator

Definition at line 174 of file qgsfeatureiterator.h.

References QgsAbstractFeatureIterator::ref().

QgsFeatureIterator::QgsFeatureIterator ( const QgsFeatureIterator fi)
inline

copy constructor copies the iterator, increases ref.count

Definition at line 181 of file qgsfeatureiterator.h.

References mIter, and QgsAbstractFeatureIterator::ref().

QgsFeatureIterator::~QgsFeatureIterator ( )
inline

destructor deletes the iterator if it has no more references

Definition at line 188 of file qgsfeatureiterator.h.

References QgsAbstractFeatureIterator::deref(), and mIter.

Member Function Documentation

bool QgsFeatureIterator::close ( )
inline
bool QgsFeatureIterator::isClosed ( ) const
inline

find out whether the iterator is still valid or closed already

Definition at line 209 of file qgsfeatureiterator.h.

References QgsAbstractFeatureIterator::mClosed, and mIter.

Referenced by QgsVectorLayerFeatureIterator::fetchFeature().

bool QgsFeatureIterator::nextFeature ( QgsFeature f)
inline

Definition at line 194 of file qgsfeatureiterator.h.

References mIter, and QgsAbstractFeatureIterator::nextFeature().

Referenced by QgsCategorizedSymbolRendererV2Widget::addCategories(), 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(), QgsRuleBasedRendererV2Widget::countFeatures(), QgsSearchQueryBuilder::countRecords(), QgsVectorLayer::countSymbolFeatures(), QgsValueRelationWidgetWrapper::createCache(), QgsFormAnnotationItem::createDesignerWidget(), QgsAttributeTypeLoadDialog::createPreview(), QgsPointSample::createRandomPoints(), QgsGraduatedSymbolRendererV2::createRenderer(), QgsTransectSample::createSample(), QgsVectorLayerEditUtils::deleteVertex(), QgsGeometryAnalyzer::dissolve(), QgsVectorLayer::drawLabels(), QgsVectorLayerRenderer::drawRendererV2(), QgsVectorLayerRenderer::drawRendererV2Levels(), QgsGeometryAnalyzer::eventLayer(), QgsVectorFileWriter::exportFeaturesSymbolLevels(), QgsVectorLayer::extent(), QgsVectorLayerCache::featureAtId(), QgsMapTip::fetchFeature(), QgsVectorLayerFeatureIterator::fetchFeature(), QgsCachedFeatureWriterIterator::fetchFeature(), QgsVectorLayerFeatureIterator::fetchNextChangedAttributeFeature(), QgsVectorDataProvider::fillMinMaxCache(), QgsTransectSample::findBaselineGeometry(), QgsAttributeTableFilterModel::generateListOfVisibleFeatures(), QgsComposerAttributeTable::getFeatureAttributes(), QgsSearchQueryBuilder::getFieldValues(), QgsRelationReferenceWidget::highlightFeature(), QgsMapToolIdentify::identifyVectorLayer(), QgsVectorLayerImport::importLayer(), QgsTINInterpolator::initialize(), QgsVectorLayerEditUtils::insertVertex(), QgsOverlayAnalyzer::intersectFeature(), QgsOverlayAnalyzer::intersection(), QgsVectorLayer::invertSelectionInRectangle(), QgsAttributeTypeLoadDialog::loadDataToValueMap(), QgsAttributeTableModel::loadLayer(), QgsLineVectorLayerDirector::makeGraph(), QgsVectorLayer::maximumValue(), QgsVectorLayer::minimumValue(), QgsVectorLayerEditUtils::moveVertex(), QgsVectorLayerFeatureIterator::nextFeatureFid(), QgsExpressionSelectionDialog::on_mActionAddToSelection_triggered(), QgsExpressionSelectionDialog::on_mActionRemoveFromSelection_triggered(), QgsExpressionSelectionDialog::on_mActionSelect_triggered(), QgsExpressionSelectionDialog::on_mActionSelectInstersect_triggered(), QgsExpressionBuilderWidget::on_txtExpressionString_textChanged(), QgsRelationReferenceWidget::openForm(), QgsAttributeTableModel::prefetchColumnData(), QgsAtlasComposition::prepareForFeature(), QgsVectorLayerRenderer::prepareLabeling(), QgsRelationReferenceWidget::referenceChanged(), QgsVectorLayer::removePolygonIntersections(), QgsVectorLayer::select(), QgsAtlasComposition::setCoverageLayer(), QgsRelationReferenceWidget::setRelation(), QgsGeometryAnalyzer::simplify(), QgsVectorLayer::snapWithContext(), QgsVectorLayerEditUtils::splitFeatures(), QgsVectorLayerEditUtils::splitParts(), QgsRendererRulePropsDialog::testFilter(), QgsVectorLayerEditUtils::translateFeature(), QgsVectorLayerUndoCommandChangeAttribute::undo(), QgsVectorDataProvider::uniqueValues(), QgsVectorLayer::uniqueValues(), QgsAtlasComposition::updateFeatures(), QgsOfflineEditing::updateFidLookup(), QgsVectorLayerFeatureIterator::useChangedAttributeFeature(), QgsVectorFileWriter::writeAsVectorFormat(), QgsDxfExport::writeEntities(), and QgsDxfExport::writeEntitiesSymbolLevels().

QgsFeatureIterator & QgsFeatureIterator::operator= ( const QgsFeatureIterator other)
bool QgsFeatureIterator::rewind ( )
inline

Friends And Related Function Documentation

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

Definition at line 219 of file qgsfeatureiterator.h.

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

Definition at line 214 of file qgsfeatureiterator.h.

Member Data Documentation

QgsAbstractFeatureIterator* QgsFeatureIterator::mIter
protected

The documentation for this class was generated from the following files: