CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

template<typename T>
HostProduct< T >::HostProduct ( )
default
template<typename T>
HostProduct< T >::~HostProduct ( )
default
template<typename T>
HostProduct< T >::HostProduct ( HostProduct< T > &&  )
default
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
Definition: eostools.py:511
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
Definition: eostools.py:511

Member Function Documentation

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

Definition at line 20 of file HostProduct.h.

20 { return *get(); }
template<typename T>
auto const* HostProduct< T >::operator-> ( ) const
inline

Definition at line 22 of file HostProduct.h.

22 { return get(); }
template<typename T>
HostProduct& HostProduct< T >::operator= ( HostProduct< T > &&  )
default

Member Data Documentation

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< uint16_t[]>::get().

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

Definition at line 26 of file HostProduct.h.

Referenced by HostProduct< uint16_t[]>::get().