Traversal for VarVerletLists with VerletNeighborListAsBuild as neighbor list. More...
#include <VVLAsBuildTraversal.h>
Public Member Functions | |
VVLAsBuildTraversal (PairwiseFunctor *pairwiseFunctor, DataLayoutOption dataLayout, bool useNewton3) | |
The Constructor of VVLAsBuildTraversal. | |
void | initTraversal () override |
Initializes the traversal. | |
void | endTraversal () override |
Finalizes the traversal. | |
void | traverseParticles () override |
Traverse the particles by pairs, triplets etc. | |
bool | isApplicable () const override |
Checks if the traversal is applicable to the current state of the domain. | |
TraversalOption | getTraversalType () const override |
Return a enum representing the name of the traversal class. | |
![]() | |
VVLTraversalInterface ()=default | |
Constructor of VVLTraversalInterface. | |
virtual | ~VVLTraversalInterface ()=default |
Virtual default destructor. | |
virtual void | setNeighborListToTraverse (VerletNeighborListAsBuild< Particle_T > &neighborList) |
Sets the neighbor list to traverse. | |
![]() | |
virtual | ~TraversalInterface ()=default |
Destructor of TraversalInterface. | |
TraversalInterface (DataLayoutOption dataLayout, bool useNewton3) | |
Constructor of the TraversalInterface. | |
virtual TraversalOption | getTraversalType () const =0 |
Return a enum representing the name of the traversal class. | |
virtual bool | isApplicable () const =0 |
Checks if the traversal is applicable to the current state of the domain. | |
virtual void | initTraversal ()=0 |
Initializes the traversal. | |
virtual void | traverseParticles ()=0 |
Traverse the particles by pairs, triplets etc. | |
virtual void | endTraversal ()=0 |
Finalizes the traversal. | |
bool | getUseNewton3 () const |
Return whether the traversal uses newton 3. | |
DataLayoutOption | getDataLayout () const |
Return the data layout option. | |
Additional Inherited Members | |
![]() | |
VerletNeighborListAsBuild< Particle_T > * | _neighborList |
The neighbor list to traverse. | |
![]() | |
DataLayoutOption | _dataLayout |
The datalayout used by this traversal. | |
bool | _useNewton3 |
If this traversal makes use of newton3. | |
Traversal for VarVerletLists with VerletNeighborListAsBuild as neighbor list.
Every particle pair will be processed by the same thread in the same color as during the build of the neighbor list.
ParticleCell | |
Particle_T | The particle type used by the neighbor list. |
PairwiseFunctor | The type of the functor to use for the iteration. |
|
inlineexplicit |
The Constructor of VVLAsBuildTraversal.
pairwiseFunctor | The functor to use for the iteration. |
dataLayout | The data layout to use. |
useNewton3 | Whether or not this traversal uses newton 3. |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Return a enum representing the name of the traversal class.
Implements autopas::TraversalInterface.
|
inlineoverridevirtual |
Initializes the traversal.
Should be called before traverse().
Implements autopas::TraversalInterface.
|
inlineoverridevirtual |
Checks if the traversal is applicable to the current state of the domain.
Implements autopas::TraversalInterface.
|
inlineoverridevirtual |
Traverse the particles by pairs, triplets etc.
as determined by the Functor type.
Implements autopas::TraversalInterface.