vecmem 1.18.0
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
vecmem::data Namespace Reference

Namespace holding "data types". More...

Classes

class  jagged_vector_buffer
 Object owning all the data of a jagged vector. More...
 
class  jagged_vector_data
 A data wrapper for jagged vectors. More...
 
class  jagged_vector_view
 A view for jagged vectors. More...
 
class  vector_buffer
 Object owning the data held by it. More...
 
class  vector_view
 Class holding data about a 1 dimensional vector/array. More...
 

Enumerations

enum class  buffer_type { fixed_size = 0 , resizable = 1 }
 "Overall type" for a buffer object More...
 

Functions

template<typename T >
VECMEM_HOST std::vector< typename vector_view< T >::size_type > get_capacities (const jagged_vector_view< T > &data)
 Get the capacities of the inner vectors of a jagged vector.
 

Detailed Description

Namespace holding "data types".

These are types that either own, or only provide a view of data owned by some other component. They are used for "non-interactive" data management in the code.

Enumeration Type Documentation

◆ buffer_type

"Overall type" for a buffer object

Enumerator
fixed_size 

The buffer has a fixed number of elements.

resizable 

The buffer is resizable/expandable.

Function Documentation

◆ get_capacities()

template<typename T >
VECMEM_HOST std::vector< typename vector_view< T >::size_type > vecmem::data::get_capacities ( const jagged_vector_view< T > &  data)

Get the capacities of the inner vectors of a jagged vector.

Template Parameters
Thetype held by the jagged vector
Parameters
dataThe jagged vector to get the capacities from
Returns
The vector of capacities of the inner vectors