25   , mSelectedFeatures( initialSelection )
    31   return mSelectedFeatures.size();
    36   mSelectedFeatures += ids;
    42   mSelectedFeatures -= ids;
    51   mSelectedFeatures = ids;
    57   return mSelectedFeatures;
 QSet< QgsFeatureId > QgsFeatureIds
 
int selectedFeatureCount() override
Returns the number of features that are selected in this layer. 
 
void selectionChanged(const QgsFeatureIds &selected, const QgsFeatureIds &deselected, bool clearAndSelect)
This signal is emitted when selection was changed. 
 
void deselect(const QgsFeatureIds &ids) override
Deselect features by feature ids. 
 
QgsGenericFeatureSelectionManager(QObject *parent=nullptr)
 
void setSelectedFeatures(const QgsFeatureIds &ids) override
Change selection to the new set of features. 
 
Is an interface class to abstract feature selection handling. 
 
void select(const QgsFeatureIds &ids) override
Select features by feature ids. 
 
const QgsFeatureIds & selectedFeatureIds() const override
Returns reference to identifiers of selected features.