Block-Structured AMR Software Framework
amrex::Table1D< T, IDX > Struct Template Reference

#include <AMReX_TableData.H>

Public Member Functions

constexpr Table1D () noexcept=default
 
template<class U = T, std::enable_if_t< std::is_const_v< U >, int > = 0>
constexpr AMREX_GPU_HOST_DEVICE Table1D (Table1D< std::remove_const_t< T >> const &rhs) noexcept
 
constexpr AMREX_GPU_HOST_DEVICE Table1D (T *a_p, IDX a_begin, IDX a_end) noexcept
 
AMREX_GPU_HOST_DEVICE operator bool () 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() (IDX i) const noexcept
 

Public Attributes

T *AMREX_RESTRICT p = nullptr
 
IDX begin = 1
 
IDX end = 0
 

Constructor & Destructor Documentation

◆ Table1D() [1/3]

template<typename T , typename IDX = int>
constexpr amrex::Table1D< T, IDX >::Table1D ( )
constexprdefaultnoexcept

◆ Table1D() [2/3]

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

◆ Table1D() [3/3]

template<typename T , typename IDX = int>
constexpr AMREX_GPU_HOST_DEVICE amrex::Table1D< T, IDX >::Table1D ( T *  a_p,
IDX  a_begin,
IDX  a_end 
)
inlineconstexprnoexcept

Member Function Documentation

◆ operator bool()

template<typename T , typename IDX = int>
AMREX_GPU_HOST_DEVICE amrex::Table1D< T, IDX >::operator bool ( ) const
inlineexplicitnoexcept

◆ operator()()

template<typename T , typename IDX = int>
template<class U = T, std::enable_if_t<!std::is_void_v< U >, int > = 0>
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE U& amrex::Table1D< T, IDX >::operator() ( IDX  i) const
inlinenoexcept

Member Data Documentation

◆ begin

template<typename T , typename IDX = int>
IDX amrex::Table1D< T, IDX >::begin = 1

◆ end

template<typename T , typename IDX = int>
IDX amrex::Table1D< T, IDX >::end = 0

◆ p

template<typename T , typename IDX = int>
T* AMREX_RESTRICT amrex::Table1D< T, IDX >::p = nullptr

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