CGAL 5.0.1 - Spatial Sorting
|
#include <CGAL/Multiscale_sort.h>
The class Multiscale_sort
represents a sorting algorithm adaptor.
Given a range of n
points:
Sort
on the last (1 - ratio) * n
points, ratio * n
points, stopping when there are less than threshold
points. Creation | |
Multiscale_sort (const Sort &sort=Sort(), std::ptrdiff_t threshold=1, double ratio=0.5) | |
constructs an instance with traits as traits class instance. | |
Operations | |
template<class RandomAccessIterator > | |
void | operator() (RandomAccessIterator begin, RandomAccessIterator end) const |
It sorts the range [begin, end) . More... | |
void CGAL::Multiscale_sort< Sort >::operator() | ( | RandomAccessIterator | begin, |
RandomAccessIterator | end | ||
) | const |
It sorts the range [begin, end)
.
Sort::operator()(RandomAccessIterator begin, RandomAccessIterator end)
must be defined.