QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | List of all members
QgsFeatureIteratorDataStream Class Reference

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

Public Member Functions

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

Protected Member Functions

void readNextEntry ()

Detailed Description

Utility class for bulk loading of R-trees.

Not a part of public API.

Definition at line 78 of file qgsspatialindex.cpp.

Constructor & Destructor Documentation

QgsFeatureIteratorDataStream::QgsFeatureIteratorDataStream ( const QgsFeatureIterator fi)
inline

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

Definition at line 82 of file qgsspatialindex.cpp.

QgsFeatureIteratorDataStream::~QgsFeatureIteratorDataStream ( )
inline

Definition at line 87 of file qgsspatialindex.cpp.

Member Function Documentation

virtual IData* QgsFeatureIteratorDataStream::getNext ( )
inlineoverridevirtual

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

Definition at line 93 of file qgsspatialindex.cpp.

virtual bool QgsFeatureIteratorDataStream::hasNext ( )
inlineoverridevirtual

returns true if there are more items in the stream.

Definition at line 102 of file qgsspatialindex.cpp.

void QgsFeatureIteratorDataStream::readNextEntry ( )
inlineprotected

Definition at line 111 of file qgsspatialindex.cpp.

virtual void QgsFeatureIteratorDataStream::rewind ( )
inlineoverridevirtual

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

Definition at line 108 of file qgsspatialindex.cpp.

virtual uint32_t QgsFeatureIteratorDataStream::size ( void  )
inlineoverridevirtual

returns the total number of entries available in the stream.

Definition at line 105 of file qgsspatialindex.cpp.


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