18template <
class FunctorSoaWrapper>
28 : _functor(functor), _dataLayout(dataLayout) {}
35 template <
class ParticleCell>
38 switch (
static_cast<DataLayoutOption::Value
>(_dataLayout)) {
39 case DataLayoutOption::aos: {
42 case DataLayoutOption::soa: {
43 _functor->SoALoader(cell, cell._particleSoABuffer, 0,
false);
54 template <
class ParticleCell>
57 switch (
static_cast<DataLayoutOption::Value
>(_dataLayout)) {
58 case DataLayoutOption::aos: {
61 case DataLayoutOption::soa: {
62 _functor->SoAExtractor(cell, cell._particleSoABuffer, 0);
72 FunctorSoaWrapper *_functor;
74 DataLayoutOption _dataLayout;
Class for Cells of Particles.
Definition: ParticleCell.h:51
This converts cells to the target data Layout using the given functor.
Definition: DataLayoutConverter.h:19
void loadDataLayout(ParticleCell &cell)
loads the target dataLayout in a cell
Definition: DataLayoutConverter.h:36
DataLayoutConverter(FunctorSoaWrapper *functor, DataLayoutOption dataLayout)
Constructor.
Definition: DataLayoutConverter.h:27
void storeDataLayout(ParticleCell &cell)
converts the dataLayout to aos
Definition: DataLayoutConverter.h:55
In this namespace some helper classes and functions can be found used inside of AutoPas.
Definition: namespaces.h:44