12#include "vecmem/containers/data/vector_view.hpp"
13#include "vecmem/utils/type_traits.hpp"
14#include "vecmem/utils/types.hpp"
47 static_assert(!std::is_same<std::remove_cv_t<T>,
bool>::value,
48 "bool is not supported in VecMem containers");
56 using pointer = std::add_pointer_t<value_type>;
65 VECMEM_HOST_AND_DEVICE
79 std::enable_if_t<details::is_same_nc<T, OTHERTYPE>::value,
bool> =
true>
86 std::enable_if_t<details::is_same_nc<T, OTHERTYPE>::value,
bool> =
true>
94 std::enable_if_t<std::is_same<std::remove_cv_t<T>,
95 std::remove_cv_t<OTHERTYPE> >::value,
103 std::enable_if_t<std::is_same<std::remove_cv_t<T>,
104 std::remove_cv_t<OTHERTYPE> >::value,
110 VECMEM_HOST_AND_DEVICE
113 VECMEM_HOST_AND_DEVICE
117 VECMEM_HOST_AND_DEVICE
132 VECMEM_HOST_AND_DEVICE
156#include "vecmem/containers/impl/jagged_vector_view.ipp"
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
std::add_pointer_t< value_type > pointer
Pointer type to the jagged array.
Definition jagged_vector_view.hpp:56
VECMEM_HOST_AND_DEVICE bool operator!=(const jagged_vector_view< OTHERTYPE > &rhs) const
Inequality check. Simply based on operator==.
Definition jagged_vector_view.ipp:76
jagged_vector_view()=default
Default constructor.
VECMEM_HOST_AND_DEVICE size_type capacity() const
Get the maximum capacity of the "outer" vector.
Definition jagged_vector_view.ipp:89
VECMEM_HOST_AND_DEVICE bool operator==(const jagged_vector_view< OTHERTYPE > &rhs) const
Equality check.
Definition jagged_vector_view.ipp:61
VECMEM_HOST_AND_DEVICE pointer ptr() const
Get a pointer to the vector elements.
Definition jagged_vector_view.ipp:96
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