xtensor
 
Loading...
Searching...
No Matches
xt::fixed_shape< X > Class Template Reference

Fixed shape implementation for compile time defined arrays. More...

#include <xstorage.hpp>

Public Types

using cast_type = const_array<std::size_t, sizeof...(X)>
 
using value_type = std::size_t
 
using size_type = std::size_t
 
using const_iterator = typename cast_type::const_iterator
 

Public Member Functions

constexpr operator cast_type () const
 
constexpr auto begin () const
 
constexpr auto end () const
 
auto rbegin () const
 
auto rend () const
 
constexpr auto cbegin () const
 
constexpr auto cend () const
 
auto crbegin () const
 
auto crend () const
 
constexpr std::size_t operator[] (std::size_t idx) const
 
constexpr bool empty () const
 

Static Public Member Functions

static constexpr std::size_t size ()
 
template<std::size_t idx>
static constexpr auto get ()
 

Detailed Description

template<std::size_t... X>
class xt::fixed_shape< X >

Fixed shape implementation for compile time defined arrays.

See also
xshape

Definition at line 1587 of file xstorage.hpp.

Member Typedef Documentation

◆ cast_type

template<std::size_t... X>
using xt::fixed_shape< X >::cast_type = const_array<std::size_t, sizeof...(X)>

Definition at line 1591 of file xstorage.hpp.

◆ const_iterator

template<std::size_t... X>
using xt::fixed_shape< X >::const_iterator = typename cast_type::const_iterator

Definition at line 1594 of file xstorage.hpp.

◆ size_type

template<std::size_t... X>
using xt::fixed_shape< X >::size_type = std::size_t

Definition at line 1593 of file xstorage.hpp.

◆ value_type

template<std::size_t... X>
using xt::fixed_shape< X >::value_type = std::size_t

Definition at line 1592 of file xstorage.hpp.

Member Function Documentation

◆ begin()

template<std::size_t... X>
auto xt::fixed_shape< X >::begin ( ) const
inlineconstexpr

Definition at line 1613 of file xstorage.hpp.

◆ cbegin()

template<std::size_t... X>
auto xt::fixed_shape< X >::cbegin ( ) const
inlineconstexpr

Definition at line 1633 of file xstorage.hpp.

◆ cend()

template<std::size_t... X>
auto xt::fixed_shape< X >::cend ( ) const
inlineconstexpr

Definition at line 1638 of file xstorage.hpp.

◆ crbegin()

template<std::size_t... X>
auto xt::fixed_shape< X >::crbegin ( ) const
inline

Definition at line 1643 of file xstorage.hpp.

◆ crend()

template<std::size_t... X>
auto xt::fixed_shape< X >::crend ( ) const
inline

Definition at line 1648 of file xstorage.hpp.

◆ empty()

template<std::size_t... X>
bool xt::fixed_shape< X >::empty ( ) const
inlineconstexpr

Definition at line 1658 of file xstorage.hpp.

◆ end()

template<std::size_t... X>
auto xt::fixed_shape< X >::end ( ) const
inlineconstexpr

Definition at line 1618 of file xstorage.hpp.

◆ get()

template<std::size_t... X>
template<std::size_t idx>
static constexpr auto xt::fixed_shape< X >::get ( )
inlinestaticconstexpr

Definition at line 1602 of file xstorage.hpp.

◆ operator cast_type()

template<std::size_t... X>
xt::fixed_shape< X >::operator cast_type ( ) const
inlineconstexpr

Definition at line 1608 of file xstorage.hpp.

◆ operator[]()

template<std::size_t... X>
std::size_t xt::fixed_shape< X >::operator[] ( std::size_t idx) const
inlineconstexpr

Definition at line 1653 of file xstorage.hpp.

◆ rbegin()

template<std::size_t... X>
auto xt::fixed_shape< X >::rbegin ( ) const
inline

Definition at line 1623 of file xstorage.hpp.

◆ rend()

template<std::size_t... X>
auto xt::fixed_shape< X >::rend ( ) const
inline

Definition at line 1628 of file xstorage.hpp.

◆ size()

template<std::size_t... X>
static constexpr std::size_t xt::fixed_shape< X >::size ( )
inlinestaticconstexpr

Definition at line 1596 of file xstorage.hpp.


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