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::Type wkbType() const FINAL
Returns the WKBType or WKBUnknown in case of error.
QgsWkbTypes::Type wkbType() const
Returns type of the geometry as a WKB type (point / linestring / polygon etc.)
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.
static bool hasZ(Type type)
Tests whether a WKB type contains the z-dimension.
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.