CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HostProduct< T > Class Template Reference

#include <HostProduct.h>

Public Member Functions

auto const * get () const
 
 HostProduct ()=default
 
 HostProduct (HostProduct &&)=default
 
 HostProduct (cms::cuda::host::unique_ptr< T > &&p)
 
 HostProduct (std::unique_ptr< T > &&p)
 
auto const & operator* () const
 
auto const * operator-> () const
 
HostProductoperator= (HostProduct &&)=default
 
 ~HostProduct ()=default
 

Private Attributes

cms::cuda::host::unique_ptr< Thm_ptr
 
std::unique_ptr< Tstd_ptr
 

Detailed Description

template<typename T>
class HostProduct< T >

Definition at line 8 of file HostProduct.h.

Constructor & Destructor Documentation

◆ HostProduct() [1/4]

template<typename T >
HostProduct< T >::HostProduct ( )
default

◆ ~HostProduct()

template<typename T >
HostProduct< T >::~HostProduct ( )
default

◆ HostProduct() [2/4]

template<typename T >
HostProduct< T >::HostProduct ( HostProduct< T > &&  )
default

◆ HostProduct() [3/4]

template<typename T >
HostProduct< T >::HostProduct ( cms::cuda::host::unique_ptr< T > &&  p)
inlineexplicit

Definition at line 15 of file HostProduct.h.

15 : hm_ptr(std::move(p)) {}
cms::cuda::host::unique_ptr< T > hm_ptr
Definition: HostProduct.h:25
def move(src, dest)
Definition: eostools.py:511

◆ HostProduct() [4/4]

template<typename T >
HostProduct< T >::HostProduct ( std::unique_ptr< T > &&  p)
inlineexplicit

Definition at line 16 of file HostProduct.h.

16 : std_ptr(std::move(p)) {}
std::unique_ptr< T > std_ptr
Definition: HostProduct.h:26
def move(src, dest)
Definition: eostools.py:511

Member Function Documentation

◆ get()

template<typename T >
auto const* HostProduct< T >::get ( ) const
inline

◆ operator*()

template<typename T >
auto const& HostProduct< T >::operator* ( ) const
inline

Definition at line 20 of file HostProduct.h.

20 { return *get(); }

◆ operator->()

template<typename T >
auto const* HostProduct< T >::operator-> ( ) const
inline

Definition at line 22 of file HostProduct.h.

22 { return get(); }

◆ operator=()

template<typename T >
HostProduct& HostProduct< T >::operator= ( HostProduct< T > &&  )
default

Member Data Documentation

◆ hm_ptr

template<typename T >
cms::cuda::host::unique_ptr<T> HostProduct< T >::hm_ptr
private

Definition at line 25 of file HostProduct.h.

Referenced by HostProduct< T >::get().

◆ std_ptr

template<typename T >
std::unique_ptr<T> HostProduct< T >::std_ptr
private

Definition at line 26 of file HostProduct.h.

Referenced by HostProduct< T >::get().