QGIS API Documentation  3.10.0-A Coruña (6c816b4204)
Macros | Typedefs
qgsfeatureid.h File Reference
#include <QSet>
#include "qgis_sip.h"
Include dependency graph for qgsfeatureid.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FID_IS_NEW(fid)   ( fid < 0 && fid != std::numeric_limits<QgsFeatureId>::min() )
 
#define FID_IS_NULL(fid)   ( fid == std::numeric_limits<QgsFeatureId>::min() )
 
#define FID_NULL   std::numeric_limits<QgsFeatureId>::min()
 
#define FID_TO_NUMBER(fid)   static_cast<qint64>( fid )
 
#define FID_TO_STRING(fid)   ( fid != std::numeric_limits<QgsFeatureId>::min() ? QString::number( fid ) : QStringLiteral( "NULL" ) )
 
#define STRING_TO_FID(str)   ( (str).toLongLong() )
 

Typedefs

typedef qint64 QgsFeatureId
 
typedef QSet< QgsFeatureIdQgsFeatureIds
 

Macro Definition Documentation

◆ FID_IS_NEW

#define FID_IS_NEW (   fid)    ( fid < 0 && fid != std::numeric_limits<QgsFeatureId>::min() )

Definition at line 28 of file qgsfeatureid.h.

◆ FID_IS_NULL

#define FID_IS_NULL (   fid)    ( fid == std::numeric_limits<QgsFeatureId>::min() )

Definition at line 27 of file qgsfeatureid.h.

◆ FID_NULL

#define FID_NULL   std::numeric_limits<QgsFeatureId>::min()

Definition at line 26 of file qgsfeatureid.h.

◆ FID_TO_NUMBER

#define FID_TO_NUMBER (   fid)    static_cast<qint64>( fid )

Definition at line 29 of file qgsfeatureid.h.

◆ FID_TO_STRING

#define FID_TO_STRING (   fid)    ( fid != std::numeric_limits<QgsFeatureId>::min() ? QString::number( fid ) : QStringLiteral( "NULL" ) )

Definition at line 30 of file qgsfeatureid.h.

◆ STRING_TO_FID

#define STRING_TO_FID (   str)    ( (str).toLongLong() )

Definition at line 31 of file qgsfeatureid.h.

Typedef Documentation

◆ QgsFeatureId

typedef qint64 QgsFeatureId

Definition at line 25 of file qgsfeatureid.h.

◆ QgsFeatureIds

typedef QSet<QgsFeatureId> QgsFeatureIds

Definition at line 34 of file qgsfeatureid.h.