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

Public Types

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

Public Member Functions

template<class C , typename = detail::disable_xdrop_slice_t<C>>
 xdrop_slice (C &cont)
 
 xdrop_slice (container_type &&cont)
 
template<class S >
 xdrop_slice (std::initializer_list< S > t)
 
template<class S , typename = std::enable_if_t<std::is_convertible<S, T>::value, void>>
 operator xdrop_slice< S > () const noexcept
 
template<class S , typename = std::enable_if_t<std::is_convertible<S, T>::value, void>>
xdrop_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< xdrop_slice< T > >
derived_typederived_cast () noexcept
 
const derived_typederived_cast () const noexcept
 

Additional Inherited Members

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

Detailed Description

template<class T>
class xt::xdrop_slice< T >

Definition at line 455 of file xslice.hpp.

Member Typedef Documentation

◆ container_type

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

Definition at line 459 of file xslice.hpp.

◆ self_type

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

Definition at line 461 of file xslice.hpp.

◆ size_type

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

Definition at line 460 of file xslice.hpp.

Constructor & Destructor Documentation

◆ xdrop_slice() [1/3]

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

Definition at line 1498 of file xslice.hpp.

◆ xdrop_slice() [2/3]

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

Definition at line 1504 of file xslice.hpp.

◆ xdrop_slice() [3/3]

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

Definition at line 1511 of file xslice.hpp.

Member Function Documentation

◆ contains()

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

Definition at line 1651 of file xslice.hpp.

◆ convert()

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

Definition at line 1565 of file xslice.hpp.

◆ normalize()

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

Definition at line 1571 of file xslice.hpp.

◆ operator xdrop_slice< S >()

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

Definition at line 1527 of file xslice.hpp.

◆ operator!=()

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

Definition at line 1663 of file xslice.hpp.

◆ operator()()

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

Definition at line 1599 of file xslice.hpp.

◆ operator==()

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

Definition at line 1657 of file xslice.hpp.

◆ revert_index()

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

Definition at line 1632 of file xslice.hpp.

◆ size()

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

Definition at line 1613 of file xslice.hpp.

◆ step_size()

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

Definition at line 1619 of file xslice.hpp.

Friends And Related Symbol Documentation

◆ xdrop_slice

template<class T >
template<class S >
friend class xdrop_slice
friend

Definition at line 501 of file xslice.hpp.


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