17template <
typename TYPE>
20allocate_jagged_memory(
22 vecmem::memory_resource& resource) {
59 for (std::size_t
i = 0;
i <
size; ++
i) {
70template <
typename TYPE>
76template <
typename TYPE>
A data wrapper for jagged vectors.
Definition jagged_vector_data.hpp:30
jagged_vector_data()
Default constructor.
Definition jagged_vector_data.ipp:43
typename base_type::size_type size_type
Use the base class's size_type.
Definition jagged_vector_data.hpp:36
A view for jagged vectors.
Definition jagged_vector_view.hpp:44
VECMEM_HOST_AND_DEVICE pointer host_ptr() const
Access the host accessible array describing the inner vectors.
Definition jagged_vector_view.ipp:102
VECMEM_HOST_AND_DEVICE jagged_vector_view & operator=(const jagged_vector_view< OTHERTYPE > &rhs)
Assignment operator from a "slightly different" object.
std::size_t size_type
We cannot use boolean types.
Definition jagged_vector_view.hpp:52
VECMEM_HOST_AND_DEVICE size_type size() const
Get the "outer" size of the jagged vector.
Definition jagged_vector_view.ipp:83
vector_view< T > value_type
Value type of the jagged array.
Definition jagged_vector_view.hpp:54
Main namespace for the vecmem classes/functions.
Definition atomic_ref.hpp:16
std::vector< T, vecmem::polymorphic_allocator< T > > vector
Alias type for vectors with our polymorphic allocator.
Definition vector.hpp:35
unique_alloc_ptr< T > make_unique_alloc(memory_resource &m)
Create a unique allocation pointer to a type.
Definition unique_ptr.hpp:185
std::unique_ptr< T, details::unique_alloc_deleter< T > > unique_alloc_ptr
A unique pointer type for trivial types.
Definition unique_ptr.hpp:69
VECMEM_HOST data::vector_view< T > get_data(array< T, N > &a)
Helper function creating a vecmem::data::vector_view object.
Definition array.ipp:217