SPHinXsys
alpha version
|
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_ |
ParticleData & | sortable_data_ |
DataAssembleOperation< swapParticleDataValue > | swap_particle_data_value_ |
swap sortable particle data according to a sequence
the operater overload for swapping particle data. the arguments are the same with std::iter_swap