Portage::SearchPointsByCells< dim, SourceSwarm, TargetSwarm > Class Template Reference
A simple, crude search algorithm that does a linear-time search over a swarm of points. More...
#include <search_points_by_cells.h>
Public Member Functions | |
SearchPointsByCells ()=delete | |
Default constructor (disabled) More... | |
SearchPointsByCells (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... | |
SearchPointsByCells (SearchPointsByCells const &)=default | |
Copy constructor - use default - std::transform needs this. More... | |
SearchPointsByCells & | operator= (SearchPointsByCells const &)=delete |
Assignment operator (disabled) More... | |
~SearchPointsByCells ()=default | |
Destructor. More... | |
std::vector< int > | operator() (int pointId) 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::SearchPointsByCells< dim, SourceSwarm, TargetSwarm >
A simple, crude search algorithm that does a linear-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
◆ SearchPointsByCells() [1/3]
template<int dim, class SourceSwarm , class TargetSwarm >
|
delete |
Default constructor (disabled)
◆ SearchPointsByCells() [2/3]
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.
◆ SearchPointsByCells() [3/3]
template<int dim, class SourceSwarm , class TargetSwarm >
|
default |
Copy constructor - use default - std::transform needs this.
◆ ~SearchPointsByCells()
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] pointId 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 |
Assignment operator (disabled)
The documentation for this class was generated from the following file:
- /home/portage/portage/portage/search/search_points_by_cells.h