QGIS/python/core/auto_generated/qgscachedfeatureiterator.sip.in

129 lines
3.3 KiB
Plaintext
Raw Normal View History

2017-05-23 09:45:57 +02:00
/************************************************************************
* 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
{
2017-05-23 09:45:57 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Delivers features from the cache
2017-05-23 09:45:57 +02:00
%End
%TypeHeaderCode
2017-05-23 09:45:57 +02:00
#include "qgscachedfeatureiterator.h"
%End
public:
QgsCachedFeatureIterator( QgsVectorLayerCache *vlCache, const QgsFeatureRequest &featureRequest );
2017-05-23 09:45:57 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
This constructor creates a feature iterator, that delivers all cached features. No request is made to the backend.
2017-05-23 09:45:57 +02:00
:param vlCache: The vector layer cache to use
:param featureRequest: The feature request to answer
2017-05-23 09:45:57 +02:00
%End
virtual bool rewind();
2017-05-23 09:45:57 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Rewind to the beginning of the iterator
:return: bool true if the operation was OK
2017-05-23 09:45:57 +02:00
%End
virtual bool close();
2017-05-23 09:45:57 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Close this iterator. No further features will be available.
:return: true if successful
2017-05-23 09:45:57 +02:00
%End
2014-05-27 23:22:50 +02:00
protected:
2017-05-23 09:45:57 +02:00
virtual bool fetchFeature( QgsFeature &f );
2017-05-23 09:45:57 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Implementation for fetching a feature.
:param f: Will write to this feature
2017-12-15 10:36:55 -04:00
:return: bool true if the operation was OK
2017-05-23 09:45:57 +02:00
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`bool`
2017-05-23 09:45:57 +02:00
%End
2014-05-27 23:22:50 +02:00
virtual bool nextFeatureFilterFids( QgsFeature &f );
2017-05-23 09:45:57 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
We have a local special iterator for FilterFids, no need to run the generic.
:param f: Will write to this feature
2017-12-15 10:36:55 -04:00
:return: bool true if the operation was OK
2017-05-23 09:45:57 +02:00
%End
2014-05-27 23:22:50 +02:00
};
class QgsCachedFeatureWriterIterator : QgsAbstractFeatureIterator
{
2017-05-23 09:45:57 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Uses another iterator as backend and writes features to the cache
2017-05-23 09:45:57 +02:00
%End
%TypeHeaderCode
2017-05-23 09:45:57 +02:00
#include "qgscachedfeatureiterator.h"
%End
public:
2017-05-23 09:45:57 +02:00
QgsCachedFeatureWriterIterator( QgsVectorLayerCache *vlCache, const QgsFeatureRequest &featureRequest );
2017-05-23 09:45:57 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
This constructor creates a feature iterator, which queries the backend and caches retrieved features.
2017-05-23 09:45:57 +02:00
:param vlCache: The vector layer cache to use
:param featureRequest: The feature request to answer
2017-05-23 09:45:57 +02:00
%End
2014-05-27 23:22:50 +02:00
virtual bool rewind();
2017-05-23 09:45:57 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Rewind to the beginning of the iterator
:return: bool true if the operation was OK
2017-05-23 09:45:57 +02:00
%End
2014-05-27 23:22:50 +02:00
virtual bool close();
2017-05-23 09:45:57 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Close this iterator. No further features will be available.
:return: true if successful
2017-05-23 09:45:57 +02:00
%End
2014-05-27 23:22:50 +02:00
protected:
virtual bool fetchFeature( QgsFeature &f );
2017-05-23 09:45:57 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Implementation for fetching a feature.
:param f: Will write to this feature
2017-12-15 10:36:55 -04:00
:return: bool true if the operation was OK
2017-05-23 09:45:57 +02:00
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`bool`
2017-05-23 09:45:57 +02:00
%End
};
2017-05-23 09:45:57 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgscachedfeatureiterator.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/