16 #ifndef QGSFEATUREID_H
17 #define QGSFEATUREID_H
29 #define FID_NULL std::numeric_limits<QgsFeatureId>::min()
30 #define FID_IS_NULL(fid) ( fid == std::numeric_limits<QgsFeatureId>::min() )
31 #define FID_IS_NEW(fid) ( fid < 0 && fid != std::numeric_limits<QgsFeatureId>::min() )
32 #define FID_TO_NUMBER(fid) static_cast<qint64>( fid )
33 #define FID_TO_STRING(fid) ( fid != std::numeric_limits<QgsFeatureId>::min() ? QString::number( fid ) : QStringLiteral( "NULL" ) )
34 #define STRING_TO_FID(str) ( (str).toLongLong() )
QSet< QgsFeatureId > QgsFeatureIds
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features