CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
BeamSpotCUDA Class Reference

#include <BeamSpotCUDA.h>

Public Member Functions

 BeamSpotCUDA ()=default
 
 BeamSpotCUDA (cudaStream_t stream)
 
 BeamSpotCUDA (BeamSpotCUDA const &)=delete
 
 BeamSpotCUDA (BeamSpotCUDA &&)=default
 
BeamSpotPODdata ()
 
BeamSpotPOD const * data () const
 
BeamSpotCUDAoperator= (BeamSpotCUDA const &)=delete
 
BeamSpotCUDAoperator= (BeamSpotCUDA &&)=default
 
cms::cuda::device::unique_ptr< BeamSpotPOD > & ptr ()
 
cms::cuda::device::unique_ptr< BeamSpotPOD > const & ptr () const
 

Private Attributes

cms::cuda::device::unique_ptr< BeamSpotPODdata_d_
 

Detailed Description

Definition at line 9 of file BeamSpotCUDA.h.

Constructor & Destructor Documentation

◆ BeamSpotCUDA() [1/4]

BeamSpotCUDA::BeamSpotCUDA ( )
default

◆ BeamSpotCUDA() [2/4]

BeamSpotCUDA::BeamSpotCUDA ( cudaStream_t  stream)
inline

Definition at line 15 of file BeamSpotCUDA.h.

References data_d_, and cms::cuda::stream.

15 { data_d_ = cms::cuda::make_device_unique<BeamSpotPOD>(stream); }
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
cms::cuda::device::unique_ptr< BeamSpotPOD > data_d_
Definition: BeamSpotCUDA.h:30

◆ BeamSpotCUDA() [3/4]

BeamSpotCUDA::BeamSpotCUDA ( BeamSpotCUDA const &  )
delete

◆ BeamSpotCUDA() [4/4]

BeamSpotCUDA::BeamSpotCUDA ( BeamSpotCUDA &&  )
default

Member Function Documentation

◆ data() [1/2]

BeamSpotPOD* BeamSpotCUDA::data ( )
inline

Definition at line 23 of file BeamSpotCUDA.h.

References data_d_.

23 { return data_d_.get(); }
cms::cuda::device::unique_ptr< BeamSpotPOD > data_d_
Definition: BeamSpotCUDA.h:30

◆ data() [2/2]

BeamSpotPOD const* BeamSpotCUDA::data ( ) const
inline

Definition at line 24 of file BeamSpotCUDA.h.

References data_d_.

24 { return data_d_.get(); }
cms::cuda::device::unique_ptr< BeamSpotPOD > data_d_
Definition: BeamSpotCUDA.h:30

◆ operator=() [1/2]

BeamSpotCUDA& BeamSpotCUDA::operator= ( BeamSpotCUDA const &  )
delete

◆ operator=() [2/2]

BeamSpotCUDA& BeamSpotCUDA::operator= ( BeamSpotCUDA &&  )
default

◆ ptr() [1/2]

cms::cuda::device::unique_ptr<BeamSpotPOD>& BeamSpotCUDA::ptr ( )
inline

Definition at line 26 of file BeamSpotCUDA.h.

References data_d_.

26 { return data_d_; }
cms::cuda::device::unique_ptr< BeamSpotPOD > data_d_
Definition: BeamSpotCUDA.h:30

◆ ptr() [2/2]

cms::cuda::device::unique_ptr<BeamSpotPOD> const& BeamSpotCUDA::ptr ( ) const
inline

Definition at line 27 of file BeamSpotCUDA.h.

References data_d_.

27 { return data_d_; }
cms::cuda::device::unique_ptr< BeamSpotPOD > data_d_
Definition: BeamSpotCUDA.h:30

Member Data Documentation

◆ data_d_

cms::cuda::device::unique_ptr<BeamSpotPOD> BeamSpotCUDA::data_d_
private

Definition at line 30 of file BeamSpotCUDA.h.

Referenced by BeamSpotCUDA(), data(), and ptr().