mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	reverting 3fb0f66 (followup #45348) Using --no-public-is-protected (default on Windows) also works on Linux and fixes #45331 too
		
			
				
	
	
		
			133 lines
		
	
	
		
			3.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			133 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(signature="appended")
 | 
						|
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
 | 
						|
 | 
						|
    ~QgsCachedFeatureIterator();
 | 
						|
 | 
						|
    virtual bool rewind();
 | 
						|
 | 
						|
%Docstring
 | 
						|
Rewind to the beginning of the iterator
 | 
						|
 | 
						|
:return: bool ``True`` if the operation was OK
 | 
						|
%End
 | 
						|
 | 
						|
    virtual bool close();
 | 
						|
 | 
						|
%Docstring
 | 
						|
Close this iterator. No further features will be available.
 | 
						|
 | 
						|
:return: ``True`` if successful
 | 
						|
%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`
 | 
						|
%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
 | 
						|
%End
 | 
						|
 | 
						|
  private:
 | 
						|
    QgsCachedFeatureIterator( const QgsCachedFeatureIterator &other );
 | 
						|
};
 | 
						|
 | 
						|
class QgsCachedFeatureWriterIterator : QgsAbstractFeatureIterator
 | 
						|
{
 | 
						|
%Docstring(signature="appended")
 | 
						|
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
 | 
						|
%End
 | 
						|
 | 
						|
    virtual bool close();
 | 
						|
 | 
						|
%Docstring
 | 
						|
Close this iterator. No further features will be available.
 | 
						|
 | 
						|
:return: ``True`` if successful
 | 
						|
%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`
 | 
						|
%End
 | 
						|
 | 
						|
};
 | 
						|
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/core/qgscachedfeatureiterator.h                                  *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | 
						|
 ************************************************************************/
 |