AutoPas  3.0.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
autopas::VLTraversalInterface< LinkedParticleCell > Class Template Reference

This class provides the Traversal Interface for the verlet lists container. More...

#include <VLTraversalInterface.h>

Inheritance diagram for autopas::VLTraversalInterface< LinkedParticleCell >:
Inheritance graph
[legend]
Collaboration diagram for autopas::VLTraversalInterface< LinkedParticleCell >:
Collaboration graph
[legend]

Public Member Functions

virtual ~VLTraversalInterface ()=default
 Destructor.
 
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.
 

Protected Attributes

std::vector< LinkedParticleCell > * _cells = nullptr
 The cells of the underlying linked cells container of the verlet lists container.
 
VerletListHelpers< typenameLinkedParticleCell::ParticleType >::NeighborListAoSType * _aosNeighborLists
 The AoS neighbor list of the verlet lists container.
 
std::vector< std::vector< size_t, autopas::AlignedAllocator< size_t > > > * _soaNeighborLists = nullptr
 The SoA neighbor list of the verlet lists container.
 

Detailed Description

template<class LinkedParticleCell>
class autopas::VLTraversalInterface< LinkedParticleCell >

This class provides the Traversal Interface for the verlet lists container.

The container only accepts traversals in its computeInteractions() method that implement this interface.

Template Parameters
LinkedParticleCellthe type of cells

Member Function Documentation

◆ setCellsAndNeighborLists()

template<class LinkedParticleCell >
virtual void autopas::VLTraversalInterface< LinkedParticleCell >::setCellsAndNeighborLists ( std::vector< LinkedParticleCell > &  cells,
typename VerletListHelpers< typename LinkedParticleCell::ParticleType >::NeighborListAoSType &  aosNeighborLists,
std::vector< std::vector< size_t, autopas::AlignedAllocator< size_t > > > &  soaNeighborLists 
)
inlinevirtual

Sets the information the traversal needs for the iteration.

Parameters
cellsThe cells of the underlying LinkedCells container.
aosNeighborListsThe AoS neighbor list.
soaNeighborListsThe SoA neighbor list.

Member Data Documentation

◆ _aosNeighborLists

template<class LinkedParticleCell >
VerletListHelpers<typenameLinkedParticleCell::ParticleType>::NeighborListAoSType* autopas::VLTraversalInterface< LinkedParticleCell >::_aosNeighborLists
protected
Initial value:
=
nullptr

The AoS neighbor list of the verlet lists container.


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