Block-Structured AMR Software Framework
amrex::CellData< T > Struct Template Reference

#include <AMReX_Array4.H>

Public Member Functions

constexpr AMREX_GPU_HOST_DEVICE CellData (T *a_p, Long a_stride, int a_ncomp)
 
template<class U = T, std::enable_if_t< std::is_const_v< U >, int > = 0>
constexpr AMREX_GPU_HOST_DEVICE CellData (CellData< std::remove_const_t< T >> const &rhs) noexcept
 
AMREX_GPU_HOST_DEVICE operator bool () const noexcept
 
AMREX_GPU_HOST_DEVICE int nComp () const noexcept
 
template<class U = T, std::enable_if_t<!std::is_void_v< U >, int > = 0>
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE U & operator[] (int n) const noexcept
 

Public Attributes

T *AMREX_RESTRICT p = nullptr
 
Long stride = 0
 
int ncomp = 0
 

Constructor & Destructor Documentation

◆ CellData() [1/2]

template<typename T >
constexpr AMREX_GPU_HOST_DEVICE amrex::CellData< T >::CellData ( T *  a_p,
Long  a_stride,
int  a_ncomp 
)
inlineconstexpr

◆ CellData() [2/2]

template<typename T >
template<class U = T, std::enable_if_t< std::is_const_v< U >, int > = 0>
constexpr AMREX_GPU_HOST_DEVICE amrex::CellData< T >::CellData ( CellData< std::remove_const_t< T >> const &  rhs)
inlineconstexprnoexcept

Member Function Documentation

◆ nComp()

template<typename T >
AMREX_GPU_HOST_DEVICE int amrex::CellData< T >::nComp ( ) const
inlinenoexcept

◆ operator bool()

template<typename T >
AMREX_GPU_HOST_DEVICE amrex::CellData< T >::operator bool ( ) const
inlineexplicitnoexcept

◆ operator[]()

template<typename T >
template<class U = T, std::enable_if_t<!std::is_void_v< U >, int > = 0>
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE U& amrex::CellData< T >::operator[] ( int  n) const
inlinenoexcept

Member Data Documentation

◆ ncomp

template<typename T >
int amrex::CellData< T >::ncomp = 0

◆ p

template<typename T >
T* AMREX_RESTRICT amrex::CellData< T >::p = nullptr

◆ stride

template<typename T >
Long amrex::CellData< T >::stride = 0

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