Go to the documentation of this file.
21 #ifndef mia_2d_iterator_hh
22 #define mia_2d_iterator_hh
100 template <
typename AI>
110 template <
typename AI>
119 template <
typename AI>
140 template <
typename T>
friend
144 template <
typename T>
friend
173 template <
typename I>
174 template <
typename AI>
178 m_size = other.m_size;
179 m_begin = other.m_begin;
181 m_iterator = other.m_iterator;
182 m_xstride = other.m_xstride;
183 m_boundary = other.m_boundary;
187 template <
typename I>
188 template <
typename AI>
191 m_size(other.m_size),
192 m_begin(other.m_begin),
194 m_xstride(other.m_xstride),
195 m_iterator(other.m_iterator),
196 m_boundary(other.m_boundary)
200 template <
typename T>
203 return left.m_pos == right.m_pos;
206 template <
typename T>
209 return left.m_pos != right.m_pos;
213 template <
typename I>
254 template <
typename AI>
264 template <
typename AI>
273 template <
typename AI>
294 template <
typename T>
friend
326 template <
typename I>
327 template <
typename AI>
331 m_size = other.m_size;
332 m_begin = other.m_begin;
334 m_iterator = other.m_iterator;
335 m_xstride = other.m_xstride;
339 template <
typename I>
340 template <
typename AI>
343 m_size(other.m_size),
344 m_begin(other.m_begin),
346 m_xstride(other.m_xstride),
347 m_iterator(other.m_iterator)
358 template <
typename I>
366 return left.m_pos == right.m_pos;
373 template <
typename I>
379 template <
typename I>
383 return m_iterator[i];
392 template <
typename I>
402 template <
typename I>
pointer operator->() const
internal_iterator get_point()
forward_iterator_tag iterator_category
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
I::pointer pointer
data type pointer
bool operator!=(const range2d_iterator_with_boundary_flag< T > &left, const range2d_iterator_with_boundary_flag< T > &right)
const reference operator[](int i) const
forward_iterator_tag iterator_category
#define NS_MIA_END
conveniance define to end the mia namespace
friend class range2d_iterator
friend iterator type because we may want to copy a iterator to a const_iterator.
const C2DBounds & pos() const
range2d_iterator< I > & operator++()
prefix increment
I::difference_type difference_type
friend class range2d_iterator_with_boundary_flag
friend iterator type because we may want to copy a iterator to a const_iterator.
internal_iterator get_point()
I::reference reference
data type reference
I::reference reference
data type reference
pointer operator->() const
range2d_iterator_with_boundary_flag< I > & operator++()
prefix increment
bool operator==(const range2d_iterator_with_boundary_flag< T > &left, const range2d_iterator_with_boundary_flag< T > &right)
int get_boundary_flags() const
I internal_iterator
data type for the real iterator in the background
a 2D iterator that knows its position in the 2D grid ans supports iterating over sub-ranges
I internal_iterator
data type for the real iterator in the background
I::difference_type difference_type
range2d_iterator< I > & operator=(const range2d_iterator< I > &other)
assignment operator
range2d_iterator_with_boundary_flag< I > & operator=(const range2d_iterator_with_boundary_flag< I > &other)
assignment operator
range2d_iterator_with_boundary_flag< I > with_boundary_flag() const
Matrix EXPORT_GSL operator*(const Matrix &lhs, const Matrix &rhs)
const C2DBounds & pos() const
I::pointer pointer
data type pointer