17 #ifndef QGS_FEATUREPOOL_H
18 #define QGS_FEATUREPOOL_H
24 #include "qgis_analysis.h"
71 virtual void updateFeature(
QgsFeature &feature ) = 0;
111 QPointer<QgsVectorLayer> layerPtr()
const SIP_SKIP;
116 QString layerId()
const;
134 QString layerName()
const;
142 void insertFeature(
const QgsFeature &feature,
bool skipLock =
false );
148 void refreshCache(
const QgsFeature &feature );
179 static const int CACHE_SIZE = 1000;
180 QCache<QgsFeatureId, QgsFeature> mFeatureCache;
181 QPointer<QgsVectorLayer> mLayer;
182 mutable QReadWriteLock mCacheLock;
186 std::unique_ptr<QgsVectorLayerFeatureSource> mFeatureSource;
190 #endif // QGS_FEATUREPOOL_H