Go to the documentation of this file.
7 #ifndef INCLUDE_JET_POINT_NEIGHBOR_SEARCHER2_H_
8 #define INCLUDE_JET_POINT_NEIGHBOR_SEARCHER2_H_
32 typedef std::function<void(
size_t,
const Vector2D&)>
70 const Vector2D& origin,
double radius)
const = 0;
78 virtual std::shared_ptr<PointNeighborSearcher2>
clone()
const = 0;
92 typedef std::shared_ptr<PointNeighborSearcherBuilder2>
95 #define JET_NEIGHBOR_SEARCHER2_TYPE_NAME(DerivedClassName) \
96 std::string typeName() const override { \
97 return #DerivedClassName; \
102 #endif // INCLUDE_JET_POINT_NEIGHBOR_SEARCHER2_H_
1-D read-only array accessor class.
Definition: array_accessor1.h:184
virtual bool hasNearbyPoint(const Vector2D &origin, double radius) const =0
std::shared_ptr< PointNeighborSearcher2 > PointNeighborSearcher2Ptr
Shared pointer for the PointNeighborSearcher2 type.
Definition: point_neighbor_searcher2.h:82
virtual void build(const ConstArrayAccessor1< Vector2D > &points)=0
Builds internal acceleration structure for given points list.
PointNeighborSearcher2()
Default constructor.
virtual std::shared_ptr< PointNeighborSearcher2 > clone() const =0
Creates a new instance of the object with same properties than original.
Definition: advection_solver2.h:18
virtual ~PointNeighborSearcher2()
Destructor.
2-D vector class.
Definition: vector2.h:24
std::function< void(size_t, const Vector2D &)> ForEachNearbyPointFunc
Definition: point_neighbor_searcher2.h:33
Abstract base class for 2-D point neighbor searcher builders.
Definition: point_neighbor_searcher2.h:85
Abstract base class for any serializable class.
Definition: serialization.h:17
virtual std::string typeName() const =0
Returns the type name of the derived class.
virtual PointNeighborSearcher2Ptr buildPointNeighborSearcher() const =0
Returns shared pointer of PointNeighborSearcher2 type.
Abstract base class for 2-D neighbor point searcher.
Definition: point_neighbor_searcher2.h:28
std::shared_ptr< PointNeighborSearcherBuilder2 > PointNeighborSearcherBuilder2Ptr
Shared pointer for the PointNeighborSearcherBuilder2 type.
Definition: point_neighbor_searcher2.h:93
virtual void forEachNearbyPoint(const Vector2D &origin, double radius, const ForEachNearbyPointFunc &callback) const =0