CMS 3D CMS Logo

Thing.h
Go to the documentation of this file.
1 #ifndef HeterogeneousCore_CUDATest_Thing_H
2 #define HeterogeneousCore_CUDATest_Thing_H
3 
5 
6 namespace cms {
7  namespace cudatest {
8  class Thing {
9  public:
10  Thing() = default;
11  explicit Thing(cms::cuda::device::unique_ptr<float[]> ptr) : ptr_(std::move(ptr)) {}
12 
13  const float *get() const { return ptr_.get(); }
14 
15  private:
17  };
18  } // namespace cudatest
19 } // namespace cms
20 
21 #endif
cms::cudatest::Thing::Thing
Thing(cms::cuda::device::unique_ptr< float[]> ptr)
Definition: Thing.h:11
device_unique_ptr.h
cms::cudatest::Thing::Thing
Thing()=default
cms::cudatest::Thing
Definition: Thing.h:8
cms::cuda::device::unique_ptr
std::unique_ptr< T, impl::DeviceDeleter > unique_ptr
Definition: device_unique_ptr.h:33
eostools.move
def move(src, dest)
Definition: eostools.py:511
std
Definition: JetResolutionObject.h:76
cms::cudatest::Thing::get
const float * get() const
Definition: Thing.h:13
cms::cudatest::Thing::ptr_
cms::cuda::device::unique_ptr< float[]> ptr_
Definition: Thing.h:16
cms
Namespace of DDCMS conversion namespace.
Definition: ProducerAnalyzer.cc:21