16 #ifndef QGSVECTORLAYERUTILS_H
17 #define QGSVECTORLAYERUTILS_H
19 #include "qgis_core.h"
58 QList<QgsVectorLayer *> layers()
const;
68 QMap<QgsVectorLayer *, QgsFeatureIds> mDuplicatedFeatures;
131 static QList< QVariant > getValues(
const QgsVectorLayer *layer,
const QString &fieldOrExpression,
bool &ok,
bool selectedOnly =
false,
QgsFeedback *feedback =
nullptr );
146 static QList< double > getDoubleValues(
const QgsVectorLayer *layer,
const QString &fieldOrExpression,
bool &ok,
bool selectedOnly =
false,
int *nullCount =
nullptr,
QgsFeedback *feedback =
nullptr );
161 static QVariant createUniqueValue(
const QgsVectorLayer *layer,
int fieldIndex,
const QVariant &seed = QVariant() );
169 static QVariant createUniqueValueFromCache(
const QgsVectorLayer *layer,
int fieldIndex,
const QSet<QVariant> &existingValues,
const QVariant &seed = QVariant() );
228 static std::unique_ptr<QgsVectorLayerFeatureSource> getFeatureSource( QPointer<QgsVectorLayer> layer,
QgsFeedback *feedback =
nullptr )
SIP_SKIP;
337 IgnoreAuxiliaryLayers = 1 << 1,
339 Q_DECLARE_FLAGS( CascadedFeatureFlags, CascadedFeatureFlag )
347 static bool impactsCascadeFeatures(
const QgsVectorLayer *layer,
const QgsFeatureIds &fids,
const QgsProject *project, QgsDuplicateFeatureContext &context
SIP_OUT, QgsVectorLayerUtils::CascadedFeatureFlags flags = QgsVectorLayerUtils::CascadedFeatureFlags() );
352 #endif // QGSVECTORLAYERUTILS_H