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>
requires (!detail::is_xdrop_slice<std::decay_t<C>>::value)
 xdrop_slice (C &cont)
 xdrop_slice (container_type &&cont)
template<class S>
 xdrop_slice (std::initializer_list< S > t)
template<std::convertible_to< T > S>
 operator xdrop_slice< S > () const noexcept
template<std::convertible_to< T > S>
xdrop_slice< S > convert () 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_type & derived_cast () noexcept

Additional Inherited Members

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

Detailed Description

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

Definition at line 421 of file xslice.hpp.

Member Typedef Documentation

◆ container_type

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

Definition at line 425 of file xslice.hpp.

◆ self_type

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

Definition at line 427 of file xslice.hpp.

◆ size_type

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

Definition at line 426 of file xslice.hpp.

Constructor & Destructor Documentation

◆ xdrop_slice() [1/3]

template<class T>
requires (!detail::is_xdrop_slice<std::decay_t<C>>::value)
template<class C>
requires (!detail::is_xdrop_slice<std::decay_t<C>>::value)
xt::xdrop_slice< T >::xdrop_slice ( C & cont)
inlineexplicit

Definition at line 1424 of file xslice.hpp.

◆ xdrop_slice() [2/3]

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

Definition at line 1431 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 1438 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 1578 of file xslice.hpp.

◆ convert()

template<class T>
template<std::convertible_to< T > S>
xdrop_slice< S > xt::xdrop_slice< T >::convert ( ) const
inlinenoexcept

Definition at line 1492 of file xslice.hpp.

◆ normalize()

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

Definition at line 1498 of file xslice.hpp.

◆ operator xdrop_slice< S >()

template<class T>
template<std::convertible_to< T > S>
xt::xdrop_slice< T >::operator xdrop_slice< S > ( ) const
inlinenoexcept

Definition at line 1454 of file xslice.hpp.

◆ operator!=()

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

Definition at line 1590 of file xslice.hpp.

◆ operator()()

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

Definition at line 1526 of file xslice.hpp.

◆ operator==()

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

Definition at line 1584 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 1559 of file xslice.hpp.

◆ size()

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

Definition at line 1540 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 1546 of file xslice.hpp.

◆ xdrop_slice

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

Definition at line 468 of file xslice.hpp.


The documentation for this class was generated from the following file:
  • /home/runner/work/xtensor/xtensor/include/xtensor/views/xslice.hpp