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...
 
SearchSimplePointsoperator= (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
SourceSwarmThe swarm type of the input swarm.
TargetSwarmThe swarm type of the output swarm.

Constructor & Destructor Documentation

◆ SearchSimplePoints() [1/2]

template<int dim, class SourceSwarm , class TargetSwarm >
Portage::SearchSimplePoints< dim, SourceSwarm, TargetSwarm >::SearchSimplePoints ( )
delete

Default constructor (disabled)

◆ SearchSimplePoints() [2/2]

template<int dim, class SourceSwarm , class TargetSwarm >
Portage::SearchSimplePoints< dim, SourceSwarm, TargetSwarm >::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 
)
inline

Builds the search structure for finding neighboring points.

Parameters
[in]source_swarmPointer to source swarm info.
[in]target_swarmPointer to target swarm info.
[in]source_extentsArray of extents for source particles.
[in]target_extentsArray 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 >
Portage::SearchSimplePoints< dim, SourceSwarm, TargetSwarm >::~SearchSimplePoints ( )
default

Destructor.

Member Function Documentation

◆ operator()()

template<int dim, class SourceSwarm , class TargetSwarm >
std::vector<int> Portage::SearchSimplePoints< dim, SourceSwarm, TargetSwarm >::operator() ( int  point_id) const
inline

Find the source swarm points within an appropriate distance of a target point.

Parameters
[in]point_idThe index of the point in the target swarm for which we wish to find the candidate neighbor points in the source swarm.
[in,out]candidatesPointer to a vector of potential candidate points in the source swarm.

◆ operator=()

template<int dim, class SourceSwarm , class TargetSwarm >
SearchSimplePoints& Portage::SearchSimplePoints< dim, SourceSwarm, TargetSwarm >::operator= ( SearchSimplePoints< dim, SourceSwarm, TargetSwarm > const &  )
delete

Copy constructor - use default - std::transfor needs this.

Assignment operator (disabled)


The documentation for this class was generated from the following file: