18 #ifndef QGSSPATIALINDEXKDBUSH_PRIVATE_H
19 #define QGSSPATIALINDEXKDBUSH_PRIVATE_H
45 class PointXYKDBush :
public kdbush::KDBush< std::pair<double, double>, QgsSpatialIndexKDBushData, std::size_t >
51 fillFromIterator( fi, feedback, callback );
58 fillFromIterator( it, feedback,
nullptr );
71 if ( callback && !( *callback )( f ) )
94 sortKD( 0, size - 1, 0 );
97 std::size_t size()
const
104 class QgsSpatialIndexKDBushPrivate
109 : index( std::make_unique < PointXYKDBush >( fi, feedback ) )
113 : index( std::make_unique < PointXYKDBush >( source, feedback ) )
117 : index( std::make_unique < PointXYKDBush >( fi, feedback, &callback ) )
121 std::unique_ptr< PointXYKDBush > index;
126 #endif // QGSSPATIALINDEXKDBUSH_PRIVATE_H