OpenMPCD
Public Member Functions | List of all members
OpenMPCD::CUDA::StridedIteratorRange< UnderlyingIterator, stride >::StrideFunctor Class Reference

Functor class for advancing a pointer by the given stride. More...

#include <StridedIteratorRange.hpp>

Inheritance diagram for OpenMPCD::CUDA::StridedIteratorRange< UnderlyingIterator, stride >::StrideFunctor:
Inheritance graph
[legend]
Collaboration diagram for OpenMPCD::CUDA::StridedIteratorRange< UnderlyingIterator, stride >::StrideFunctor:
Collaboration graph
[legend]

Public Member Functions

const OPENMPCD_CUDA_HOST_AND_DEVICE IteratorDifference operator() (const IteratorDifference &i) const
 Calculates how many times the underlying iterator has to be incremented to achieve i increments of the effective iterator. More...
 

Detailed Description

template<typename UnderlyingIterator, unsigned int stride = 0>
class OpenMPCD::CUDA::StridedIteratorRange< UnderlyingIterator, stride >::StrideFunctor

Functor class for advancing a pointer by the given stride.

Definition at line 60 of file StridedIteratorRange.hpp.

Member Function Documentation

◆ operator()()

template<typename UnderlyingIterator , unsigned int stride = 0>
const OPENMPCD_CUDA_HOST_AND_DEVICE IteratorDifference OpenMPCD::CUDA::StridedIteratorRange< UnderlyingIterator, stride >::StrideFunctor::operator() ( const IteratorDifference i) const
inline

Calculates how many times the underlying iterator has to be incremented to achieve i increments of the effective iterator.

Parameters
[in]iThe number of times the effective iterator is to be incremented.

Definition at line 73 of file StridedIteratorRange.hpp.


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