OTB
9.0.0
Orfeo Toolbox
|
#include <otbMdSpan.h>
Public Types | |
using | difference_type = ptrdiff_t |
using | element_type = ElementType |
using | extents_type = Extents |
using | index_type = ptrdiff_t |
using | layout_type = LayoutPolicy |
using | mapping_type = typename layout_type::template mapping< extents_type > |
using | pointer = element_type * |
using | reference = element_type & |
using | value_type = std::remove_cv_t< element_type > |
Public Member Functions | |
constexpr | basic_mdspan () noexcept=default |
constexpr | basic_mdspan (basic_mdspan &&) noexcept=default |
constexpr | basic_mdspan (basic_mdspan const &) noexcept=default |
pointer | m_ptr = nullptr |
mapping_type | m_map |
template<class... IndexType> | |
constexpr | basic_mdspan (pointer p, IndexType... dynamic_extents) noexcept |
template<class... IndexType> | |
constexpr | basic_mdspan (pointer p, narrow, IndexType... dynamic_extents) noexcept |
template<class IndexType , vcl_size_t N> | |
constexpr | basic_mdspan (pointer p, std::array< IndexType, N > const &dynamic_extents) noexcept |
constexpr | basic_mdspan (pointer p, mapping_type const &m) noexcept |
template<class OtherElementType , class OtherExtents , class OtherLayoutPolicy > | |
constexpr | basic_mdspan (const basic_mdspan< OtherElementType, OtherExtents, OtherLayoutPolicy > &other) noexcept |
~basic_mdspan ()=default | |
constexpr basic_mdspan & | operator= (basic_mdspan const &) noexcept=default |
constexpr basic_mdspan & | operator= (basic_mdspan &&) noexcept=default |
template<class OtherElementType , class OtherExtents , class OtherLayoutPolicy > | |
constexpr basic_mdspan & | operator= (const basic_mdspan< OtherElementType, OtherExtents, OtherLayoutPolicy > &other) noexcept |
constexpr reference | operator[] (index_type) const noexcept |
template<class... IndexType> | |
constexpr reference | operator() (IndexType... indices) const noexcept |
template<class IndexType , vcl_size_t N> | |
constexpr reference | operator() (std::array< IndexType, N > const &indices) const noexcept |
constexpr extents_type | extents () const noexcept |
constexpr index_type | extent (vcl_size_t k) const noexcept |
constexpr index_type | size () const noexcept |
constexpr index_type | unique_size () const noexcept |
constexpr Span< element_type > | span () const noexcept |
constexpr pointer | data () const noexcept |
constexpr mapping_type | mapping () const noexcept |
constexpr bool | is_unique () const noexcept |
constexpr bool | is_contiguous () const noexcept |
constexpr bool | is_strided () const noexcept |
constexpr index_type | stride (vcl_size_t k) const noexcept |
static constexpr int | rank () noexcept |
static constexpr int | rank_dynamic () noexcept |
static constexpr index_type | static_extent (vcl_size_t k) noexcept |
static constexpr bool | is_always_unique () noexcept |
static constexpr bool | is_always_contiguous () noexcept |
static constexpr bool | is_always_strided () noexcept |
Multidensional Span class inspired by C++ p0009r9 draft proposal. [mdspan.basic], class template mdspan
Definition at line 41 of file otbMdSpan.h.
using otb::basic_mdspan< ElementType, Extents, LayoutPolicy >::difference_type = ptrdiff_t |
Definition at line 54 of file otbMdSpan.h.
using otb::basic_mdspan< ElementType, Extents, LayoutPolicy >::element_type = ElementType |
Definition at line 51 of file otbMdSpan.h.
using otb::basic_mdspan< ElementType, Extents, LayoutPolicy >::extents_type = Extents |
Definition at line 46 of file otbMdSpan.h.
using otb::basic_mdspan< ElementType, Extents, LayoutPolicy >::index_type = ptrdiff_t |
Definition at line 53 of file otbMdSpan.h.
using otb::basic_mdspan< ElementType, Extents, LayoutPolicy >::layout_type = LayoutPolicy |
Definition at line 47 of file otbMdSpan.h.
using otb::basic_mdspan< ElementType, Extents, LayoutPolicy >::mapping_type = typename layout_type::template mapping<extents_type> |
Definition at line 49 of file otbMdSpan.h.
using otb::basic_mdspan< ElementType, Extents, LayoutPolicy >::pointer = element_type* |
Definition at line 55 of file otbMdSpan.h.
using otb::basic_mdspan< ElementType, Extents, LayoutPolicy >::reference = element_type& |
Definition at line 56 of file otbMdSpan.h.
using otb::basic_mdspan< ElementType, Extents, LayoutPolicy >::value_type = std::remove_cv_t<element_type> |
Definition at line 52 of file otbMdSpan.h.
|
constexprdefaultnoexcept |
|
constexprdefaultnoexcept |
|
constexprdefaultnoexcept |
|
inlineexplicitconstexprnoexcept |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
Definition at line 68 of file otbMdSpan.h.
|
inlineconstexprnoexcept |
Constructs from extent list, ignore narrowing warnings. This flavour will ignore warning: narrowing conversion of messages without relying on the global -Wnarrowing
flag.
Useful to directly use size_t
values instead of ptrdiff_t
ones.
Definition at line 81 of file otbMdSpan.h.
|
inlineconstexprnoexcept |
Constructs from array of extents.
Definition at line 89 of file otbMdSpan.h.
|
inlineconstexprnoexcept |
Constructs from a layout representation.
Definition at line 96 of file otbMdSpan.h.
|
inlineconstexprnoexcept |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
Definition at line 100 of file otbMdSpan.h.
|
default |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
|
inlineconstexprnoexcept |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
Definition at line 157 of file otbMdSpan.h.
Referenced by otb::basic_mdspan< double, dynamic_extent, dynamic_extent >::span().
|
inlineconstexprnoexcept |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
Definition at line 141 of file otbMdSpan.h.
Referenced by otb::basic_mdspan< double, dynamic_extent, dynamic_extent >::size().
|
inlineconstexprnoexcept |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
Definition at line 139 of file otbMdSpan.h.
Referenced by otb::basic_mdspan< double, dynamic_extent, dynamic_extent >::extent().
|
inlinestaticconstexprnoexcept |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
Definition at line 163 of file otbMdSpan.h.
|
inlinestaticconstexprnoexcept |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
Definition at line 165 of file otbMdSpan.h.
|
inlinestaticconstexprnoexcept |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
Definition at line 161 of file otbMdSpan.h.
|
inlineconstexprnoexcept |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
Definition at line 172 of file otbMdSpan.h.
|
inlineconstexprnoexcept |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
Definition at line 174 of file otbMdSpan.h.
|
inlineconstexprnoexcept |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
Definition at line 170 of file otbMdSpan.h.
|
inlineconstexprnoexcept |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
Definition at line 168 of file otbMdSpan.h.
Referenced by otb::basic_mdspan< double, dynamic_extent, dynamic_extent >::is_contiguous(), otb::basic_mdspan< double, dynamic_extent, dynamic_extent >::is_strided(), otb::basic_mdspan< double, dynamic_extent, dynamic_extent >::is_unique(), otb::basic_mdspan< double, dynamic_extent, dynamic_extent >::span(), and otb::basic_mdspan< double, dynamic_extent, dynamic_extent >::stride().
|
inlineconstexprnoexcept |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
Definition at line 120 of file otbMdSpan.h.
|
inlineconstexprnoexcept |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
Definition at line 126 of file otbMdSpan.h.
|
constexprdefaultnoexcept |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
|
constexprdefaultnoexcept |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
|
inlineconstexprnoexcept |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
Definition at line 110 of file otbMdSpan.h.
|
constexprnoexcept |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
|
inlinestaticconstexprnoexcept |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
Definition at line 132 of file otbMdSpan.h.
Referenced by otb::basic_mdspan< double, dynamic_extent, dynamic_extent >::size().
|
inlinestaticconstexprnoexcept |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
Definition at line 134 of file otbMdSpan.h.
|
inlineconstexprnoexcept |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
Definition at line 143 of file otbMdSpan.h.
|
inlineconstexprnoexcept |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
Definition at line 155 of file otbMdSpan.h.
|
inlinestaticconstexprnoexcept |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
Definition at line 136 of file otbMdSpan.h.
|
inlineconstexprnoexcept |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
Definition at line 176 of file otbMdSpan.h.
|
constexprnoexcept |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
|
private |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
Definition at line 181 of file otbMdSpan.h.
Referenced by otb::basic_mdspan< double, dynamic_extent, dynamic_extent >::extents(), otb::basic_mdspan< double, dynamic_extent, dynamic_extent >::mapping(), otb::basic_mdspan< double, dynamic_extent, dynamic_extent >::operator()(), and otb::basic_mdspan< double, dynamic_extent, dynamic_extent >::operator=().
|
private |
Constructs from extent list. This flavour will emit warning: narrowing conversion of messages when passing size_t
values instead of ptrdiff_t
ones.
Definition at line 180 of file otbMdSpan.h.
Referenced by otb::basic_mdspan< double, dynamic_extent, dynamic_extent >::data(), otb::basic_mdspan< double, dynamic_extent, dynamic_extent >::operator()(), and otb::basic_mdspan< double, dynamic_extent, dynamic_extent >::operator=().