17#ifndef __algo_iterator_h__
18#define __algo_iterator_h__
32 template <
class InfoType>
36 for (
size_t i = 0; i <
S.ndim(); ++i)
40 size_t ndim ()
const {
return d.size(); }
47 stream <<
"iterator, position [ ";
48 for (
size_t n = 0; n < V.
ndim(); ++n)
49 stream << V.
index(n) <<
" ";
57 void value ()
const { assert (0); }
a dummy image to iterate over, useful for multi-threaded looping.
ssize_t & index(size_t axis)
ssize_t size(size_t axis) const
Iterator(const InfoType &S)
const ssize_t & index(size_t axis) const
friend std::ostream & operator<<(std::ostream &stream, const Iterator &V)