Block-Structured AMR Software Framework
amrex::BoxIndexerND< dim > Struct Template Reference

#include <AMReX_Box.H>

Public Member Functions

 BoxIndexerND (BoxND< dim > const &box)
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE IntVectND< dim > intVect (std::uint64_t icell) const
 
template<int N = dim, std::enable_if_t<(1<=N &&N<=3), int > = 0>
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE Dim3 operator() (std::uint64_t icell) const
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE std::uint64_t numPts () const
 

Public Attributes

std::uint64_t npts
 
Math::FastDivmodU64 fdm [dim-1]
 
IntVectND< dim > lo
 

Constructor & Destructor Documentation

◆ BoxIndexerND()

template<int dim>
amrex::BoxIndexerND< dim >::BoxIndexerND ( BoxND< dim > const &  box)
inline

Member Function Documentation

◆ intVect()

template<int dim>
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE IntVectND<dim> amrex::BoxIndexerND< dim >::intVect ( std::uint64_t  icell) const
inline

◆ numPts()

template<int dim>
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE std::uint64_t amrex::BoxIndexerND< dim >::numPts ( ) const
inline

◆ operator()()

template<int dim>
template<int N = dim, std::enable_if_t<(1<=N &&N<=3), int > = 0>
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE Dim3 amrex::BoxIndexerND< dim >::operator() ( std::uint64_t  icell) const
inline

Member Data Documentation

◆ fdm

template<int dim>
Math::FastDivmodU64 amrex::BoxIndexerND< dim >::fdm[dim-1]

◆ lo

template<int dim>
IntVectND<dim> amrex::BoxIndexerND< dim >::lo

◆ npts

template<int dim>
std::uint64_t amrex::BoxIndexerND< dim >::npts

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