QGIS API Documentation  2.13.0-Master
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>

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...
 
bool close ()
 
bool isClosed () const
 find out whether the iterator is still valid or closed already More...
 
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 177 of file qgsfeatureiterator.h.

Constructor & Destructor Documentation

QgsFeatureIterator::QgsFeatureIterator ( )
inline

construct invalid iterator

Definition at line 207 of file qgsfeatureiterator.h.

QgsFeatureIterator::QgsFeatureIterator ( QgsAbstractFeatureIterator iter)
inline

construct a valid iterator

Definition at line 212 of file qgsfeatureiterator.h.

QgsFeatureIterator::QgsFeatureIterator ( const QgsFeatureIterator fi)
inline

copy constructor copies the iterator, increases ref.count

Definition at line 219 of file qgsfeatureiterator.h.

QgsFeatureIterator::~QgsFeatureIterator ( )
inline

destructor deletes the iterator if it has no more references

Definition at line 226 of file qgsfeatureiterator.h.

Member Function Documentation

bool QgsFeatureIterator::close ( )
inline

Definition at line 245 of file qgsfeatureiterator.h.

bool QgsFeatureIterator::isClosed ( ) const
inline

find out whether the iterator is still valid or closed already

Definition at line 253 of file qgsfeatureiterator.h.

bool QgsFeatureIterator::nextFeature ( QgsFeature f)
inline

Definition at line 232 of file qgsfeatureiterator.h.

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

Definition at line 229 of file qgsfeatureiterator.cpp.

bool QgsFeatureIterator::rewind ( )
inline

Definition at line 237 of file qgsfeatureiterator.h.

Friends And Related Function Documentation

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

Definition at line 263 of file qgsfeatureiterator.h.

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

Definition at line 258 of file qgsfeatureiterator.h.

Member Data Documentation

QgsAbstractFeatureIterator* QgsFeatureIterator::mIter
protected

Definition at line 202 of file qgsfeatureiterator.h.


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