WarpX
Public Member Functions | Public Attributes | List of all members
HostDeviceParser< N > Struct Template Reference

The HostDeviceParser struct is non-owning and is suitable for being value captured by device lamba. More...

#include <WarpXParserWrapper.H>

Public Member Functions

template<typename... Ts>
AMREX_GPU_HOST_DEVICE std::enable_if_t< sizeof...(Ts)==N and amrex::Same< amrex::Real, Ts... >::value, amrex::Real > operator() (Ts... var) const noexcept
 

Public Attributes

GpuParser< N > const * m_gpu_parser = nullptr
 

Detailed Description

template<int N>
struct HostDeviceParser< N >

The HostDeviceParser struct is non-owning and is suitable for being value captured by device lamba.

Member Function Documentation

◆ operator()()

template<int N>
template<typename... Ts>
AMREX_GPU_HOST_DEVICE std::enable_if_t<sizeof...(Ts) == N and amrex::Same<amrex::Real,Ts...>::value, amrex::Real> HostDeviceParser< N >::operator() ( Ts...  var) const
inlinenoexcept

Member Data Documentation

◆ m_gpu_parser

template<int N>
GpuParser<N> const* HostDeviceParser< N >::m_gpu_parser = nullptr

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