Ponca  aa50bfdf187919869239c5b44b748842569114c1
Point Cloud Analysis library
Loading...
Searching...
No Matches
kdTreeNearestIterator.h
1/*
2 This Source Code Form is subject to the terms of the Mozilla Public
3 License, v. 2.0. If a copy of the MPL was not distributed with this
4 file, You can obtain one at http://mozilla.org/MPL/2.0/.
5*/
6
7#pragma once
8
9namespace Ponca {
10
11template<typename Index>
13{
14public:
15 inline KdTreeNearestIterator() = default;
16 inline KdTreeNearestIterator(Index index) : m_index(index) {}
17 virtual inline ~KdTreeNearestIterator() = default;
18
19public:
20 inline bool operator !=(const KdTreeNearestIterator& other) const
21 {return m_index != other.m_index;}
22 inline void operator ++(int) {++m_index;}
23 inline KdTreeNearestIterator& operator ++() {++m_index; return *this;}
24 inline Index operator * () const {return m_index;}
25
26protected:
27 Index m_index {-1};
28};
29
30} // namespace ponca
This Source Code Form is subject to the terms of the Mozilla Public License, v.