vecmem 1.14.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
vecmem::details::jagged_device_vector_iterator< TYPE >::pointer Class Reference

Helper class for returning "pointer-like" objects from the iterator. More...

#include <vecmem/containers/details/jagged_device_vector_iterator.hpp>

Public Member Functions

VECMEM_HOST_AND_DEVICE pointer (const data_pointer data)
 Constructor from a data pointer.
 
VECMEM_HOST_AND_DEVICE value_typeoperator-> ()
 Return a pointer to a device vector (non-const)
 
VECMEM_HOST_AND_DEVICE const value_typeoperator-> () const
 Return a pointer to a device vector (const)
 

Detailed Description

template<typename TYPE>
class vecmem::details::jagged_device_vector_iterator< TYPE >::pointer

Helper class for returning "pointer-like" objects from the iterator.

Since the iterator returned everything by value as temporary objects, in order to provide a proper return type for its operator->, this custom type needs to be used.

Constructor & Destructor Documentation

◆ pointer()

template<typename TYPE >
VECMEM_HOST_AND_DEVICE vecmem::details::jagged_device_vector_iterator< TYPE >::pointer::pointer ( const data_pointer  data)
explicit

Constructor from a data pointer.

Used a pointer instead of a reference to make the rest of the code in vecmem::details::jagged_device_vector_iterator as unaware of the existence of this type as possible.


The documentation for this class was generated from the following files: