| 
    QGIS API Documentation
    3.26.3-Buenos Aires (65e4edfdad)
    
   | 
 
 
 
 
Go to the documentation of this file.
   28   QgsFeatureList::iterator it = mFeatures.begin();
 
   29   for ( ; it != mFeatures.end(); ++it )
 
   31     ( *it ).setFields( mFields );
 
   39   mFeatures.append( f );
 
   45   QgsFeatureList::iterator fIt = 
features.begin();
 
   46   for ( ; fIt != 
features.end(); ++fIt )
 
  
QgsFeatureList features() const
Returns the list of features contained in the store.
 
const QgsCoordinateReferenceSystem & crs
 
Container of fields for a vector layer.
 
bool addFeature(QgsFeature &feature, QgsFeatureSink::Flags flags=QgsFeatureSink::Flags()) override
Adds a single feature to the sink.
 
void setFields(const QgsFields &fields, bool initAttributes=false)
Assigns a field map with the feature to allow attribute access by attribute name.
 
void setFields(const QgsFields &fields)
Sets the store's fields.
 
QList< QgsFeature > QgsFeatureList
 
This class represents a coordinate reference system (CRS).
 
bool addFeatures(QgsFeatureList &features, QgsFeatureSink::Flags flags=QgsFeatureSink::Flags()) override
Adds a list of features to the sink.
 
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
 
QgsFields fields() const
Returns the store's field list.
 
QgsFeatureStore()=default
Constructor.