9#include "../../query.h"
10#include "../Iterator/neighborGraphOneConnectedIterator.h"
28 template <
typename _NeighborGraph>
30 :
public Query<QueryInputIsIndex<typename _NeighborGraph::Traits::IndexType>, NeighborGraphQueryOutputType>
34 using Traits =
typename NeighborGraph::Traits;
52 return Iterator(m_graph->getIndexPtr()) + m_graph->beginId(QueryType::input());
58 return Iterator(m_graph->getIndexPtr()) + m_graph->endId(QueryType::input());
Aggregator class used to declare specialized structures using CRTP.
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.