xtensor
Loading...
Searching...
No Matches
xt::xindexed_stepper< E, is_const > Class Template Reference

Public Types

using self_type = xindexed_stepper<E, is_const>
 
using xexpression_type = std::conditional_t<is_const, const E, E>
 
using value_type = typename xexpression_type::value_type
 
using reference
 
using pointer
 
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 index_type = xindex_type_t<shape_type>
 

Public Member Functions

 xindexed_stepper (xexpression_type *e, size_type offset, bool end=false) noexcept
 
reference operator* () const
 
void step (size_type dim, size_type n=1)
 
void step_back (size_type dim, size_type n=1)
 
void reset (size_type dim)
 
void reset_back (size_type dim)
 
void to_begin ()
 
void to_end (layout_type l)
 

Detailed Description

template<class E, bool is_const>
class xt::xindexed_stepper< E, is_const >

Definition at line 177 of file xiterator.hpp.

Member Typedef Documentation

◆ difference_type

template<class E , bool is_const>
using xt::xindexed_stepper< E, is_const >::difference_type = typename xexpression_type::difference_type

Definition at line 190 of file xiterator.hpp.

◆ index_type

template<class E , bool is_const>
using xt::xindexed_stepper< E, is_const >::index_type = xindex_type_t<shape_type>

Definition at line 193 of file xiterator.hpp.

◆ pointer

template<class E , bool is_const>
using xt::xindexed_stepper< E, is_const >::pointer
Initial value:
std::
conditional_t<is_const, typename xexpression_type::const_pointer, typename xexpression_type::pointer>

Definition at line 187 of file xiterator.hpp.

◆ reference

template<class E , bool is_const>
using xt::xindexed_stepper< E, is_const >::reference
Initial value:
std::
conditional_t<is_const, typename xexpression_type::const_reference, typename xexpression_type::reference>

Definition at line 185 of file xiterator.hpp.

◆ self_type

template<class E , bool is_const>
using xt::xindexed_stepper< E, is_const >::self_type = xindexed_stepper<E, is_const>

Definition at line 181 of file xiterator.hpp.

◆ shape_type

template<class E , bool is_const>
using xt::xindexed_stepper< E, is_const >::shape_type = typename xexpression_type::shape_type

Definition at line 192 of file xiterator.hpp.

◆ size_type

template<class E , bool is_const>
using xt::xindexed_stepper< E, is_const >::size_type = typename xexpression_type::size_type

Definition at line 189 of file xiterator.hpp.

◆ value_type

template<class E , bool is_const>
using xt::xindexed_stepper< E, is_const >::value_type = typename xexpression_type::value_type

Definition at line 184 of file xiterator.hpp.

◆ xexpression_type

template<class E , bool is_const>
using xt::xindexed_stepper< E, is_const >::xexpression_type = std::conditional_t<is_const, const E, E>

Definition at line 182 of file xiterator.hpp.

Constructor & Destructor Documentation

◆ xindexed_stepper()

template<class C , bool is_const>
xt::xindexed_stepper< C, is_const >::xindexed_stepper ( xexpression_type * e,
size_type offset,
bool end = false )
inlinenoexcept

Definition at line 975 of file xiterator.hpp.

Member Function Documentation

◆ operator*()

template<class C , bool is_const>
auto xt::xindexed_stepper< C, is_const >::operator* ( ) const
inline

Definition at line 988 of file xiterator.hpp.

◆ reset()

template<class C , bool is_const>
void xt::xindexed_stepper< C, is_const >::reset ( size_type dim)
inline

Definition at line 1012 of file xiterator.hpp.

◆ reset_back()

template<class C , bool is_const>
void xt::xindexed_stepper< C, is_const >::reset_back ( size_type dim)
inline

Definition at line 1021 of file xiterator.hpp.

◆ step()

template<class C , bool is_const>
void xt::xindexed_stepper< C, is_const >::step ( size_type dim,
size_type n = 1 )
inline

Definition at line 994 of file xiterator.hpp.

◆ step_back()

template<class C , bool is_const>
void xt::xindexed_stepper< C, is_const >::step_back ( size_type dim,
size_type n = 1 )
inline

Definition at line 1003 of file xiterator.hpp.

◆ to_begin()

template<class C , bool is_const>
void xt::xindexed_stepper< C, is_const >::to_begin ( )
inline

Definition at line 1030 of file xiterator.hpp.

◆ to_end()

template<class C , bool is_const>
void xt::xindexed_stepper< C, is_const >::to_end ( layout_type l)
inline

Definition at line 1036 of file xiterator.hpp.


The documentation for this class was generated from the following file: