9#include "../../query.h"
10#include "../Iterator/neighborGraphOneConnectedIterator.h"
28 template <
typename _NeighborGraph>
30 :
public Query<QueryInputIsIndex<typename _NeighborGraph::Traits::IndexType>, NeighborGraphQueryOutputType>
33 using NeighborGraph = _NeighborGraph;
47 PONCA_MULTIARCH
inline Self&
operator()(
int index) {
return QueryType::template operator()<
Self>(index); }
52 return Iterator(m_graph->getIndexPtr()) + m_graph->beginId(QueryType::input());
58 return Iterator(m_graph->getIndexPtr()) + m_graph->endId(QueryType::input());
_Traits Traits
Alias to the Traits type
Base iterator class for NeighborGraphOneConnectedQuery.
Extension of the Query class that allows to read the neighbors that are directly connected to the que...
Iterator end() const
Returns an iterator to the end of the k-nearest neighbors query.
Self & operator()(int index)
Call the k-nearest neighbors query with new input parameter.
Iterator begin() const
Returns an iterator to the beginning of the k-nearest neighbors query.
Composes the Query object depending on an input type and output type.
Base class for queries output types.
This Source Code Form is subject to the terms of the Mozilla Public License, v.
Output type of the NeighborGraphOneConnectedQuery.