This class provides the Traversal Interface for the verlet lists container. More...
#include <VLTraversalInterface.h>


Public Member Functions | |
| virtual | ~VLTraversalInterface ()=default |
| Destructor. | |
| virtual void | setCellsAndNeighborLists (std::vector< LinkedParticleCell > &cells, VerletListHelpers< ParticleType >::NeighborListCRS &neighborList, const std::unordered_map< const ParticleType *, size_t > &particleToIndex, const std::vector< ParticleType * > &indexToParticle) |
| Sets the information the traversal needs for the iteration. | |
Protected Attributes | |
| std::vector< LinkedParticleCell > * | _cells = nullptr |
| The cells of the underlying linked cells container of the verlet lists container. | |
| VerletListHelpers< ParticleType >::NeighborListCRS * | _neighborList = nullptr |
| The flat CRS neighbor list. | |
| const std::unordered_map< const ParticleType *, size_t > * | _particleToIndex = nullptr |
| Map from particle pointers to their dense SoA index. | |
| const std::vector< ParticleType * > * | _indexToParticle = nullptr |
| Vector mapping SoA indices to particle pointers. | |
This class provides the Traversal Interface for the verlet lists container.
The container only accepts traversals in its computeInteractions() method that implements this interface.
| LinkedParticleCell | the type of cells |
|
inlinevirtual |
Sets the information the traversal needs for the iteration.
| cells | The cells of the underlying LinkedCells container. |
| neighborList | The flat CRS neighbor list. |
| particleToIndex | Map from particle pointers to their dense SoA index. |
| indexToParticle | Vector mapping SoA indices to particle pointers. |
|
protected |
Vector mapping SoA indices to particle pointers.
Used by the AoS traversal path to resolve indices back to particle references.
|
protected |
Map from particle pointers to their dense SoA index.
Used by the rebuild traversal to create index-based neighbor lists.