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
qgscachedfeatureiterator.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgscachedfeatureiterator.h
3
--------------------------------------
4
Date : 12.2.2013
5
Copyright : (C) 2013 Matthias Kuhn
6
Email : matthias dot kuhn at gmx dot ch
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 QGSCACHEDFEATUREITERATOR_H
17
#define QGSCACHEDFEATUREITERATOR_H
18
19
#include "
qgsfeature.h
"
20
#include "
qgsfeatureiterator.h
"
21
22
class
QgsVectorLayerCache
;
23
29
class
CORE_EXPORT
QgsCachedFeatureIterator
:
public
QgsAbstractFeatureIterator
30
{
31
public
:
41
QgsCachedFeatureIterator
(
QgsVectorLayerCache
* vlCache,
QgsFeatureRequest
featureRequest,
QgsFeatureIds
featureIds );
42
49
virtual
bool
nextFeature
(
QgsFeature
& f );
50
56
virtual
bool
rewind
();
57
63
virtual
bool
close
();
64
65
private
:
66
QgsFeatureIds
mFeatureIds
;
67
QgsVectorLayerCache
*
mVectorLayerCache
;
68
QgsFeatureIds::Iterator
mFeatureIdIterator
;
69
};
70
76
class
CORE_EXPORT
QgsCachedFeatureWriterIterator
:
public
QgsAbstractFeatureIterator
77
{
78
public
:
86
QgsCachedFeatureWriterIterator
(
QgsVectorLayerCache
* vlCache,
QgsFeatureRequest
featureRequest );
87
94
virtual
bool
nextFeature
(
QgsFeature
& f );
95
101
virtual
bool
rewind
();
102
108
virtual
bool
close
();
109
110
private
:
111
QgsFeatureIterator
mFeatIt
;
112
QgsVectorLayerCache
*
mVectorLayerCache
;
113
QgsFeatureIds
mFids
;
114
};
115
#endif // QGSCACHEDFEATUREITERATOR_H
Generated on Tue Sep 24 2013 14:41:46 for QGIS API Documentation by
1.8.1.2