46 return ( mLayer && mFeature.
isValid() && hasValidGeometry() );
51 return ( mLayer == other.
layer() ) && ( mFeature == other.
feature() );
56 return ( mLayer != other.
layer() ) || ( mFeature != other.
feature() );
59 bool QgsQuickFeatureLayerPair::hasValidGeometry()
const bool isValid() const
Returns the validity of this feature.
QgsWkbTypes::GeometryType geometryType() const
Returns point, line or polygon.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
bool hasGeometry() const
Returns true if the feature has an associated geometry.
QgsFeature & featureRef()
Feature that belongs to layer.
QgsFeature feature() const
Feature that belongs to layer.
bool operator!=(const QgsQuickFeatureLayerPair &other) const
bool isValid() const
Whether.
bool operator==(const QgsQuickFeatureLayerPair &other) const
QgsFeature feature
Feature that belongs to layer.
QgsVectorLayer * layer() const
Vector layer to which the feature belongs.
QgsQuickFeatureLayerPair()
Constructs invalid feature-layer pair.
QgsVectorLayer layer
Vector layer to which the feature belongs.
QgsWkbTypes::GeometryType type
Pair of QgsFeature and QgsVectorLayer.
Represents a vector layer which manages a vector based data sets.