AutoPas  3.0.0
Loading...
Searching...
No Matches
VLTraversalInterface.h
Go to the documentation of this file.
1
7#pragma once
8
12
13namespace autopas {
14
21template <class LinkedParticleCell>
23 public:
27 virtual ~VLTraversalInterface() = default;
28
36 std::vector<LinkedParticleCell> &cells,
38 std::vector<std::vector<size_t, autopas::AlignedAllocator<size_t>>> &soaNeighborLists) {
39 _cells = &cells;
40 _aosNeighborLists = &aosNeighborLists;
41 _soaNeighborLists = &soaNeighborLists;
42 }
43
44 protected:
48 std::vector<LinkedParticleCell> *_cells = nullptr;
53 nullptr;
57 std::vector<std::vector<size_t, autopas::AlignedAllocator<size_t>>> *_soaNeighborLists = nullptr;
58};
59
60} // namespace autopas
AlignedAllocator class.
Definition: AlignedAllocator.h:29
This class provides the Traversal Interface for the verlet lists container.
Definition: VLTraversalInterface.h:22
VerletListHelpers< typenameLinkedParticleCell::ParticleType >::NeighborListAoSType * _aosNeighborLists
The AoS neighbor list of the verlet lists container.
Definition: VLTraversalInterface.h:52
virtual void setCellsAndNeighborLists(std::vector< LinkedParticleCell > &cells, typename VerletListHelpers< typename LinkedParticleCell::ParticleType >::NeighborListAoSType &aosNeighborLists, std::vector< std::vector< size_t, autopas::AlignedAllocator< size_t > > > &soaNeighborLists)
Sets the information the traversal needs for the iteration.
Definition: VLTraversalInterface.h:35
std::vector< LinkedParticleCell > * _cells
The cells of the underlying linked cells container of the verlet lists container.
Definition: VLTraversalInterface.h:48
std::vector< std::vector< size_t, autopas::AlignedAllocator< size_t > > > * _soaNeighborLists
The SoA neighbor list of the verlet lists container.
Definition: VLTraversalInterface.h:57
virtual ~VLTraversalInterface()=default
Destructor.
std::unordered_map< Particle_T *, std::vector< Particle_T * > > NeighborListAoSType
Neighbor list AoS style.
Definition: VerletListHelpers.h:26
This is the main namespace of AutoPas.
Definition: AutoPasDecl.h:32