This class provides the Traversal Interface for the verlet lists cells container. More...
#include <VLCTraversalInterface.h>
Public Member Functions | |
VLCTraversalInterface (ContainerOption typeOfList) | |
Constructor of the VLCTraversalInterface. | |
virtual void | setVerletList (NeighborList &verlet) |
Sets the verlet list for the traversal to iterate over. | |
Protected Member Functions | |
template<class PairwiseFunctor > | |
void | processCellLists (NeighborList &neighborLists, unsigned long cellIndex, PairwiseFunctor *pairwiseFunctor, DataLayoutOption dataLayout, bool useNewton3) |
Iterate over all neighbor lists list of a given cell. | |
template<class PairwiseFunctor > | |
void | loadSoA (PairwiseFunctor *pairwiseFunctor, NeighborList &neighborLists) |
Load the SoA from the respective neighbor list. | |
template<class PairwiseFunctor > | |
void | extractSoA (PairwiseFunctor *pairwiseFunctor, NeighborList &neighborLists) |
Extract the SoA from the respective neighbor list. | |
Protected Attributes | |
NeighborList * | _verletList |
The verlet list to iterate over. | |
SoA< typename Particle_T::SoAArraysType > * | _soa |
Structure of arrays to be used if the data layout is SoA. | |
ContainerOption | _typeOfList |
The type of neighbor list as an enum value. | |
This class provides the Traversal Interface for the verlet lists cells container.
This class handles traversals through the cell structures with neighbor lists. Derived classes handle the order through which the cells are traversed.
The container only accepts traversals in its computeInteractions() method that implement this interface.
|
inline |
Constructor of the VLCTraversalInterface.
typeOfList | indicates the type of neighbor list as an enum value, currently only used for getTraversalType |
|
inlineprotected |
Extract the SoA from the respective neighbor list.
pairwiseFunctor |
pairwiseFunctor | |
neighborLists |
|
inlineprotected |
Load the SoA from the respective neighbor list.
pairwiseFunctor |
pairwiseFunctor | |
neighborLists |
|
inlineprotected |
Iterate over all neighbor lists list of a given cell.
PairwiseFunctor |
neighborLists | A suitable neighbor list. |
cellIndex | |
pairwiseFunctor | |
dataLayout | |
useNewton3 |
|
inlinevirtual |
Sets the verlet list for the traversal to iterate over.
verlet | The verlet list to iterate over. |