AutoPas  3.0.0
Loading...
Searching...
No Matches
UnknowingCellBorderAndFlagManager.h
Go to the documentation of this file.
1
7#pragma once
9
10namespace autopas::internal {
16 using index_t = std::size_t;
17
18 public:
19 bool cellCanContainHaloParticles(index_t index1d) const override { return true; }
20 bool cellCanContainOwnedParticles(index_t index1d) const override { return true; }
21
26 static auto &get() {
27 const static UnknowingCellBorderAndFlagManager unknowingCellBorderAndFlagManager{};
28 return unknowingCellBorderAndFlagManager;
29 }
30};
31
32} // namespace autopas::internal
Interface class to handle cell borders and cell types of cells.
Definition: CellBorderAndFlagManager.h:17
This is a FlagManager that does not know about the actual cells it contains.
Definition: UnknowingCellBorderAndFlagManager.h:15
bool cellCanContainHaloParticles(index_t index1d) const override
Checks if the cell with the one-dimensional index index1d can contain halo particles.
Definition: UnknowingCellBorderAndFlagManager.h:19
bool cellCanContainOwnedParticles(index_t index1d) const override
Checks if the cell with the one-dimensional index index1d can contain owned particles.
Definition: UnknowingCellBorderAndFlagManager.h:20
static auto & get()
Get the static instance of this class.
Definition: UnknowingCellBorderAndFlagManager.h:26
This namespace is used for implementation specifics.
Definition: CellFunctor.h:14