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

#include <AMReX_ParticleArray.H>

Public Types

using container_type = ContainerType< ParticleType< Types... > >
 
using raw_type = ParticleType< Types... > *
 
using value_type = ParticleType< Types... > &
 

Static Public Member Functions

static constexpr raw_type get_raw_data (container_type &a_container)
 
static constexpr void resize (container_type &a_container, std::size_t a_size)
 
template<typename ValueType >
static constexpr void push_back (container_type &a_container, ValueType &&a_value)
 
static constexpr std::size_t size (container_type &a_container)
 

Detailed Description

template<template< typename... > class ContainerType, template< typename... > class ParticleType, typename... Types>
struct amrex::DataLayoutPolicy< ContainerType, ParticleType< Types... >, DataLayout::AoS >

Implementation of the AoS policy. Pretty much a straightforward wrapper around ContainterType<ParticleType>

Member Typedef Documentation

◆ container_type

template<template< typename... > class ContainerType, template< typename... > class ParticleType, typename... Types>
using amrex::DataLayoutPolicy< ContainerType, ParticleType< Types... >, DataLayout::AoS >::container_type = ContainerType<ParticleType<Types...> >

◆ raw_type

template<template< typename... > class ContainerType, template< typename... > class ParticleType, typename... Types>
using amrex::DataLayoutPolicy< ContainerType, ParticleType< Types... >, DataLayout::AoS >::raw_type = ParticleType<Types...>*

◆ value_type

template<template< typename... > class ContainerType, template< typename... > class ParticleType, typename... Types>
using amrex::DataLayoutPolicy< ContainerType, ParticleType< Types... >, DataLayout::AoS >::value_type = ParticleType<Types...>&

Member Function Documentation

◆ get_raw_data()

template<template< typename... > class ContainerType, template< typename... > class ParticleType, typename... Types>
static constexpr raw_type amrex::DataLayoutPolicy< ContainerType, ParticleType< Types... >, DataLayout::AoS >::get_raw_data ( container_type a_container)
inlinestaticconstexpr

◆ push_back()

template<template< typename... > class ContainerType, template< typename... > class ParticleType, typename... Types>
template<typename ValueType >
static constexpr void amrex::DataLayoutPolicy< ContainerType, ParticleType< Types... >, DataLayout::AoS >::push_back ( container_type a_container,
ValueType &&  a_value 
)
inlinestaticconstexpr

◆ resize()

template<template< typename... > class ContainerType, template< typename... > class ParticleType, typename... Types>
static constexpr void amrex::DataLayoutPolicy< ContainerType, ParticleType< Types... >, DataLayout::AoS >::resize ( container_type a_container,
std::size_t  a_size 
)
inlinestaticconstexpr

◆ size()

template<template< typename... > class ContainerType, template< typename... > class ParticleType, typename... Types>
static constexpr std::size_t amrex::DataLayoutPolicy< ContainerType, ParticleType< Types... >, DataLayout::AoS >::size ( container_type a_container)
inlinestaticconstexpr

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