QGIS/python/core/qgscachedfeatureiterator.sip
Denis Rouzaud e48cf98edb run sipify
2017-12-06 07:19:50 -04:00

129 lines
3.4 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgscachedfeatureiterator.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsCachedFeatureIterator : QgsAbstractFeatureIterator
{
%Docstring
\brief
Delivers features from the cache
%End
%TypeHeaderCode
#include "qgscachedfeatureiterator.h"
%End
public:
QgsCachedFeatureIterator( QgsVectorLayerCache *vlCache, const QgsFeatureRequest &featureRequest );
%Docstring
This constructor creates a feature iterator, that delivers all cached features. No request is made to the backend.
\param vlCache The vector layer cache to use
\param featureRequest The feature request to answer
%End
virtual bool rewind();
%Docstring
Rewind to the beginning of the iterator
:return: bool true if the operation was OK
:rtype: bool
%End
virtual bool close();
%Docstring
Close this iterator. No further features will be available.
:return: true if successful
:rtype: bool
%End
protected:
virtual bool fetchFeature( QgsFeature &f );
%Docstring
Implementation for fetching a feature.
\param f Will write to this feature
:return: bool true if the operation was OK
.. seealso:: :py:func:`bool`
:rtype: bool
%End
virtual bool nextFeatureFilterFids( QgsFeature &f );
%Docstring
We have a local special iterator for FilterFids, no need to run the generic.
\param f Will write to this feature
:return: bool true if the operation was OK
:rtype: bool
%End
};
class QgsCachedFeatureWriterIterator : QgsAbstractFeatureIterator
{
%Docstring
\brief
Uses another iterator as backend and writes features to the cache
%End
%TypeHeaderCode
#include "qgscachedfeatureiterator.h"
%End
public:
QgsCachedFeatureWriterIterator( QgsVectorLayerCache *vlCache, const QgsFeatureRequest &featureRequest );
%Docstring
This constructor creates a feature iterator, which queries the backend and caches retrieved features.
\param vlCache The vector layer cache to use
\param featureRequest The feature request to answer
%End
virtual bool rewind();
%Docstring
Rewind to the beginning of the iterator
:return: bool true if the operation was OK
:rtype: bool
%End
virtual bool close();
%Docstring
Close this iterator. No further features will be available.
:return: true if successful
:rtype: bool
%End
protected:
virtual bool fetchFeature( QgsFeature &f );
%Docstring
Implementation for fetching a feature.
\param f Will write to this feature
:return: bool true if the operation was OK
.. seealso:: :py:func:`bool`
:rtype: bool
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgscachedfeatureiterator.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/