OpenMPCD
|
Partial template specialization of StridedIteratorRange
for dynamic strides.
More...
#include <StridedIteratorRange.hpp>
Classes | |
class | StrideFunctor |
Functor class for advancing a pointer by the given stride. More... | |
Public Types | |
typedef thrust::iterator_difference< UnderlyingIterator >::type | IteratorDifference |
The type of the difference of two of the underlying iterators. More... | |
typedef thrust::counting_iterator< IteratorDifference > | CountingIterator |
Type that is used to linearly increment a count. More... | |
typedef thrust::transform_iterator< StrideFunctor, CountingIterator > | TransformIterator |
Type that applies StrideFunctor to the input sequence. More... | |
typedef thrust::permutation_iterator< UnderlyingIterator, TransformIterator > | PermutationIterator |
Type that will be indexing into the UnderlyingIterator according to the TransformIterator . More... | |
typedef PermutationIterator | Iterator |
The effective iterator type. More... | |
Public Member Functions | |
StridedIteratorRange (const UnderlyingIterator &start, const UnderlyingIterator &pastTheEnd_, const unsigned int stride_) | |
The constructor. More... | |
Iterator | begin () const |
Returns the first iterator in the strided range. More... | |
Iterator | end () const |
Returns the first past-the-end iterator of the strided range. More... | |
Partial template specialization of StridedIteratorRange
for dynamic strides.
Definition at line 140 of file StridedIteratorRange.hpp.
typedef thrust::counting_iterator<IteratorDifference> OpenMPCD::CUDA::StridedIteratorRange< UnderlyingIterator, 0 >::CountingIterator |
Type that is used to linearly increment a count.
Definition at line 185 of file StridedIteratorRange.hpp.
typedef PermutationIterator OpenMPCD::CUDA::StridedIteratorRange< UnderlyingIterator, 0 >::Iterator |
The effective iterator type.
Definition at line 198 of file StridedIteratorRange.hpp.
typedef thrust::iterator_difference<UnderlyingIterator>::type OpenMPCD::CUDA::StridedIteratorRange< UnderlyingIterator, 0 >::IteratorDifference |
The type of the difference of two of the underlying iterators.
Definition at line 146 of file StridedIteratorRange.hpp.
typedef thrust::permutation_iterator< UnderlyingIterator, TransformIterator> OpenMPCD::CUDA::StridedIteratorRange< UnderlyingIterator, 0 >::PermutationIterator |
Type that will be indexing into the UnderlyingIterator
according to the TransformIterator
.
Definition at line 194 of file StridedIteratorRange.hpp.
typedef thrust::transform_iterator<StrideFunctor, CountingIterator> OpenMPCD::CUDA::StridedIteratorRange< UnderlyingIterator, 0 >::TransformIterator |
Type that applies StrideFunctor
to the input sequence.
Definition at line 189 of file StridedIteratorRange.hpp.
|
inline |
The constructor.
[in] | start | The first iterator to iterate over. |
[in] | pastTheEnd_ | The first iterator that is past-the-end. |
[in] | stride_ | The iterator stride. |
Definition at line 208 of file StridedIteratorRange.hpp.
|
inline |
Returns the first iterator in the strided range.
Definition at line 219 of file StridedIteratorRange.hpp.
|
inline |
Returns the first past-the-end iterator of the strided range.
Definition at line 229 of file StridedIteratorRange.hpp.