QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
QgsCachedFeatureWriterIterator Class Reference

Uses another iterator as backend and writes features to the cache. More...

#include <qgscachedfeatureiterator.h>

Inheritance diagram for QgsCachedFeatureWriterIterator:
Inheritance graph
[legend]
Collaboration diagram for QgsCachedFeatureWriterIterator:
Collaboration graph
[legend]

Public Member Functions

 QgsCachedFeatureWriterIterator (QgsVectorLayerCache *vlCache, QgsFeatureRequest featureRequest)
 This constructor creates a feature iterator, which queries the backend and caches retrieved features.
virtual bool nextFeature (QgsFeature &f)
virtual bool rewind ()
virtual bool close ()
- Public Member Functions inherited from QgsAbstractFeatureIterator
 QgsAbstractFeatureIterator (const QgsFeatureRequest &request)
 base class constructor - stores the iteration parameters
virtual ~QgsAbstractFeatureIterator ()
 destructor makes sure that the iterator is closed properly

Private Attributes

QgsFeatureIterator mFeatIt
QgsVectorLayerCachemVectorLayerCache
QgsFeatureIds mFids

Additional Inherited Members

- Protected Member Functions inherited from QgsAbstractFeatureIterator
void ref ()
void deref ()
- Protected Attributes inherited from QgsAbstractFeatureIterator
QgsFeatureRequest mRequest
bool mClosed
int refs

Detailed Description

Uses another iterator as backend and writes features to the cache.

Definition at line 76 of file qgscachedfeatureiterator.h.

Constructor & Destructor Documentation

QgsCachedFeatureWriterIterator::QgsCachedFeatureWriterIterator ( QgsVectorLayerCache vlCache,
QgsFeatureRequest  featureRequest 
)

This constructor creates a feature iterator, which queries the backend and caches retrieved features.

Parameters
vlCacheThe vector layer cache to use
featureRequestThe feature request to answer

Definition at line 54 of file qgscachedfeatureiterator.cpp.

References QgsVectorLayer::getFeatures(), QgsVectorLayerCache::layer(), and mFeatIt.

Member Function Documentation

bool QgsCachedFeatureWriterIterator::close ( )
virtual
Returns
bool

Implements QgsAbstractFeatureIterator.

Definition at line 85 of file qgscachedfeatureiterator.cpp.

References QgsFeatureIterator::close(), and mFeatIt.

bool QgsCachedFeatureWriterIterator::nextFeature ( QgsFeature f)
virtual
bool QgsCachedFeatureWriterIterator::rewind ( )
virtual
Returns
bool

Implements QgsAbstractFeatureIterator.

Definition at line 79 of file qgscachedfeatureiterator.cpp.

References mFeatIt, mFids, and QgsFeatureIterator::rewind().

Member Data Documentation

QgsFeatureIterator QgsCachedFeatureWriterIterator::mFeatIt
private
QgsFeatureIds QgsCachedFeatureWriterIterator::mFids
private

Definition at line 113 of file qgscachedfeatureiterator.h.

Referenced by nextFeature(), and rewind().

QgsVectorLayerCache* QgsCachedFeatureWriterIterator::mVectorLayerCache
private

Definition at line 112 of file qgscachedfeatureiterator.h.

Referenced by nextFeature().


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