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

Namespace for the types implementing Struct-of-Array container support. More...

Classes

class  buffer
 Technical base type for buffer<schema<VARTYPES...>> More...
 
class  buffer< schema< VARTYPES... > >
 Buffer for a Struct-of-Arrays container. More...
 
struct  container
 Description of a container, with all of the types needed to use it. More...
 
class  data
 Technical base type for data<schema<VARTYPES...>> More...
 
class  data< schema< VARTYPES... > >
 Data object describing a Struct-of-Arrays container. More...
 
class  device
 Technical base type for device<schema<VARTYPES...>,INTERFACE> More...
 
class  device< schema< VARTYPES... >, INTERFACE >
 Structure-of-Arrays device container. More...
 
class  host
 Technical base type for host<schema<VARTYPES...>,INTERFACE> More...
 
class  host< schema< VARTYPES... >, INTERFACE >
 Structure-of-Arrays host container. More...
 
class  proxy
 Technical base type for proxy<schema<VARTYPES...>,PDOMAIN,PACCESS,PTYPE> More...
 
class  proxy< schema< VARTYPES... >, PDOMAIN, PACCESS, PTYPE >
 Structure-of-Arrays element proxy. More...
 
struct  schema
 Meta type describing the "schema" of an SoA container. More...
 
class  view
 Technical base type for view<schema<VARTYPES...>> More...
 
class  view< schema< VARTYPES... > >
 View of a Struct-of-Arrays container. More...
 

Functions

template<typename... VARTYPES>
VECMEM_HOST std::vector< vecmem::data::vector_view< int >::size_type > get_capacities (const view< schema< VARTYPES... > > &soa)
 Helper function to get the capacities of the jagged vectors in a view.
 

Detailed Description

Namespace for the types implementing Struct-of-Array container support.

Function Documentation

◆ get_capacities()

template<typename... VARTYPES>
VECMEM_HOST std::vector< vecmem::data::vector_view< int >::size_type > vecmem::edm::get_capacities ( const view< schema< VARTYPES... > > &  soa)

Helper function to get the capacities of the jagged vectors in a view.

The function assumes that all jagged vectors in the view would have the same capacities.

Template Parameters
VARTYPESThe variable types described by the view
Parameters
soaThe view to get the capacities from
Returns
The vector of capacities of the jagged vectors in the view