xtensor
Loading...
Searching...
No Matches
xt::xview_stepper< is_const, CT, S > Class Template Reference

Public Types

using view_type = std::conditional_t<is_const, const xview<CT, S...>, xview<CT, S...>>
 
using substepper_type = get_stepper<view_type>
 
using value_type = typename substepper_type::value_type
 
using reference = typename substepper_type::reference
 
using pointer = typename substepper_type::pointer
 
using difference_type = typename substepper_type::difference_type
 
using size_type = typename view_type::size_type
 
using shape_type = typename substepper_type::shape_type
 

Broadcasting

 xview_stepper (view_type *view, substepper_type it, size_type offset, bool end=false, layout_type l=::xt::layout_type::row_major)
 
reference operator* () const
 
void step (size_type dim)
 
void step_back (size_type dim)
 
void step (size_type dim, size_type n)
 
void step_back (size_type dim, size_type n)
 
void reset (size_type dim)
 
void reset_back (size_type dim)
 
void to_begin ()
 
void to_end (layout_type l)
 

Detailed Description

template<bool is_const, class CT, class... S>
class xt::xview_stepper< is_const, CT, S >

Definition at line 782 of file xview.hpp.

Member Typedef Documentation

◆ difference_type

template<bool is_const, class CT , class... S>
using xt::xview_stepper< is_const, CT, S >::difference_type = typename substepper_type::difference_type

Definition at line 792 of file xview.hpp.

◆ pointer

template<bool is_const, class CT , class... S>
using xt::xview_stepper< is_const, CT, S >::pointer = typename substepper_type::pointer

Definition at line 791 of file xview.hpp.

◆ reference

template<bool is_const, class CT , class... S>
using xt::xview_stepper< is_const, CT, S >::reference = typename substepper_type::reference

Definition at line 790 of file xview.hpp.

◆ shape_type

template<bool is_const, class CT , class... S>
using xt::xview_stepper< is_const, CT, S >::shape_type = typename substepper_type::shape_type

Definition at line 795 of file xview.hpp.

◆ size_type

template<bool is_const, class CT , class... S>
using xt::xview_stepper< is_const, CT, S >::size_type = typename view_type::size_type

Definition at line 793 of file xview.hpp.

◆ substepper_type

template<bool is_const, class CT , class... S>
using xt::xview_stepper< is_const, CT, S >::substepper_type = get_stepper<view_type>

Definition at line 787 of file xview.hpp.

◆ value_type

template<bool is_const, class CT , class... S>
using xt::xview_stepper< is_const, CT, S >::value_type = typename substepper_type::value_type

Definition at line 789 of file xview.hpp.

◆ view_type

template<bool is_const, class CT , class... S>
using xt::xview_stepper< is_const, CT, S >::view_type = std::conditional_t<is_const, const xview<CT, S...>, xview<CT, S...>>

Definition at line 786 of file xview.hpp.

Constructor & Destructor Documentation

◆ xview_stepper()

template<bool is_const, class CT , class... S>
xt::xview_stepper< is_const, CT, S >::xview_stepper ( view_type * view,
substepper_type it,
size_type offset,
bool end = false,
layout_type l = ::xt::layout_type::row_major )
inline

Definition at line 2023 of file xview.hpp.

Member Function Documentation

◆ operator*()

template<bool is_const, class CT , class... S>
auto xt::xview_stepper< is_const, CT, S >::operator* ( ) const
inline

Definition at line 2058 of file xview.hpp.

◆ reset()

template<bool is_const, class CT , class... S>
void xt::xview_stepper< is_const, CT, S >::reset ( size_type dim)
inline

Definition at line 2104 of file xview.hpp.

◆ reset_back()

template<bool is_const, class CT , class... S>
void xt::xview_stepper< is_const, CT, S >::reset_back ( size_type dim)
inline

Definition at line 2114 of file xview.hpp.

◆ step() [1/2]

template<bool is_const, class CT , class... S>
void xt::xview_stepper< is_const, CT, S >::step ( size_type dim)
inline

Definition at line 2064 of file xview.hpp.

◆ step() [2/2]

template<bool is_const, class CT , class... S>
void xt::xview_stepper< is_const, CT, S >::step ( size_type dim,
size_type n )
inline

Definition at line 2084 of file xview.hpp.

◆ step_back() [1/2]

template<bool is_const, class CT , class... S>
void xt::xview_stepper< is_const, CT, S >::step_back ( size_type dim)
inline

Definition at line 2074 of file xview.hpp.

◆ step_back() [2/2]

template<bool is_const, class CT , class... S>
void xt::xview_stepper< is_const, CT, S >::step_back ( size_type dim,
size_type n )
inline

Definition at line 2094 of file xview.hpp.

◆ to_begin()

template<bool is_const, class CT , class... S>
void xt::xview_stepper< is_const, CT, S >::to_begin ( )
inline

Definition at line 2124 of file xview.hpp.

◆ to_end()

template<bool is_const, class CT , class... S>
void xt::xview_stepper< is_const, CT, S >::to_end ( layout_type l)
inline

Definition at line 2131 of file xview.hpp.


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