Block-Structured AMR Software Framework
amrex::ParticleArray< ContainerType, ParticleType, DataLayoutTag > Struct Template Reference

#include <AMReX_ParticleArray.H>

Public Types

using policy_type = DataLayoutPolicy< ContainerType, ParticleType, DataLayoutTag >
 
using accessor_type = ParticleArrayAccessor< ParticleType, DataLayoutTag >
 
using value_type = typename policy_type::value_type
 
using container_type = typename policy_type::container_type
 

Public Member Functions

 ParticleArray ()
 
 ParticleArray (size_t a_size)
 
template<typename ValueType >
void push_back (ValueType &&val)
 
std::size_t size ()
 
void resize (size_t a_size)
 
accessor_type get_particle_data ()
 

Static Public Attributes

static constexpr auto data_layout = DataLayoutTag
 

Private Attributes

container_type m_data
 

Detailed Description

template<template< typename ValueType > class ContainerType, typename ParticleType, DataLayout DataLayoutTag>
struct amrex::ParticleArray< ContainerType, ParticleType, DataLayoutTag >

Tile implementation, it basically just forwards to the policy's methods.

Member Typedef Documentation

◆ accessor_type

template<template< typename ValueType > class ContainerType, typename ParticleType , DataLayout DataLayoutTag>
using amrex::ParticleArray< ContainerType, ParticleType, DataLayoutTag >::accessor_type = ParticleArrayAccessor<ParticleType, DataLayoutTag>

◆ container_type

template<template< typename ValueType > class ContainerType, typename ParticleType , DataLayout DataLayoutTag>
using amrex::ParticleArray< ContainerType, ParticleType, DataLayoutTag >::container_type = typename policy_type::container_type

◆ policy_type

template<template< typename ValueType > class ContainerType, typename ParticleType , DataLayout DataLayoutTag>
using amrex::ParticleArray< ContainerType, ParticleType, DataLayoutTag >::policy_type = DataLayoutPolicy<ContainerType, ParticleType, DataLayoutTag>

◆ value_type

template<template< typename ValueType > class ContainerType, typename ParticleType , DataLayout DataLayoutTag>
using amrex::ParticleArray< ContainerType, ParticleType, DataLayoutTag >::value_type = typename policy_type::value_type

Constructor & Destructor Documentation

◆ ParticleArray() [1/2]

template<template< typename ValueType > class ContainerType, typename ParticleType , DataLayout DataLayoutTag>
amrex::ParticleArray< ContainerType, ParticleType, DataLayoutTag >::ParticleArray ( )
inline

◆ ParticleArray() [2/2]

template<template< typename ValueType > class ContainerType, typename ParticleType , DataLayout DataLayoutTag>
amrex::ParticleArray< ContainerType, ParticleType, DataLayoutTag >::ParticleArray ( size_t  a_size)
inline

Member Function Documentation

◆ get_particle_data()

template<template< typename ValueType > class ContainerType, typename ParticleType , DataLayout DataLayoutTag>
accessor_type amrex::ParticleArray< ContainerType, ParticleType, DataLayoutTag >::get_particle_data ( )
inline

◆ push_back()

template<template< typename ValueType > class ContainerType, typename ParticleType , DataLayout DataLayoutTag>
template<typename ValueType >
void amrex::ParticleArray< ContainerType, ParticleType, DataLayoutTag >::push_back ( ValueType &&  val)
inline

◆ resize()

template<template< typename ValueType > class ContainerType, typename ParticleType , DataLayout DataLayoutTag>
void amrex::ParticleArray< ContainerType, ParticleType, DataLayoutTag >::resize ( size_t  a_size)
inline

◆ size()

template<template< typename ValueType > class ContainerType, typename ParticleType , DataLayout DataLayoutTag>
std::size_t amrex::ParticleArray< ContainerType, ParticleType, DataLayoutTag >::size ( )
inline

Member Data Documentation

◆ data_layout

template<template< typename ValueType > class ContainerType, typename ParticleType , DataLayout DataLayoutTag>
constexpr auto amrex::ParticleArray< ContainerType, ParticleType, DataLayoutTag >::data_layout = DataLayoutTag
staticconstexpr

◆ m_data

template<template< typename ValueType > class ContainerType, typename ParticleType , DataLayout DataLayoutTag>
container_type amrex::ParticleArray< ContainerType, ParticleType, DataLayoutTag >::m_data
private

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