Portage::SearchSimplePoints< dim, SourceSwarm, TargetSwarm > Class Template Reference
A simple, crude search algorithm that does a quadratic-time search over a swarm of points. More...
#include <search_simple_points.h>
Public Member Functions | |
SearchSimplePoints ()=delete | |
Default constructor (disabled) More... | |
SearchSimplePoints (SourceSwarm const &source_swarm, TargetSwarm const &target_swarm, Portage::vector< Point< dim >> const &source_extents, Portage::vector< Point< dim >> const &target_extents, Meshfree::WeightCenter center=Meshfree::Scatter) | |
Builds the search structure for finding neighboring points. More... | |
SearchSimplePoints & | operator= (SearchSimplePoints const &)=delete |
Copy constructor - use default - std::transfor needs this. More... | |
~SearchSimplePoints ()=default | |
Destructor. More... | |
std::vector< int > | operator() (int point_id) const |
Find the source swarm points within an appropriate distance of a target point. More... | |
Detailed Description
template<int dim, class SourceSwarm, class TargetSwarm>
class Portage::SearchSimplePoints< dim, SourceSwarm, TargetSwarm >
A simple, crude search algorithm that does a quadratic-time search over a swarm of points.
- Template Parameters
-
SourceSwarm The swarm type of the input swarm. TargetSwarm The swarm type of the output swarm.
Constructor & Destructor Documentation
◆ SearchSimplePoints() [1/2]
template<int dim, class SourceSwarm , class TargetSwarm >
|
delete |
Default constructor (disabled)
◆ SearchSimplePoints() [2/2]
template<int dim, class SourceSwarm , class TargetSwarm >
|
inline |
Builds the search structure for finding neighboring points.
- Parameters
-
[in] source_swarm Pointer to source swarm info. [in] target_swarm Pointer to target swarm info. [in] source_extents Array of extents for source particles. [in] target_extents Array of extents for target particles.
Constructor for search structure for finding points from a source swarm that are near points in the target swarm.
◆ ~SearchSimplePoints()
template<int dim, class SourceSwarm , class TargetSwarm >
|
default |
Destructor.
Member Function Documentation
◆ operator()()
template<int dim, class SourceSwarm , class TargetSwarm >
|
inline |
Find the source swarm points within an appropriate distance of a target point.
- Parameters
-
[in] point_id The index of the point in the target swarm for which we wish to find the candidate neighbor points in the source swarm. [in,out] candidates Pointer to a vector of potential candidate points in the source swarm.
◆ operator=()
template<int dim, class SourceSwarm , class TargetSwarm >
|
delete |
Copy constructor - use default - std::transfor needs this.
Assignment operator (disabled)
The documentation for this class was generated from the following file:
- /home/portage/portage/portage/search/search_simple_points.h