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 (BeamSpotCUDA &&)=default
 
 BeamSpotCUDA (BeamSpotCUDA const &)=delete
 
 BeamSpotCUDA (cudaStream_t stream)
 
BeamSpotPODdata ()
 
BeamSpotPOD const * data () const
 
BeamSpotCUDAoperator= (BeamSpotCUDA &&)=default
 
BeamSpotCUDAoperator= (BeamSpotCUDA const &)=delete
 
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.

15 { data_d_ = cms::cuda::make_device_unique<BeamSpotPOD>(stream); }

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

◆ 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.

23 { return data_d_.get(); }

References data_d_.

◆ data() [2/2]

BeamSpotPOD const* BeamSpotCUDA::data ( ) const
inline

Definition at line 24 of file BeamSpotCUDA.h.

24 { return data_d_.get(); }

References data_d_.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ ptr() [1/2]

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

Definition at line 26 of file BeamSpotCUDA.h.

26 { return data_d_; }

References data_d_.

◆ ptr() [2/2]

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

Definition at line 27 of file BeamSpotCUDA.h.

27 { return data_d_; }

References data_d_.

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().

cms::cuda::stream
cudaStream_t stream
Definition: HistoContainer.h:57
BeamSpotCUDA::data_d_
cms::cuda::device::unique_ptr< BeamSpotPOD > data_d_
Definition: BeamSpotCUDA.h:30