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
 
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 1661 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 1669 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 1674 of file xstorage.hpp.

◆ size_type

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

Definition at line 1673 of file xstorage.hpp.

◆ value_type

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

Definition at line 1672 of file xstorage.hpp.

Member Function Documentation

◆ begin()

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

Definition at line 1693 of file xstorage.hpp.

◆ cbegin()

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

Definition at line 1713 of file xstorage.hpp.

◆ cend()

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

Definition at line 1718 of file xstorage.hpp.

◆ empty()

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

Definition at line 1728 of file xstorage.hpp.

◆ end()

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

Definition at line 1698 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 1682 of file xstorage.hpp.

◆ operator cast_type()

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

Definition at line 1688 of file xstorage.hpp.

◆ operator[]()

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

Definition at line 1723 of file xstorage.hpp.

◆ rbegin()

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

Definition at line 1703 of file xstorage.hpp.

◆ rend()

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

Definition at line 1708 of file xstorage.hpp.

◆ size()

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

Definition at line 1676 of file xstorage.hpp.


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