QGIS/python/core/qgscachedfeatureiterator.sip
Nyall Dawson 4da1ce8404 Drop redundant virtual keywords on overrides
Run clang-tidy modernize-use-override to remove all the redundant
virtual keywords from overridden methods, and add some missing
overrides.

Another benefit is that this has also added the overrides
on destructors, which will cause a build failure if a base
class is missing a virtual destructor.
2017-12-16 08:49:36 +10:00

145 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
:rtype: bool
.. seealso:: :py:func:`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
:rtype: bool
.. seealso:: :py:func:`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 *
************************************************************************/