9#include "../../indexSquaredDistance.h"
10#include "../../../Common/Containers/limitedPriorityQueue.h"
29 template <
typename Index,
typename DataPo
int,
int MAX_KNN_SIZE>
33 using iterator_category = std::input_iterator_tag;
34 using difference_type = std::ptrdiff_t;
35 using value_type = Index;
36 using pointer = Index*;
37 using reference =
const Index&;
39 using Scalar =
typename DataPoint::Scalar;
50 return m_iterator !=
other.m_iterator;
56 return m_iterator ==
other.m_iterator;
78 PONCA_MULTIARCH
inline reference
operator*()
const {
return const_cast<reference
>(m_iterator->index); }
Aggregator class used to declare specialized structures using CRTP.
Input iterator to read the KdTreeKNearestQueryBase object.
bool operator==(const KdTreeKNearestIterator &other) const
Equality operand.
KdTreeKNearestIterator operator++(int)
Postfix increment.
void operator+=(int i)
Value increment.
KdTreeKNearestIterator & operator++()
Prefix increment.
reference operator*() const
Dereference operator.
bool operator!=(const KdTreeKNearestIterator &other) const
Inequality operand.
This Source Code Form is subject to the terms of the Mozilla Public License, v.