Owning logical marker-property matrix.
More...
#include "part.hpp"
|
| void | allocate (const std::string &label, int npmx, int nprops) |
| | Replace storage with npmx by nprops flags.
|
| |
| bool & | operator() (int ip, int prop) |
| | Access a mutable flag by zero-based particle/property index.
|
| |
| const bool & | operator() (int ip, int prop) const |
| | Access a flag by zero-based particle/property index.
|
| |
| | PointerMarkersLogic ()=default |
| | Construct an empty wrapper.
|
| |
| | PointerMarkersLogic (const std::string &label, int npmx, int nprops) |
| | Allocate a named logical marker matrix.
|
| |
|
| Kokkos::View< bool ** > | markers |
| | Logical flags [capacity][property].
|
| |
Owning logical marker-property matrix.
◆ PointerMarkersLogic() [1/2]
| orb5x::PointerMarkersLogic::PointerMarkersLogic |
( |
| ) |
|
|
default |
Construct an empty wrapper.
◆ PointerMarkersLogic() [2/2]
| orb5x::PointerMarkersLogic::PointerMarkersLogic |
( |
const std::string & |
label, |
|
|
int |
npmx, |
|
|
int |
nprops |
|
) |
| |
|
inline |
Allocate a named logical marker matrix.
- Parameters
-
| [in] | label | Kokkos allocation label used by profiling tools. |
| [in] | npmx | Particle capacity (first extent). |
| [in] | nprops | Property-column count (second extent). |
◆ allocate()
| void orb5x::PointerMarkersLogic::allocate |
( |
const std::string & |
label, |
|
|
int |
npmx, |
|
|
int |
nprops |
|
) |
| |
|
inline |
Replace storage with npmx by nprops flags.
- Parameters
-
| [in] | label | Kokkos allocation label used by profiling tools. |
| [in] | npmx | Particle capacity. |
| [in] | nprops | Property-column count. |
References markers.
◆ operator()() [1/2]
| bool & orb5x::PointerMarkersLogic::operator() |
( |
int |
ip, |
|
|
int |
prop |
|
) |
| |
|
inline |
Access a mutable flag by zero-based particle/property index.
- Parameters
-
| [in] | ip | Local particle index. |
| [in] | prop | Property-column index. |
- Returns
- Reference to the selected logical flag.
References markers.
◆ operator()() [2/2]
| const bool & orb5x::PointerMarkersLogic::operator() |
( |
int |
ip, |
|
|
int |
prop |
|
) |
| const |
|
inline |
Access a flag by zero-based particle/property index.
- Parameters
-
| [in] | ip | Local particle index. |
| [in] | prop | Property-column index. |
- Returns
- Const reference to the selected logical flag.
References markers.
◆ markers
| Kokkos::View<bool**> orb5x::PointerMarkersLogic::markers |
The documentation for this struct was generated from the following file: