Block-Structured AMR Software Framework
amrex::Gpu::DeviceScalar< T, > Struct Template Reference

#include <AMReX_GpuMemory.H>

Public Member Functions

 DeviceScalar (DeviceScalar const &)=delete
 
 DeviceScalar (DeviceScalar &&)=delete
 
void operator= (DeviceScalar const &)=delete
 
void operator= (DeviceScalar &&)=delete
 
 DeviceScalar ()
 
 DeviceScalar (T init_val)
 
 ~DeviceScalar ()
 
T * dataPtr ()
 
T const * dataPtr () const
 
dataValue () const
 

Private Attributes

T * dp
 

Constructor & Destructor Documentation

◆ DeviceScalar() [1/4]

template<class T , std::enable_if_t< std::is_trivially_copyable_v< T >, int > = 0>
amrex::Gpu::DeviceScalar< T, >::DeviceScalar ( DeviceScalar< T, > const &  )
delete

◆ DeviceScalar() [2/4]

template<class T , std::enable_if_t< std::is_trivially_copyable_v< T >, int > = 0>
amrex::Gpu::DeviceScalar< T, >::DeviceScalar ( DeviceScalar< T, > &&  )
delete

◆ DeviceScalar() [3/4]

template<class T , std::enable_if_t< std::is_trivially_copyable_v< T >, int > = 0>
amrex::Gpu::DeviceScalar< T, >::DeviceScalar ( )
inline

◆ DeviceScalar() [4/4]

template<class T , std::enable_if_t< std::is_trivially_copyable_v< T >, int > = 0>
amrex::Gpu::DeviceScalar< T, >::DeviceScalar ( init_val)
inlineexplicit

◆ ~DeviceScalar()

template<class T , std::enable_if_t< std::is_trivially_copyable_v< T >, int > = 0>
amrex::Gpu::DeviceScalar< T, >::~DeviceScalar ( )
inline

Member Function Documentation

◆ dataPtr() [1/2]

template<class T , std::enable_if_t< std::is_trivially_copyable_v< T >, int > = 0>
T* amrex::Gpu::DeviceScalar< T, >::dataPtr ( )
inline

◆ dataPtr() [2/2]

template<class T , std::enable_if_t< std::is_trivially_copyable_v< T >, int > = 0>
T const* amrex::Gpu::DeviceScalar< T, >::dataPtr ( ) const
inline

◆ dataValue()

template<class T , std::enable_if_t< std::is_trivially_copyable_v< T >, int > = 0>
T amrex::Gpu::DeviceScalar< T, >::dataValue ( ) const
inline

◆ operator=() [1/2]

template<class T , std::enable_if_t< std::is_trivially_copyable_v< T >, int > = 0>
void amrex::Gpu::DeviceScalar< T, >::operator= ( DeviceScalar< T, > &&  )
delete

◆ operator=() [2/2]

template<class T , std::enable_if_t< std::is_trivially_copyable_v< T >, int > = 0>
void amrex::Gpu::DeviceScalar< T, >::operator= ( DeviceScalar< T, > const &  )
delete

Member Data Documentation

◆ dp

template<class T , std::enable_if_t< std::is_trivially_copyable_v< T >, int > = 0>
T* amrex::Gpu::DeviceScalar< T, >::dp
private

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