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
9
namespace
Ponca
{
10
11
template
<
typename
Index>
12
class
KdTreeNearestIterator
13
{
14
public
:
15
inline
KdTreeNearestIterator
() =
default
;
16
inline
KdTreeNearestIterator
(Index index) : m_index(index) {}
17
virtual
inline
~KdTreeNearestIterator
() =
default
;
18
19
public
:
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
26
protected
:
27
Index m_index {-1};
28
};
29
30
}
// namespace ponca
Ponca::KdTreeNearestIterator
Definition:
kdTreeNearestIterator.h:13
Ponca
This Source Code Form is subject to the terms of the Mozilla Public License, v.
Definition:
limitedPriorityQueue.h:14
src
Ponca
src
SpatialPartitioning
KdTree
Iterator
kdTreeNearestIterator.h
Generated on Tue Oct 29 2024 09:49:07 for Ponca by
1.9.6