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

75 lines
2.9 KiB
Plaintext
Raw Normal View History

2017-05-23 09:45:57 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgscacheindex.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsAbstractCacheIndex
{
2017-05-23 09:45:57 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Abstract base class for cache indices
2017-05-23 09:45:57 +02:00
%End
%TypeHeaderCode
2017-05-23 09:45:57 +02:00
#include "qgscacheindex.h"
%End
public:
2017-05-23 09:45:57 +02:00
QgsAbstractCacheIndex();
2017-05-23 09:45:57 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsAbstractCacheIndex.
2017-05-23 09:45:57 +02:00
%End
virtual ~QgsAbstractCacheIndex();
virtual void flushFeature( QgsFeatureId fid ) = 0;
2017-05-23 09:45:57 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Is called, whenever a feature is removed from the cache. You should update your indexes, so
they become invalid in case this feature was required to successfully answer a request.
2017-05-23 09:45:57 +02:00
%End
virtual void flush() = 0;
2017-05-23 09:45:57 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Sometimes, the whole cache changes its state and its easier to just withdraw everything.
In this case, this method is issued. Be sure to clear all cache information in here.
2017-05-23 09:45:57 +02:00
%End
virtual void requestCompleted( const QgsFeatureRequest &featureRequest, const QgsFeatureIds &fids );
2017-05-23 09:45:57 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Implement this method to update the the indices, in case you need information contained by the request
to properly index. (E.g. spatial index)
Does nothing by default
2017-05-23 09:45:57 +02:00
:param featureRequest: The feature request that was answered
:param fids: The feature ids that have been returned
2017-05-23 09:45:57 +02:00
%End
virtual bool getCacheIterator( QgsFeatureIterator &featureIterator, const QgsFeatureRequest &featureRequest ) = 0;
2017-05-23 09:45:57 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Is called, when a feature request is issued on a cached layer.
If this cache index is able to completely answer the feature request, it will return true
and set the iterator to a valid iterator over the cached features. If it is not able
it will return false.
:param featureIterator: A reference to a :py:class:`QgsFeatureIterator`. A valid featureIterator will
2018-05-27 16:33:02 +10:00
be assigned in case this index is able to answer the request and the return
value is true.
:param featureRequest: The feature request, for which this index is queried.
2017-12-15 10:36:55 -04:00
:return: True, if this index holds the information to answer the request.
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/qgscacheindex.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/