Go to the documentation of this file.
7 #ifndef INCLUDE_JET_POINT_SIMPLE_LIST_SEARCHER2_H_
8 #define INCLUDE_JET_POINT_SIMPLE_LIST_SEARCHER2_H_
67 const Vector2D& origin,
double radius)
const override;
84 void serialize(std::vector<uint8_t>* buffer)
const override;
87 void deserialize(
const std::vector<uint8_t>& buffer)
override;
93 std::vector<Vector2D> _points;
117 #endif // INCLUDE_JET_POINT_SIMPLE_LIST_SEARCHER2_H_
#define JET_NEIGHBOR_SEARCHER2_TYPE_NAME(DerivedClassName)
Definition: point_neighbor_searcher2.h:95
1-D read-only array accessor class.
Definition: array_accessor1.h:184
std::shared_ptr< PointNeighborSearcher2 > PointNeighborSearcher2Ptr
Shared pointer for the PointNeighborSearcher2 type.
Definition: point_neighbor_searcher2.h:82
Simple ad-hoc 2-D point searcher.
Definition: point_simple_list_searcher2.h:22
PointSimpleListSearcher2()
Default constructor.
PointNeighborSearcher2Ptr clone() const override
Creates a new instance of the object with same properties than original.
void serialize(std::vector< uint8_t > *buffer) const override
Serializes the neighbor searcher into the buffer.
Definition: advection_solver2.h:18
Front-end to create PointSimpleListSearcher2 objects step by step.
Definition: point_simple_list_searcher2.h:103
2-D vector class.
Definition: vector2.h:24
void deserialize(const std::vector< uint8_t > &buffer) override
Deserializes the neighbor searcher from the buffer.
PointSimpleListSearcher2Ptr makeShared() const
Builds shared pointer of PointSimpleListSearcher2 instance.
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
std::shared_ptr< PointSimpleListSearcher2 > PointSimpleListSearcher2Ptr
Shared pointer for the PointSimpleListSearcher2 type.
Definition: point_simple_list_searcher2.h:97
void build(const ConstArrayAccessor1< Vector2D > &points) override
Builds internal structure for given points list.
void set(const PointSimpleListSearcher2 &other)
Copy from the other instance.
PointNeighborSearcher2Ptr buildPointNeighborSearcher() const override
Returns shared pointer of PointNeighborSearcher3 type.
void forEachNearbyPoint(const Vector2D &origin, double radius, const ForEachNearbyPointFunc &callback) const override
Abstract base class for 2-D neighbor point searcher.
Definition: point_neighbor_searcher2.h:28
PointSimpleListSearcher2 build() const
Builds PointSimpleListSearcher2 instance.
static Builder builder()
Returns builder fox PointSimpleListSearcher2.
PointSimpleListSearcher2 & operator=(const PointSimpleListSearcher2 &other)
Assignment operator.
bool hasNearbyPoint(const Vector2D &origin, double radius) const override
PointSimpleListSearcher2(const PointSimpleListSearcher2 &other)
Copy constructor.