12#include "vecmem/containers/data/jagged_vector_view.hpp"
13#include "vecmem/containers/details/jagged_device_vector_iterator.hpp"
14#include "vecmem/containers/details/reverse_iterator.hpp"
15#include "vecmem/containers/device_vector.hpp"
16#include "vecmem/utils/type_traits.hpp"
17#include "vecmem/utils/types.hpp"
81 VECMEM_HOST_AND_DEVICE
85 VECMEM_HOST_AND_DEVICE
89 VECMEM_HOST_AND_DEVICE
96 VECMEM_HOST_AND_DEVICE
99 VECMEM_HOST_AND_DEVICE
103 VECMEM_HOST_AND_DEVICE
106 VECMEM_HOST_AND_DEVICE
110 VECMEM_HOST_AND_DEVICE
113 VECMEM_HOST_AND_DEVICE
117 VECMEM_HOST_AND_DEVICE
120 VECMEM_HOST_AND_DEVICE
129 VECMEM_HOST_AND_DEVICE
133 VECMEM_HOST_AND_DEVICE
137 VECMEM_HOST_AND_DEVICE
141 VECMEM_HOST_AND_DEVICE
144 VECMEM_HOST_AND_DEVICE
147 VECMEM_HOST_AND_DEVICE
151 VECMEM_HOST_AND_DEVICE
154 VECMEM_HOST_AND_DEVICE
157 VECMEM_HOST_AND_DEVICE
161 VECMEM_HOST_AND_DEVICE
165 VECMEM_HOST_AND_DEVICE
169 VECMEM_HOST_AND_DEVICE
185 VECMEM_HOST_AND_DEVICE
186 bool empty(
void)
const;
191 VECMEM_HOST_AND_DEVICE
195 VECMEM_HOST_AND_DEVICE
198 VECMEM_HOST_AND_DEVICE
219#include "vecmem/containers/impl/jagged_device_vector.ipp"
A view for jagged vectors.
Definition jagged_vector_view.hpp:44
std::add_pointer_t< value_type > pointer
Pointer type to the jagged array.
Definition jagged_vector_view.hpp:56
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 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
std::ptrdiff_t difference_type
Pointer difference type.
Definition jagged_device_vector.hpp:58
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
device_vector< T > value_type
Type of the "outer" array elements.
Definition jagged_device_vector.hpp:54
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