|
Medial Code Documentation
|
Transform iterator that takes an index and calls transform operator. More...
#include <transform_iterator.h>
Public Member Functions | |
| IndexTransformIter (Fn &&op) | |
| IndexTransformIter (IndexTransformIter const &)=default | |
| IndexTransformIter & | operator= (IndexTransformIter &&)=default |
| IndexTransformIter & | operator= (IndexTransformIter const &that) |
| reference | operator* () const |
| reference | operator[] (std::size_t i) const |
| auto | operator- (IndexTransformIter const &that) const |
| bool | operator== (IndexTransformIter const &that) const |
| bool | operator!= (IndexTransformIter const &that) const |
| IndexTransformIter & | operator++ () |
| IndexTransformIter | operator++ (int) |
| IndexTransformIter & | operator+= (difference_type n) |
| IndexTransformIter & | operator-= (difference_type n) |
| IndexTransformIter | operator+ (difference_type n) const |
| IndexTransformIter | operator- (difference_type n) const |
Transform iterator that takes an index and calls transform operator.
This is CPU-only right now as taking host device function as operator complicates the code. For device side one can use thrust::transform_iterator instead.
|
inlineexplicit |
| op | Transform operator, takes a size_t index as input. |