QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
QgsAbstractFeatureSource Class Referenceabstract

Base class that can be used for any class that is capable of returning features. More...

#include <qgsfeaturerequest.h>

Inheritance diagram for QgsAbstractFeatureSource:
Inheritance graph
[legend]

Public Member Functions

virtual ~QgsAbstractFeatureSource ()
 
virtual QgsFeatureIterator getFeatures (const QgsFeatureRequest &request=QgsFeatureRequest())=0
 Gets an iterator for features matching the specified request. More...
 

Protected Member Functions

void iteratorClosed (QgsAbstractFeatureIterator *it)
 
void iteratorOpened (QgsAbstractFeatureIterator *it)
 

Protected Attributes

QSet< QgsAbstractFeatureIterator * > mActiveIterators
 

Friends

template<typename >
class QgsAbstractFeatureIteratorFromSource
 

Detailed Description

Base class that can be used for any class that is capable of returning features.

Since
QGIS 2.4

Definition at line 1009 of file qgsfeaturerequest.h.

Constructor & Destructor Documentation

◆ ~QgsAbstractFeatureSource()

QgsAbstractFeatureSource::~QgsAbstractFeatureSource ( )
virtual

Definition at line 416 of file qgsfeaturerequest.cpp.

Member Function Documentation

◆ getFeatures()

virtual QgsFeatureIterator QgsAbstractFeatureSource::getFeatures ( const QgsFeatureRequest request = QgsFeatureRequest())
pure virtual

Gets an iterator for features matching the specified request.

Parameters
requestThe request
Returns
A feature iterator

Implemented in QgsVectorLayerFeatureSource.

◆ iteratorClosed()

void QgsAbstractFeatureSource::iteratorClosed ( QgsAbstractFeatureIterator it)
protected

Definition at line 431 of file qgsfeaturerequest.cpp.

◆ iteratorOpened()

void QgsAbstractFeatureSource::iteratorOpened ( QgsAbstractFeatureIterator it)
protected

Definition at line 426 of file qgsfeaturerequest.cpp.

Friends And Related Function Documentation

◆ QgsAbstractFeatureIteratorFromSource

template<typename >
friend class QgsAbstractFeatureIteratorFromSource
friend

Definition at line 1034 of file qgsfeaturerequest.h.

Member Data Documentation

◆ mActiveIterators

QSet< QgsAbstractFeatureIterator * > QgsAbstractFeatureSource::mActiveIterators
protected

Definition at line 1032 of file qgsfeaturerequest.h.


The documentation for this class was generated from the following files: