QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
19  : mRequest( request )
20  , mClosed( false )
21  , refs( 0 )
22 {
23 }
24 
26 {
27 }
28 
30 {
31  refs++;
32 }
33 
35 {
36  refs--;
37  if ( !refs )
38  delete this;
39 }
40 
42 
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 }