19 : m_size(data.size()), m_ptr(data.ptr()) {}
24 : m_size(parent.m_size), m_ptr(parent.m_ptr) {}
A view for jagged vectors.
Definition jagged_vector_view.hpp:44
Custom iterator for vecmem::jagged_device_vector.
Definition jagged_device_vector_iterator.hpp:34
Type mimicking std::reverse_iterator.
Definition reverse_iterator.hpp:25
A view for jagged vectors.
Definition jagged_device_vector.hpp:47
VECMEM_HOST_AND_DEVICE jagged_device_vector(data::jagged_vector_view< T > data)
Construct a jagged device vector from a jagged vector view object.
Definition jagged_device_vector.ipp:17
VECMEM_HOST_AND_DEVICE reverse_iterator rend()
Return a reverse iterator pointing at the beginning of the vector.
Definition jagged_device_vector.ipp:186
VECMEM_HOST_AND_DEVICE const_iterator cbegin() const
Return a constant forward iterator pointing at the beginning of the vector.
Definition jagged_device_vector.ipp:138
VECMEM_HOST_AND_DEVICE jagged_device_vector & operator=(const jagged_device_vector &rhs)
Copy assignment operator.
Definition jagged_device_vector.ipp:28
VECMEM_HOST_AND_DEVICE const_iterator cend() const
Return a constant forward iterator pointing at the end of the vector.
Definition jagged_device_vector.ipp:158
VECMEM_HOST_AND_DEVICE size_type max_size() const
Return the maximum (fixed) number of elements in the vector.
Definition jagged_device_vector.ipp:218
VECMEM_HOST_AND_DEVICE reference at(size_type pos)
Return a specific element of the vector in a "safe way" (non-const)
Definition jagged_device_vector.ipp:45
VECMEM_HOST_AND_DEVICE reverse_iterator rbegin()
Return a reverse iterator pointing at the end of the vector.
Definition jagged_device_vector.ipp:165
VECMEM_HOST_AND_DEVICE const_reverse_iterator crend() const
Return a constant reverse iterator pointing at the beginning of the vector.
Definition jagged_device_vector.ipp:200
VECMEM_HOST_AND_DEVICE reference front()
Return the first element of the vector (non-const)
Definition jagged_device_vector.ipp:83
VECMEM_HOST_AND_DEVICE size_type size(void) const
Get the number of rows in this view.
Definition jagged_device_vector.ipp:212
VECMEM_HOST_AND_DEVICE iterator begin()
Return a forward iterator pointing at the beginning of the vector.
Definition jagged_device_vector.ipp:125
VECMEM_HOST_AND_DEVICE const_reverse_iterator crbegin() const
Return a constant reverse iterator pointing at the end of the vector.
Definition jagged_device_vector.ipp:179
device_vector< T > reference
Value reference type.
Definition jagged_device_vector.hpp:61
VECMEM_HOST_AND_DEVICE reference back()
Return the last element of the vector (non-const)
Definition jagged_device_vector.ipp:104
VECMEM_HOST_AND_DEVICE iterator end()
Return a forward iterator pointing at the end of the vector.
Definition jagged_device_vector.ipp:145
device_vector< std::add_const_t< T > > const_reference
Constant value reference type.
Definition jagged_device_vector.hpp:63
VECMEM_HOST_AND_DEVICE bool empty(void) const
Checks whether this view has no rows.
Definition jagged_device_vector.ipp:207
VECMEM_HOST_AND_DEVICE size_type capacity() const
Return the current (fixed) capacity of the vector.
Definition jagged_device_vector.ipp:225
VECMEM_HOST_AND_DEVICE reference operator[](size_type pos)
Return a specific element of the vector (non-const)
Definition jagged_device_vector.ipp:67
std::size_t size_type
Size type for the array.
Definition jagged_device_vector.hpp:56
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