QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
src
core
qgsfeatureid.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsfeatureid.h
3
--------------------------------------
4
Date : 3.9.2018
5
Copyright : (C) 2018 by Matthias Kuhn
6
email :
[email protected]
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSFEATUREID_H
17
#define QGSFEATUREID_H
18
19
#include <QSet>
20
#include "
qgis_sip.h
"
21
22
// feature id (currently 64 bit)
23
28
typedef
qint64
QgsFeatureId
SIP_SKIP
;
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() )
35
36
#ifndef SIP_RUN
37
typedef
QSet<QgsFeatureId>
QgsFeatureIds
;
38
#else
39
typedef
QSet<qint64>
QgsFeatureIds
;
40
#endif
41
42
#endif
SIP_SKIP
#define SIP_SKIP
Definition:
qgis_sip.h:126
qgis_sip.h
QgsFeatureIds
QSet< QgsFeatureId > QgsFeatureIds
Definition:
qgsfeatureid.h:37
QgsFeatureId
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features
Definition:
qgsfeatureid.h:28
Generated on Sun Sep 11 2022 00:03:17 for QGIS API Documentation by
1.8.17