Simple ad-hoc N-D point searcher. More...
#include <Core/Searcher/PointSimpleListSearcher.hpp>
Classes | |
| class | Builder |
| Front-end to create PointSimpleListSearcher objects step by step. More... | |
Static Public Member Functions | |
| static Builder | GetBuilder () |
| Returns builder fox PointSimpleListSearcher. | |
Additional Inherited Members | |
Public Types inherited from CubbyFlow::PointNeighborSearcher< N > | |
| using | ForEachNearbyPointFunc = std::function< void(size_t, const Vector< double, N > &)> |
Detailed Description
class CubbyFlow::PointSimpleListSearcher< N >
Simple ad-hoc N-D point searcher.
This class implements N-D point searcher simply by looking up every point in the list. Thus, this class is not ideal for searches involving large number of points, but only for small set of items.
Constructor & Destructor Documentation
◆ PointSimpleListSearcher() [1/3]
|
default |
Default constructor.
◆ ~PointSimpleListSearcher()
|
overridedefault |
Default virtual destructor.
◆ PointSimpleListSearcher() [2/3]
| CubbyFlow::PointSimpleListSearcher< N >::PointSimpleListSearcher | ( | const PointSimpleListSearcher< N > & | other | ) |
Copy constructor.
◆ PointSimpleListSearcher() [3/3]
|
noexcept |
Move constructor.
Member Function Documentation
◆ Build()
|
overridevirtual |
Builds internal structure for given points list and max search radius.
For this class, this function simply copies the given point list to the internal list. The max search radius will be unused.
- Parameters
-
[in] points The points to search. [in] maxSearchRadius Max search radius (ignored).
Implements CubbyFlow::PointNeighborSearcher< N >.
◆ Clone()
|
overridevirtual |
Creates a new instance of the object with same properties than original.
- Returns
- Copy of this object.
Implements CubbyFlow::PointNeighborSearcher< N >.
◆ Deserialize()
|
overridevirtual |
Deserializes the neighbor searcher from the buffer.
Implements CubbyFlow::Serializable.
◆ ForEachNearbyPoint()
|
overridevirtual |
Invokes the callback function for each nearby point around the origin within given radius.
- Parameters
-
[in] origin The origin position. [in] radius The search radius. [in] callback The callback function.
Implements CubbyFlow::PointNeighborSearcher< N >.
◆ GetBuilder()
|
static |
Returns builder fox PointSimpleListSearcher.
◆ HasNearbyPoint()
|
overridevirtual |
Returns true if there are any nearby points for given origin within radius.
- Parameters
-
[in] origin The origin. [in] radius The radius.
- Returns
- True if has nearby point, false otherwise.
Implements CubbyFlow::PointNeighborSearcher< N >.
◆ operator=() [1/2]
| PointSimpleListSearcher & CubbyFlow::PointSimpleListSearcher< N >::operator= | ( | const PointSimpleListSearcher< N > & | other | ) |
Copy assignment operator.
◆ operator=() [2/2]
|
noexcept |
Move assignment operator.
◆ Serialize()
|
overridevirtual |
Serializes the neighbor searcher into the buffer.
Implements CubbyFlow::Serializable.
◆ Set()
| void CubbyFlow::PointSimpleListSearcher< N >::Set | ( | const PointSimpleListSearcher< N > & | other | ) |
Copy from the other instance.
The documentation for this class was generated from the following file:
- Core/Searcher/PointSimpleListSearcher.hpp
Public Member Functions inherited from
1.9.8