Selector for a particle container. More...
#include <ContainerSelector.h>
Public Member Functions | |
ContainerSelector (const std::array< double, 3 > &boxMin, const std::array< double, 3 > &boxMax, double cutoff) | |
Constructor for the ContainerSelecor class. | |
void | selectContainer (ContainerOption containerOption, ContainerSelectorInfo containerInfo) |
Sets the container to the given option. | |
void | resizeBox (const std::array< double, 3 > &boxMin, const std::array< double, 3 > &boxMax) |
Set new boundaries, convert the container and reevaluate particle ownership. | |
autopas::ParticleContainerInterface< Particle_T > & | getCurrentContainer () |
Getter for the optimal container. | |
const autopas::ParticleContainerInterface< Particle_T > & | getCurrentContainer () const |
Getter for the optimal container. | |
Selector for a particle container.
The class is given a list of allowed container and traversal options to choose from. This class selects the optimal container and delegates the choice of the optimal traversal down to this container.
Particle_T | |
ParticleCell |
|
inline |
Constructor for the ContainerSelecor class.
boxMin | Lower corner of the container. |
boxMax | Upper corner of the container. |
cutoff | Cutoff radius to be used in this container. |
|
inline |
Getter for the optimal container.
If no container is chosen yet the first allowed is selected.
|
inline |
Getter for the optimal container.
If no container is chosen yet the first allowed is selected.
|
inline |
Set new boundaries, convert the container and reevaluate particle ownership.
boxMin | |
boxMax |
void autopas::ContainerSelector< Particle_T >::selectContainer | ( | ContainerOption | containerOption, |
ContainerSelectorInfo | containerInfo | ||
) |
Sets the container to the given option.
containerOption | container to generate |
containerInfo | additional parameter for the container |