OpenMPCD
|
Functor class for advancing a pointer by the given number of effective elements. More...
#include <BunchIteratorRange.hpp>
Public Member Functions | |
OPENMPCD_CUDA_HOST_AND_DEVICE | AdvancingFunctor (const unsigned int bunchSize_, const unsigned int gapSize_) |
The constructor. More... | |
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... | |
Functor class for advancing a pointer by the given number of effective elements.
Definition at line 52 of file BunchIteratorRange.hpp.
|
inline |
The constructor.
OpenMPCD::InvalidArgumentException | If OPENMPCD_DEBUG is defined, throws if bunchSize_ == 0 . |
[in] | bunchSize_ | The bunch size, which must not be 0 . |
[in] | gapSize_ | The gap size. |
Definition at line 67 of file BunchIteratorRange.hpp.
|
inline |
Calculates how many times the underlying iterator has to be incremented to achieve i
increments of the effective iterator.
[in] | i | The number of times the effective iterator is to be incremented. |
Definition at line 84 of file BunchIteratorRange.hpp.