opm-common
Opm::Utility::CopyablePtr< T, on_gpu > Class Template Reference

Public Types

using ptr_type = std::conditional_t< on_gpu, T *, std::unique_ptr< T > >
 

Public Member Functions

OPM_HOST_DEVICE CopyablePtr (const CopyablePtr &other)
 
OPM_HOST_DEVICE CopyablePtr (CopyablePtr &&other) noexcept
 
OPM_HOST_DEVICE CopyablePtroperator= (const CopyablePtr &other)
 
OPM_HOST_DEVICE CopyablePtroperator= (CopyablePtr &&other) noexcept
 
CopyablePtroperator= (std::unique_ptr< T > &&uptr) requires(!on_gpu)
 
OPM_HOST_DEVICE bool operator== (const CopyablePtr &other) const
 
OPM_HOST_DEVICE bool operator!= (const CopyablePtr &other) const
 
template<class Serializer >
void serializeOp (Serializer &serializer)
 
OPM_HOST_DEVICE T * operator-> () const
 
OPM_HOST_DEVICE operator bool () const noexcept
 
OPM_HOST_DEVICE T * get () const
 
OPM_HOST_DEVICE T * release ()
 
OPM_HOST_DEVICE CopyablePtr< T, true > to_gpu_view () const
 

Friends

template<class U , bool B>
class CopyablePtr
 

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