xtensor
Loading...
Searching...
No Matches
xt::xstepper< C > Class Template Reference

Public Types

using storage_type = C
 
using subiterator_type = get_stepper_iterator<C>
 
using subiterator_traits = std::iterator_traits<subiterator_type>
 
using value_type = typename subiterator_traits::value_type
 
using reference = typename subiterator_traits::reference
 
using pointer = typename subiterator_traits::pointer
 
using difference_type = typename subiterator_traits::difference_type
 
using size_type = typename storage_type::size_type
 
using shape_type = typename storage_type::shape_type
 
using simd_value_type = xt_simd::simd_type<value_type>
 
template<class requested_type >
using simd_return_type = xt_simd::simd_return_type<value_type, requested_type>
 

Public Member Functions

 xstepper (storage_type *c, subiterator_type it, size_type offset) 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)
 
template<class T >
simd_return_type< T > step_simd ()
 
void step_leading ()
 
template<class R >
void store_simd (const R &vec)
 
template<class T >
auto step_simd () -> simd_return_type< T >
 

Detailed Description

template<class C>
class xt::xstepper< C >

Definition at line 106 of file xiterator.hpp.

Member Typedef Documentation

◆ difference_type

template<class C >
using xt::xstepper< C >::difference_type = typename subiterator_traits::difference_type

Definition at line 116 of file xiterator.hpp.

◆ pointer

template<class C >
using xt::xstepper< C >::pointer = typename subiterator_traits::pointer

Definition at line 115 of file xiterator.hpp.

◆ reference

template<class C >
using xt::xstepper< C >::reference = typename subiterator_traits::reference

Definition at line 114 of file xiterator.hpp.

◆ shape_type

template<class C >
using xt::xstepper< C >::shape_type = typename storage_type::shape_type

Definition at line 118 of file xiterator.hpp.

◆ simd_return_type

template<class C >
template<class requested_type >
using xt::xstepper< C >::simd_return_type = xt_simd::simd_return_type<value_type, requested_type>

Definition at line 122 of file xiterator.hpp.

◆ simd_value_type

template<class C >
using xt::xstepper< C >::simd_value_type = xt_simd::simd_type<value_type>

Definition at line 119 of file xiterator.hpp.

◆ size_type

template<class C >
using xt::xstepper< C >::size_type = typename storage_type::size_type

Definition at line 117 of file xiterator.hpp.

◆ storage_type

template<class C >
using xt::xstepper< C >::storage_type = C

Definition at line 110 of file xiterator.hpp.

◆ subiterator_traits

template<class C >
using xt::xstepper< C >::subiterator_traits = std::iterator_traits<subiterator_type>

Definition at line 112 of file xiterator.hpp.

◆ subiterator_type

template<class C >
using xt::xstepper< C >::subiterator_type = get_stepper_iterator<C>

Definition at line 111 of file xiterator.hpp.

◆ value_type

template<class C >
using xt::xstepper< C >::value_type = typename subiterator_traits::value_type

Definition at line 113 of file xiterator.hpp.

Constructor & Destructor Documentation

◆ xstepper()

template<class C >
xt::xstepper< C >::xstepper ( storage_type * c,
subiterator_type it,
size_type offset )
inlinenoexcept

Definition at line 489 of file xiterator.hpp.

Member Function Documentation

◆ operator*()

template<class C >
auto xt::xstepper< C >::operator* ( ) const
inline

Definition at line 497 of file xiterator.hpp.

◆ reset()

template<class C >
void xt::xstepper< C >::reset ( size_type dim)
inline

Definition at line 523 of file xiterator.hpp.

◆ reset_back()

template<class C >
void xt::xstepper< C >::reset_back ( size_type dim)
inline

Definition at line 532 of file xiterator.hpp.

◆ step()

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

Definition at line 503 of file xiterator.hpp.

◆ step_back()

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

Definition at line 513 of file xiterator.hpp.

◆ step_leading()

template<class C >
void xt::xstepper< C >::step_leading ( )

Definition at line 597 of file xiterator.hpp.

◆ step_simd()

template<class C >
template<class T >
auto xt::xstepper< C >::step_simd ( ) -> simd_return_type<T>
inline

Definition at line 579 of file xiterator.hpp.

◆ store_simd()

template<class C >
template<class R >
void xt::xstepper< C >::store_simd ( const R & vec)
inline

Definition at line 589 of file xiterator.hpp.

◆ to_begin()

template<class C >
void xt::xstepper< C >::to_begin ( )
inline

Definition at line 541 of file xiterator.hpp.

◆ to_end()

template<class C >
void xt::xstepper< C >::to_end ( layout_type l)
inline

Definition at line 547 of file xiterator.hpp.


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