1 #ifndef DataFormats_Portable_interface_PortableHostObject_h 2 #define DataFormats_Portable_interface_PortableHostObject_h 8 #include <alpaka/alpaka.hpp> 30 template <
typename TQueue,
typename = std::enable_if_t<alpaka::isQueue<TQueue>>>
73 template <
typename TQueue,
typename = std::enable_if_t<alpaka::isQueue<TQueue>>>
75 alpaka::memset(std::forward<TQueue>(
queue), *
buffer_, 0x00);
93 #endif // DataFormats_Portable_interface_PortableHostObject_h Product const * const_data() const
ConstBuffer buffer() const
Product const * operator->() const
std::optional< Buffer > buffer_
Product const & const_value() const
cms::alpakatools::const_host_buffer< Product > ConstBuffer
static void ROOTReadStreamer(PortableHostObject *newObj, Product &product)
Product const & value() const
PortableHostObject()=default
cms::alpakatools::host_buffer< Product > Buffer
ConstBuffer const_buffer() const
Product const & operator*() const
char data[epos_bytes_allocation]
PortableHostObject & operator=(PortableHostObject const &)=delete
void zeroInitialise(TQueue &&queue)
PortableHostObject(TQueue const &queue)
Product const * data() const
~PortableHostObject()=default
PortableHostObject(alpaka_common::DevHost const &host)