AutoPas  3.0.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
autopas::internal::UnknowingCellBorderAndFlagManager Class Reference

This is a FlagManager that does not know about the actual cells it contains. More...

#include <UnknowingCellBorderAndFlagManager.h>

Inheritance diagram for autopas::internal::UnknowingCellBorderAndFlagManager:
Inheritance graph
[legend]
Collaboration diagram for autopas::internal::UnknowingCellBorderAndFlagManager:
Collaboration graph
[legend]

Public Member Functions

bool cellCanContainHaloParticles (index_t index1d) const override
 Checks if the cell with the one-dimensional index index1d can contain halo particles.
 
bool cellCanContainOwnedParticles (index_t index1d) const override
 Checks if the cell with the one-dimensional index index1d can contain owned particles.
 
- Public Member Functions inherited from autopas::internal::CellBorderAndFlagManager
virtual ~CellBorderAndFlagManager ()=default
 Cestructor.
 
virtual bool cellCanContainHaloParticles (index_t index1d) const =0
 Checks if the cell with the one-dimensional index index1d can contain halo particles.
 
virtual bool cellCanContainOwnedParticles (index_t index1d) const =0
 Checks if the cell with the one-dimensional index index1d can contain owned particles.
 
bool ignoreCellForIteration (index_t index1d, IteratorBehavior behavior) const
 Checks if cell with index1d can be ignored for iteration with currently selected behavior.
 

Static Public Member Functions

static auto & get ()
 Get the static instance of this class.
 

Additional Inherited Members

- Public Types inherited from autopas::internal::CellBorderAndFlagManager
using index_t = std::size_t
 The index type to access the particle cells.
 

Detailed Description

This is a FlagManager that does not know about the actual cells it contains.

It assumes that in every cell there can be any type of particle.

Member Function Documentation

◆ cellCanContainHaloParticles()

bool autopas::internal::UnknowingCellBorderAndFlagManager::cellCanContainHaloParticles ( index_t  index1d) const
inlineoverridevirtual

Checks if the cell with the one-dimensional index index1d can contain halo particles.

Parameters
index1dthe one-dimensional index of the cell that should be checked
Returns
true if the cell can contain halo particles

Implements autopas::internal::CellBorderAndFlagManager.

◆ cellCanContainOwnedParticles()

bool autopas::internal::UnknowingCellBorderAndFlagManager::cellCanContainOwnedParticles ( index_t  index1d) const
inlineoverridevirtual

Checks if the cell with the one-dimensional index index1d can contain owned particles.

Parameters
index1dthe one-dimensional index of the cell that should be checked
Returns
true if the cell can contain owned particles

Implements autopas::internal::CellBorderAndFlagManager.

◆ get()

static auto & autopas::internal::UnknowingCellBorderAndFlagManager::get ( )
inlinestatic

Get the static instance of this class.

Returns
one instance.

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