AutoPas  3.0.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
autopas::utils::DataLayoutConverter< FunctorSoaWrapper > Class Template Reference

This converts cells to the target data Layout using the given functor. More...

#include <DataLayoutConverter.h>

Inheritance diagram for autopas::utils::DataLayoutConverter< FunctorSoaWrapper >:
Inheritance graph
[legend]

Public Member Functions

 DataLayoutConverter (FunctorSoaWrapper *functor, DataLayoutOption dataLayout)
 Constructor.
 
template<class ParticleCell >
void loadDataLayout (ParticleCell &cell)
 loads the target dataLayout in a cell
 
template<class ParticleCell >
void storeDataLayout (ParticleCell &cell)
 converts the dataLayout to aos
 

Detailed Description

template<class FunctorSoaWrapper>
class autopas::utils::DataLayoutConverter< FunctorSoaWrapper >

This converts cells to the target data Layout using the given functor.

Template Parameters
FunctorThe functor that defines the interaction of two particles.

Constructor & Destructor Documentation

◆ DataLayoutConverter()

template<class FunctorSoaWrapper >
autopas::utils::DataLayoutConverter< FunctorSoaWrapper >::DataLayoutConverter ( FunctorSoaWrapper *  functor,
DataLayoutOption  dataLayout 
)
inlineexplicit

Constructor.

Template Parameters
FunctorFunctor Type
Parameters
functorresponsible for the conversion
dataLayoutThe data layout to be used.

Member Function Documentation

◆ loadDataLayout()

template<class FunctorSoaWrapper >
template<class ParticleCell >
void autopas::utils::DataLayoutConverter< FunctorSoaWrapper >::loadDataLayout ( ParticleCell cell)
inline

loads the target dataLayout in a cell

Template Parameters
ParticleCellCell type
Parameters
cellto load the data in

◆ storeDataLayout()

template<class FunctorSoaWrapper >
template<class ParticleCell >
void autopas::utils::DataLayoutConverter< FunctorSoaWrapper >::storeDataLayout ( ParticleCell cell)
inline

converts the dataLayout to aos

Template Parameters
ParticleCellCell type
Parameters
cellto load the data in

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