Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
amrex::EB2::DevicePtrIF< T > Class Template Reference

Wrapper that forwards operator() calls to an implicit function pointer. More...

#include <AMReX_EB2_IF_DevicePtr.H>

Inheritance diagram for amrex::EB2::DevicePtrIF< T >:
amrex::GPUable

Public Member Functions

 DevicePtrIF (T *a_p)
 Store the pointer that owns the actual implicit-function operator.
 
AMREX_GPU_HOST_DEVICE Real operator() (AMREX_D_DECL(Real x, Real y, Real z)) const noexcept
 Device-friendly overload dispatching to the pointee.
 
Real operator() (const RealArray &a) const noexcept
 Array-based helper overload.
 

Protected Attributes

T * p = nullptr
 

Detailed Description

template<typename T>
class amrex::EB2::DevicePtrIF< T >

Wrapper that forwards operator() calls to an implicit function pointer.

Constructor & Destructor Documentation

◆ DevicePtrIF()

template<typename T >
amrex::EB2::DevicePtrIF< T >::DevicePtrIF ( T *  a_p)
inline

Store the pointer that owns the actual implicit-function operator.

Member Function Documentation

◆ operator()() [1/2]

template<typename T >
AMREX_GPU_HOST_DEVICE Real amrex::EB2::DevicePtrIF< T >::operator() ( AMREX_D_DECL(Real x, Real y, Real z ) const
inlinenoexcept

Device-friendly overload dispatching to the pointee.

◆ operator()() [2/2]

template<typename T >
Real amrex::EB2::DevicePtrIF< T >::operator() ( const RealArray a) const
inlinenoexcept

Array-based helper overload.

Member Data Documentation

◆ p

template<typename T >
T* amrex::EB2::DevicePtrIF< T >::p = nullptr
protected

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