QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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>

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
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

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.

Constructor & Destructor Documentation

QgsFeatureIterator::QgsFeatureIterator ( )
inline

construct invalid iterator

QgsFeatureIterator::QgsFeatureIterator ( QgsAbstractFeatureIterator iter)
inline

construct a valid iterator

QgsFeatureIterator::QgsFeatureIterator ( const QgsFeatureIterator fi)
inline

copy constructor copies the iterator, increases ref.count

QgsFeatureIterator::~QgsFeatureIterator ( )
inline

destructor deletes the iterator if it has no more references

Member Function Documentation

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

find out whether the iterator is still valid or closed already

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

Friends And Related Function Documentation

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

Member Data Documentation

QgsAbstractFeatureIterator* QgsFeatureIterator::mIter
protected

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