Class for iteration over (N-1)-dimensional slices, where N is the dimension of the underlying expression. More...
#include <xaxis_iterator.hpp>
Public Types | |
| using | self_type = xaxis_iterator<CT> |
| using | xexpression_type = std::decay_t<CT> |
| using | size_type = typename xexpression_type::size_type |
| using | difference_type = typename xexpression_type::difference_type |
| using | shape_type = typename xexpression_type::shape_type |
| using | value_type = xstrided_view<CT, shape_type> |
| using | reference = std::remove_reference_t<xtl::apply_cv_t<CT, value_type>> |
| using | pointer = xtl::xclosure_pointer<std::remove_reference_t<xtl::apply_cv_t<CT, value_type>>> |
| using | iterator_category = std::forward_iterator_tag |
Public Member Functions | |
Constructors | |
| template<class CTA> | |
| xaxis_iterator (CTA &&e, size_type axis) | |
| Constructs an xaxis_iterator. | |
| template<class CTA> | |
| xaxis_iterator (CTA &&e, size_type axis, size_type index, size_type offset) | |
| Constructs an xaxis_iterator starting at specified index and offset. | |
Increment | |
| self_type & | operator++ () |
| Increments the iterator to the next position and returns it. | |
| self_type | operator++ (int) |
| Makes a copy of the iterator, increments it to the next position, and returns the copy. | |
Reference | |
| reference | operator* () const |
| Returns the strided view at the current iteration position. | |
| pointer | operator-> () const |
| Returns a pointer to the strided view at the current iteration position. | |
| bool | equal (const self_type &rhs) const |
Checks equality of the xaxis_slice_iterator and rhs. | |
Class for iteration over (N-1)-dimensional slices, where N is the dimension of the underlying expression.
If N is the number of dimensions of an expression, the xaxis_iterator iterates over (N-1)-dimensional slices oriented along the specified axis.
| CT | the closure type of the xexpression |
Definition at line 33 of file xaxis_iterator.hpp.
| using xt::xaxis_iterator< CT >::difference_type = typename xexpression_type::difference_type |
Definition at line 41 of file xaxis_iterator.hpp.
| using xt::xaxis_iterator< CT >::iterator_category = std::forward_iterator_tag |
Definition at line 47 of file xaxis_iterator.hpp.
| using xt::xaxis_iterator< CT >::pointer = xtl::xclosure_pointer<std::remove_reference_t<xtl::apply_cv_t<CT, value_type>>> |
Definition at line 45 of file xaxis_iterator.hpp.
| using xt::xaxis_iterator< CT >::reference = std::remove_reference_t<xtl::apply_cv_t<CT, value_type>> |
Definition at line 44 of file xaxis_iterator.hpp.
| using xt::xaxis_iterator< CT >::self_type = xaxis_iterator<CT> |
Definition at line 37 of file xaxis_iterator.hpp.
| using xt::xaxis_iterator< CT >::shape_type = typename xexpression_type::shape_type |
Definition at line 42 of file xaxis_iterator.hpp.
| using xt::xaxis_iterator< CT >::size_type = typename xexpression_type::size_type |
Definition at line 40 of file xaxis_iterator.hpp.
| using xt::xaxis_iterator< CT >::value_type = xstrided_view<CT, shape_type> |
Definition at line 43 of file xaxis_iterator.hpp.
| using xt::xaxis_iterator< CT >::xexpression_type = std::decay_t<CT> |
Definition at line 39 of file xaxis_iterator.hpp.
|
inline |
Constructs an xaxis_iterator.
| e | the expression to iterate over |
| axis | the axis to iterate over taking N-1 dimensional slices |
Definition at line 149 of file xaxis_iterator.hpp.
|
inline |
Constructs an xaxis_iterator starting at specified index and offset.
| e | the expression to iterate over |
| axis | the axis to iterate over taking N-1 dimensional slices |
| index | the starting index for the iterator |
| offset | the starting offset for the iterator |
Definition at line 164 of file xaxis_iterator.hpp.
|
inline |
Checks equality of the xaxis_slice_iterator and rhs.
return true if the iterators are equivalent, false otherwise
Definition at line 242 of file xaxis_iterator.hpp.
|
inline |
Returns the strided view at the current iteration position.
Definition at line 213 of file xaxis_iterator.hpp.
|
inline |
Increments the iterator to the next position and returns it.
Definition at line 182 of file xaxis_iterator.hpp.
|
inline |
Makes a copy of the iterator, increments it to the next position, and returns the copy.
Definition at line 194 of file xaxis_iterator.hpp.
|
inline |
Returns a pointer to the strided view at the current iteration position.
Definition at line 224 of file xaxis_iterator.hpp.