|
Cabana 0.8.0-dev
|
Single SoA particle view. Wraps a view of the SoA the particle resides in. More...
#include <Cabana_ParticleList.hpp>

Public Types | |
| using | traits = ParticleTraits<FieldTags...> |
| Particle AoSoA member types. | |
| using | soa_type = Cabana::SoA<typename traits::member_types, VectorLength> |
| Particle SoA type. | |
Public Member Functions | |
| ParticleView ()=default | |
| Default constructor. | |
| KOKKOS_FORCEINLINE_FUNCTION | ParticleView (soa_type &soa, const int vector_index) |
| Tuple wrapper constructor. | |
| KOKKOS_FORCEINLINE_FUNCTION soa_type & | soa () |
| Get the underlying SoA. | |
| KOKKOS_FORCEINLINE_FUNCTION const soa_type & | soa () const |
| Get the underlying SoA (const). | |
| KOKKOS_FORCEINLINE_FUNCTION int | vectorIndex () const |
| Get the vector index of the particle in the SoA. | |
Public Attributes | |
| soa_type & | _soa |
| The soa the particle is in. | |
| int | _vector_index |
| The local vector index of the particle. | |
Static Public Attributes | |
| static constexpr int | vector_length = VectorLength |
| AoSoA vector length. | |
Single SoA particle view. Wraps a view of the SoA the particle resides in.