QGIS API Documentation
3.43.0-Master (2a27c31701b)
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Symbols
3
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
Loading...
Searching...
No Matches
src
core
qgsattributes.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsattributes.cpp - QgsAttributes
3
4
---------------------
5
begin : 29.3.2017
6
copyright : (C) 2017 by Denis Rouzaud
7
email : denis.rouzaud@gmail.com
8
***************************************************************************
9
* *
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
14
* *
15
***************************************************************************/
16
17
#include "
qgsattributes.h
"
18
#include "
qgis.h
"
19
20
21
QgsAttributeMap
QgsAttributes::toMap
()
const
22
{
23
QgsAttributeMap
map;
24
for
(
int
idx = 0; idx < count(); ++idx )
25
{
26
const
QVariant v = at( idx );
27
if
( v.isValid() )
28
map.insert( idx, v );
29
}
30
return
map;
31
}
21
QgsAttributeMap
QgsAttributes::toMap
()
const
{
…
}
32
33
uint
qHash
(
const
QgsAttributes
&attributes )
34
{
35
if
( attributes.isEmpty() )
36
return
std::numeric_limits<uint>::max();
37
else
38
return
qHash
( attributes.at( 0 ) );
39
}
33
uint
qHash
(
const
QgsAttributes
&attributes ) {
…
}
QgsAttributes
A vector of attributes.
Definition
qgsattributes.h:60
QgsAttributes::toMap
CORE_EXPORT QgsAttributeMap toMap() const
Returns a QgsAttributeMap of the attribute values.
Definition
qgsattributes.cpp:21
qgis.h
qHash
uint qHash(const QgsAttributes &attributes)
Hash for QgsAttributes.
Definition
qgsattributes.cpp:33
qgsattributes.h
QgsAttributeMap
QMap< int, QVariant > QgsAttributeMap
Definition
qgsattributes.h:43
Generated on Tue Mar 18 2025 12:31:40 for QGIS API Documentation by
1.9.8