SPHinXsys  alpha version
Public Member Functions | Protected Attributes | List of all members
SPH::SwapSortableParticleData Class Reference

swap sortable particle data according to a sequence More...

#include <particle_sorting.h>

Public Member Functions

 SwapSortableParticleData (BaseParticles *base_particles)
 
void operator() (size_t *a, size_t *b)
 

Protected Attributes

StdLargeVec< size_t > & sequence_
 
StdLargeVec< size_t > & unsorted_id_
 
ParticleDatasortable_data_
 
DataAssembleOperation< swapParticleDataValueswap_particle_data_value_
 

Detailed Description

swap sortable particle data according to a sequence

Member Function Documentation

◆ operator()()

void SPH::SwapSortableParticleData::operator() ( size_t a,
size_t b 
)

the operater overload for swapping particle data. the arguments are the same with std::iter_swap


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