Interface for neighbor lists used by VarVerletLists. More...
#include <VerletNeighborListInterface.h>
Public Member Functions | |
virtual | ~VerletNeighborListInterface ()=default |
virtual default destructor | |
virtual ContainerOption | getContainerType () const =0 |
Returns the ContainerOption this neighbor list is for. | |
virtual void | buildAoSNeighborList (LinkedCells< Particle_T > &linkedCells, bool useNewton3)=0 |
Builds the neighbor list from a LinkedCells object. | |
virtual bool | checkNeighborListValidity (bool useNewton3, double cutoff)=0 |
Checks if the neighbor list contains all pairs that is should. | |
virtual void | generateSoAFromAoS ()=0 |
Generates the SoA from the AoS. | |
virtual bool | isSoAListValid () const =0 |
Returns whether the SoA is build and up to date with the AoS. | |
virtual long | getNumberOfNeighborPairs () const =0 |
Returns the number of neighbor pairs in the list. | |
Interface for neighbor lists used by VarVerletLists.
Particle_T | The particle type this neighbor list uses. |
|
pure virtual |
Builds the neighbor list from a LinkedCells object.
This only builds the AoS.
linkedCells | The linked cells to use for building the neighbor list. |
useNewton3 | If true, use newton 3 for the neighbor list. |
Implemented in autopas::VerletNeighborListAsBuild< Particle_T >.
|
pure virtual |
Checks if the neighbor list contains all pairs that is should.
This is very costly, comparable to rebuilding it.
useNewton3 | If the neighbor list should use newton 3. |
cutoff | The cutoff. Two particles that are further away than this distance are not considered. |
Implemented in autopas::VerletNeighborListAsBuild< Particle_T >.
|
pure virtual |
Generates the SoA from the AoS.
Implemented in autopas::VerletNeighborListAsBuild< Particle_T >.
|
pure virtual |
Returns the ContainerOption this neighbor list is for.
Implemented in autopas::VerletNeighborListAsBuild< Particle_T >.
|
pure virtual |
Returns the number of neighbor pairs in the list.
Implemented in autopas::VerletNeighborListAsBuild< Particle_T >.
|
pure virtual |
Returns whether the SoA is build and up to date with the AoS.
Implemented in autopas::VerletNeighborListAsBuild< Particle_T >.