xtensor
Loading...
Searching...
No Matches
xt::xstepped_range< T > Class Template Reference
Inheritance diagram for xt::xstepped_range< T >:
xt::xslice< xstepped_range< T > >

Public Types

using size_type = T
 
using self_type = xstepped_range<T>
 
- Public Types inherited from xt::xslice< xstepped_range< T > >
using derived_type
 

Public Member Functions

 xstepped_range (size_type start_val, size_type stop_val, size_type step) noexcept
 
template<class S , typename = std::enable_if_t<std::is_convertible<S, T>::value, void>>
 operator xstepped_range< S > () const noexcept
 
template<class S , typename = std::enable_if_t<std::is_convertible<S, T>::value, void>>
xstepped_range< Sconvert () const noexcept
 
size_type operator() (size_type i) const noexcept
 
size_type size () const noexcept
 
size_type step_size () const noexcept
 
size_type step_size (std::size_t i, std::size_t n=1) const noexcept
 
size_type revert_index (std::size_t i) const noexcept
 
bool contains (size_type i) const noexcept
 
bool operator== (const self_type &rhs) const noexcept
 
bool operator!= (const self_type &rhs) const noexcept
 
- Public Member Functions inherited from xt::xslice< xstepped_range< T > >
derived_typederived_cast () noexcept
 
const derived_typederived_cast () const noexcept
 

Additional Inherited Members

- Protected Member Functions inherited from xt::xslice< xstepped_range< T > >
 xslice (const xslice &)=default
 
 xslice (xslice &&)=default
 
xsliceoperator= (const xslice &)=default
 
xsliceoperator= (xslice &&)=default
 

Detailed Description

template<class T>
class xt::xstepped_range< T >

Definition at line 149 of file xslice.hpp.

Member Typedef Documentation

◆ self_type

template<class T >
using xt::xstepped_range< T >::self_type = xstepped_range<T>

Definition at line 154 of file xslice.hpp.

◆ size_type

template<class T >
using xt::xstepped_range< T >::size_type = T

Definition at line 153 of file xslice.hpp.

Constructor & Destructor Documentation

◆ xstepped_range()

template<class T >
xt::xstepped_range< T >::xstepped_range ( size_type start_val,
size_type stop_val,
size_type step )
inlinenoexcept

Definition at line 1136 of file xslice.hpp.

Member Function Documentation

◆ contains()

template<class T >
bool xt::xstepped_range< T >::contains ( size_type i) const
inlinenoexcept

Definition at line 1194 of file xslice.hpp.

◆ convert()

template<class T >
template<class S , typename >
xstepped_range< S > xt::xstepped_range< T >::convert ( ) const
inlinenoexcept

Definition at line 1158 of file xslice.hpp.

◆ operator xstepped_range< S >()

template<class T >
template<class S , typename >
xt::xstepped_range< T >::operator xstepped_range< S > ( ) const
inlinenoexcept

Definition at line 1147 of file xslice.hpp.

◆ operator!=()

template<class T >
bool xt::xstepped_range< T >::operator!= ( const self_type & rhs) const
inlinenoexcept

Definition at line 1206 of file xslice.hpp.

◆ operator()()

template<class T >
auto xt::xstepped_range< T >::operator() ( size_type i) const
inlinenoexcept

Definition at line 1164 of file xslice.hpp.

◆ operator==()

template<class T >
bool xt::xstepped_range< T >::operator== ( const self_type & rhs) const
inlinenoexcept

Definition at line 1200 of file xslice.hpp.

◆ revert_index()

template<class T >
auto xt::xstepped_range< T >::revert_index ( std::size_t i) const
inlinenoexcept

Definition at line 1188 of file xslice.hpp.

◆ size()

template<class T >
auto xt::xstepped_range< T >::size ( ) const
inlinenoexcept

Definition at line 1170 of file xslice.hpp.

◆ step_size() [1/2]

template<class T >
auto xt::xstepped_range< T >::step_size ( ) const
inlinenoexcept

Definition at line 1176 of file xslice.hpp.

◆ step_size() [2/2]

template<class T >
auto xt::xstepped_range< T >::step_size ( std::size_t i,
std::size_t n = 1 ) const
inlinenoexcept

Definition at line 1182 of file xslice.hpp.

Friends And Related Symbol Documentation

◆ xstepped_range

template<class T >
template<class S >
friend class xstepped_range
friend

Definition at line 186 of file xslice.hpp.


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