Go to the documentation of this file.
21 #ifndef mia_2d_iterator_hh
22 #define mia_2d_iterator_hh
101 template <
typename AI>
111 template <
typename AI>
120 template <
typename AI>
141 template <
typename T>
friend
145 template <
typename T>
friend
174 template <
typename I>
175 template <
typename AI>
179 m_size = other.m_size;
180 m_begin = other.m_begin;
182 m_iterator = other.m_iterator;
183 m_xstride = other.m_xstride;
184 m_boundary = other.m_boundary;
188 template <
typename I>
189 template <
typename AI>
192 m_size(other.m_size),
193 m_begin(other.m_begin),
195 m_xstride(other.m_xstride),
196 m_iterator(other.m_iterator),
197 m_boundary(other.m_boundary)
201 template <
typename T>
204 return left.m_pos == right.m_pos;
207 template <
typename T>
210 return left.m_pos != right.m_pos;
214 template <
typename I>
255 template <
typename AI>
265 template <
typename AI>
274 template <
typename AI>
295 template <
typename T>
friend
327 template <
typename I>
328 template <
typename AI>
332 m_size = other.m_size;
333 m_begin = other.m_begin;
335 m_iterator = other.m_iterator;
336 m_xstride = other.m_xstride;
340 template <
typename I>
341 template <
typename AI>
344 m_size(other.m_size),
345 m_begin(other.m_begin),
347 m_xstride(other.m_xstride),
348 m_iterator(other.m_iterator)
359 template <
typename I>
366 return left.m_pos == right.m_pos;
372 template <
typename I>
378 template <
typename I>
382 return m_iterator[i];
392 template <
typename I>
403 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