Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
amrex::DataLayoutPolicyRaw< ParticleType< Types... >, DataLayout::SoA > Struct Template Reference

#include <AMReX_ParticleArray.H>

Public Types

using raw_type = amrex::GpuTuple< Types *... >
 
using value_type = ParticleType< ref_wrapper< Types >... >
 

Static Public Member Functions

__host__ static __device__ constexpr value_type get (raw_type const &a_tuple, std::size_t a_index)
 

Detailed Description

template<template< typename... > class ParticleType, typename... Types>
struct amrex::DataLayoutPolicyRaw< ParticleType< Types... >, DataLayout::SoA >

A non-owning version of SoA policy for passing to the GPU.

Member Typedef Documentation

◆ raw_type

template<template< typename... > class ParticleType, typename... Types>
using amrex::DataLayoutPolicyRaw< ParticleType< Types... >, DataLayout::SoA >::raw_type = amrex::GpuTuple<Types*...>

◆ value_type

template<template< typename... > class ParticleType, typename... Types>
using amrex::DataLayoutPolicyRaw< ParticleType< Types... >, DataLayout::SoA >::value_type = ParticleType<ref_wrapper<Types>...>

Member Function Documentation

◆ get()

template<template< typename... > class ParticleType, typename... Types>
__host__ static __device__ constexpr value_type amrex::DataLayoutPolicyRaw< ParticleType< Types... >, DataLayout::SoA >::get ( raw_type const &  a_tuple,
std::size_t  a_index 
)
inlinestaticconstexpr

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