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

Single particle copy. Wraps a tuple copy of a particle. More...

#include <Cabana_ParticleList.hpp>

Collaboration diagram for Cabana::Particle< FieldTags >:

Public Types

using traits = ParticleTraits<FieldTags...>
 Particle AoSoA member types.
 
using tuple_type = Cabana::Tuple<typename traits::member_types>
 Particle tuple type.
 

Public Member Functions

 Particle ()=default
 Default constructor.
 
KOKKOS_FORCEINLINE_FUNCTION Particle (const tuple_type &tuple)
 Tuple wrapper constructor.
 
KOKKOS_FORCEINLINE_FUNCTION tuple_typetuple ()
 Get the underlying tuple.
 
KOKKOS_FORCEINLINE_FUNCTION const tuple_typetuple () const
 Get the underlying tuple (const).
 

Public Attributes

tuple_type _tuple
 The tuple this particle wraps.
 

Static Public Attributes

static constexpr int vector_length = 1
 Vector length (for compatibility with ParticleView).
 

Detailed Description

template<class... FieldTags>
struct Cabana::Particle< FieldTags >

Single particle copy. Wraps a tuple copy of a particle.


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