QGIS API Documentation  3.2.0-Bonn (bc43194)
Public Member Functions | Protected Member Functions | List of all members
QgsFeatureIteratorDataStream Class Reference

Utility class for bulk loading of R-trees. More...

Inheritance diagram for QgsFeatureIteratorDataStream:
Inheritance graph
[legend]

Public Member Functions

 QgsFeatureIteratorDataStream (const QgsFeatureIterator &fi, QgsFeedback *feedback=nullptr)
 constructor - needs to load all data to a vector for later access when bulk loading More...
 
 ~QgsFeatureIteratorDataStream () override
 
IData * getNext () override
 returns a pointer to the next entry in the stream or 0 at the end of the stream. More...
 
bool hasNext () override
 returns true if there are more items in the stream. More...
 
void rewind () override
 sets the stream pointer to the first entry, if possible. More...
 
uint32_t size () override
 returns the total number of entries available in the stream. More...
 

Protected Member Functions

void readNextEntry ()
 

Detailed Description

Utility class for bulk loading of R-trees.

Not a part of public API.

Note
not available in Python bindings

Definition at line 97 of file qgsspatialindex.cpp.

Constructor & Destructor Documentation

◆ QgsFeatureIteratorDataStream()

QgsFeatureIteratorDataStream::QgsFeatureIteratorDataStream ( const QgsFeatureIterator fi,
QgsFeedback feedback = nullptr 
)
inlineexplicit

constructor - needs to load all data to a vector for later access when bulk loading

Definition at line 101 of file qgsspatialindex.cpp.

◆ ~QgsFeatureIteratorDataStream()

QgsFeatureIteratorDataStream::~QgsFeatureIteratorDataStream ( )
inlineoverride

Definition at line 108 of file qgsspatialindex.cpp.

Member Function Documentation

◆ getNext()

IData* QgsFeatureIteratorDataStream::getNext ( )
inlineoverride

returns a pointer to the next entry in the stream or 0 at the end of the stream.

Definition at line 114 of file qgsspatialindex.cpp.

◆ hasNext()

bool QgsFeatureIteratorDataStream::hasNext ( )
inlineoverride

returns true if there are more items in the stream.

Definition at line 126 of file qgsspatialindex.cpp.

◆ readNextEntry()

void QgsFeatureIteratorDataStream::readNextEntry ( )
inlineprotected

Definition at line 135 of file qgsspatialindex.cpp.

◆ rewind()

void QgsFeatureIteratorDataStream::rewind ( )
inlineoverride

sets the stream pointer to the first entry, if possible.

Definition at line 132 of file qgsspatialindex.cpp.

◆ size()

uint32_t QgsFeatureIteratorDataStream::size ( )
inlineoverride

returns the total number of entries available in the stream.

Definition at line 129 of file qgsspatialindex.cpp.


The documentation for this class was generated from the following file: