Cabana 0.8.0-dev
 
Loading...
Searching...
No Matches
Cabana::ParticleView< VectorLength, FieldTags > Struct Template Reference

Single SoA particle view. Wraps a view of the SoA the particle resides in. More...

#include <Cabana_ParticleList.hpp>

Collaboration diagram for Cabana::ParticleView< VectorLength, FieldTags >:

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_typesoa ()
 Get the underlying SoA.
 
KOKKOS_FORCEINLINE_FUNCTION const soa_typesoa () 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.
 

Detailed Description

template<int VectorLength, class... FieldTags>
struct Cabana::ParticleView< VectorLength, FieldTags >

Single SoA particle view. Wraps a view of the SoA the particle resides in.


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