PointParallelHashGridSearcher.hpp
Go to the documentation of this file.
246 std::shared_ptr<PointParallelHashGridSearcher2>;
250 std::shared_ptr<PointParallelHashGridSearcher3>;
ConstArrayView1< size_t > SortedIndices() const
Returns the sorted indices of the points.
static Builder GetBuilder()
Returns builder fox PointParallelHashGridSearcher.
friend class PointParallelHashGridSearcherTests
Definition: PointParallelHashGridSearcher.hpp:207
Abstract base class for N-D point neighbor searcher builders.
Definition: PointNeighborSearcher.hpp:119
void Serialize(std::vector< uint8_t > *buffer) const override
Serializes the neighbor searcher into the buffer.
void Deserialize(const std::vector< uint8_t > &buffer) override
Deserializes the neighbor searcher from the buffer.
std::function< void(size_t, const Vector< double, N > &)> ForEachNearbyPointFunc
Definition: PointNeighborSearcher.hpp:38
Abstract base class for N-D neighbor point searcher.
Definition: PointNeighborSearcher.hpp:32
Parallel version of hash grid-based N-D point searcher.
Definition: PointParallelHashGridSearcher.hpp:27
void ForEachNearbyPoint(const Vector< double, N > &origin, double radius, const ForEachNearbyPointFunc &callback) const override
Definition: Matrix.hpp:27
static std::enable_if_t< IsMatrixSizeStatic< Rows, Cols >), D > MakeConstant(ValueType val)
Makes a static matrix with constant entries.
Definition: MatrixDenseBase-Impl.hpp:152
Front-end to create PointParallelHashGridSearcher objects step by step.
Definition: PointParallelHashGridSearcher.hpp:257
ConstArrayView1< size_t > StartIndexTable() const
Returns the start index table.
Definition: pybind11Utils.hpp:20
void Build(const ConstArrayView1< Vector< double, N >> &points) override
Builds internal acceleration structure for given points list.
Definition: Array-Impl.hpp:19
ConstArrayView1< size_t > Keys() const
Returns the hash key list.
#define CUBBYFLOW_NEIGHBOR_SEARCHER_TYPE_NAME(DerivedClassName, N)
Definition: PointNeighborSearcher.hpp:163
void Set(const PointParallelHashGridSearcher &other)
Copy from the other instance.
~PointParallelHashGridSearcher() override=default
Default virtual destructor.
ConstArrayView1< size_t > EndIndexTable() const
Returns the end index table.
PointParallelHashGridSearcher & operator=(const PointParallelHashGridSearcher &other)
Copy assignment operator.
std::shared_ptr< PointNeighborSearcher< N > > Clone() const override
Creates a new instance of the object with same properties than original.
bool HasNearbyPoint(const Vector< double, N > &origin, double radius) const override
std::shared_ptr< PointParallelHashGridSearcher3 > PointParallelHashGridSearcher3Ptr
Shared pointer for the PointParallelHashGridSearcher3 type.
Definition: PointParallelHashGridSearcher.hpp:250
std::shared_ptr< PointParallelHashGridSearcher2 > PointParallelHashGridSearcher2Ptr
Shared pointer for the PointParallelHashGridSearcher2 type.
Definition: PointParallelHashGridSearcher.hpp:246
PointParallelHashGridSearcher(const Vector< size_t, N > &resolution, double gridSpacing)
Constructs hash grid with given resolution and grid spacing.