QGIS API Documentation
2.0.1-Dufour
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
src
core
qgsfeatureiterator.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsfeatureiterator.cpp
3
---------------------
4
begin : Juli 2012
5
copyright : (C) 2012 by Martin Dobias
6
email : wonder dot sk at gmail dot com
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
#include "
qgsfeatureiterator.h
"
16
17
18
QgsAbstractFeatureIterator::QgsAbstractFeatureIterator
(
const
QgsFeatureRequest
& request )
19
: mRequest( request )
20
, mClosed( false )
21
, refs( 0 )
22
{
23
}
24
25
QgsAbstractFeatureIterator::~QgsAbstractFeatureIterator
()
26
{
27
}
28
29
void
QgsAbstractFeatureIterator::ref
()
30
{
31
refs
++;
32
}
33
34
void
QgsAbstractFeatureIterator::deref
()
35
{
36
refs
--;
37
if
( !
refs
)
38
delete
this
;
39
}
40
42
43
QgsFeatureIterator
&
QgsFeatureIterator::operator=
(
const
QgsFeatureIterator
& other )
44
{
45
if
(
this
!= &other )
46
{
47
if
(
mIter
)
48
mIter
->
deref
();
49
mIter
= other.
mIter
;
50
if
(
mIter
)
51
mIter
->
ref
();
52
}
53
return
*
this
;
54
}
Generated on Tue Sep 24 2013 14:41:46 for QGIS API Documentation by
1.8.1.2