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

Public Types

using container_type = svector<T>
 
using size_type = typename container_type::value_type
 
using self_type = xkeep_slice<T>
 
- Public Types inherited from xt::xslice< xkeep_slice< T > >
using derived_type
 

Public Member Functions

template<class C , typename = detail::disable_xkeep_slice_t<C>>
 xkeep_slice (C &cont)
 
 xkeep_slice (container_type &&cont)
 
template<class S >
 xkeep_slice (std::initializer_list< S > t)
 
template<class S , typename = std::enable_if_t<std::is_convertible<S, T>::value, void>>
 operator xkeep_slice< S > () const noexcept
 
template<class S , typename = std::enable_if_t<std::is_convertible<S, T>::value, void>>
xkeep_slice< Sconvert () const noexcept
 
size_type operator() (size_type i) const noexcept
 
size_type size () const noexcept
 
void normalize (std::size_t s)
 
size_type step_size (std::size_t i, std::size_t n=1) const noexcept
 
size_type revert_index (std::size_t i) const
 
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< xkeep_slice< T > >
derived_typederived_cast () noexcept
 
const derived_typederived_cast () const noexcept
 

Additional Inherited Members

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

Detailed Description

template<class T>
class xt::xkeep_slice< T >

Definition at line 332 of file xslice.hpp.

Member Typedef Documentation

◆ container_type

template<class T >
using xt::xkeep_slice< T >::container_type = svector<T>

Definition at line 336 of file xslice.hpp.

◆ self_type

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

Definition at line 338 of file xslice.hpp.

◆ size_type

template<class T >
using xt::xkeep_slice< T >::size_type = typename container_type::value_type

Definition at line 337 of file xslice.hpp.

Constructor & Destructor Documentation

◆ xkeep_slice() [1/3]

template<class T >
template<class C , typename >
xt::xkeep_slice< T >::xkeep_slice ( C & cont)
inlineexplicit

Definition at line 1355 of file xslice.hpp.

◆ xkeep_slice() [2/3]

template<class T >
xt::xkeep_slice< T >::xkeep_slice ( container_type && cont)
inlineexplicit

Definition at line 1361 of file xslice.hpp.

◆ xkeep_slice() [3/3]

template<class T >
template<class S >
xt::xkeep_slice< T >::xkeep_slice ( std::initializer_list< S > t)
inline

Definition at line 1368 of file xslice.hpp.

Member Function Documentation

◆ contains()

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

Definition at line 1475 of file xslice.hpp.

◆ convert()

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

Definition at line 1414 of file xslice.hpp.

◆ normalize()

template<class T >
void xt::xkeep_slice< T >::normalize ( std::size_t s)
inline

Definition at line 1420 of file xslice.hpp.

◆ operator xkeep_slice< S >()

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

Definition at line 1384 of file xslice.hpp.

◆ operator!=()

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

Definition at line 1487 of file xslice.hpp.

◆ operator()()

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

Definition at line 1432 of file xslice.hpp.

◆ operator==()

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

Definition at line 1481 of file xslice.hpp.

◆ revert_index()

template<class T >
auto xt::xkeep_slice< T >::revert_index ( std::size_t i) const
inline

Definition at line 1461 of file xslice.hpp.

◆ size()

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

Definition at line 1438 of file xslice.hpp.

◆ step_size()

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

Definition at line 1444 of file xslice.hpp.

Friends And Related Symbol Documentation

◆ xkeep_slice

template<class T >
template<class S >
friend class xkeep_slice
friend

Definition at line 376 of file xslice.hpp.


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