3ds Max C++ API Reference
Loading...
Searching...
No Matches
geo Namespace Reference

Namespaces

namespace  detail
 

Classes

class  span
 

Typedefs

using byte = unsigned char
 

Functions

template<typename ElementType , std::size_t Extent>
constexpr span< ElementType, Extent > make_span (span< ElementType, Extent > s) noexcept
 
template<typename T , std::size_t N>
constexpr span< T, N > make_span (T(&arr)[N]) noexcept
 
template<typename T , std::size_t N>
TCB_SPAN_ARRAY_CONSTEXPR span< T, N > make_span (std::array< T, N > &arr) noexcept
 
template<typename T , std::size_t N>
TCB_SPAN_ARRAY_CONSTEXPR span< const T, N > make_span (const std::array< T, N > &arr) noexcept
 
template<typename Container >
constexpr span< typename Container::value_type > make_span (Container &cont)
 
template<typename Container >
constexpr span< const typename Container::value_type > make_span (const Container &cont)
 
template<typename ElementType , std::size_t Extent>
span< const byte,((Extent==dynamic_extent) ? dynamic_extent :sizeof(ElementType) *Extent)> as_bytes (span< ElementType, Extent > s) noexcept
 
template<class ElementType , size_t Extent, typename std::enable_if<!std::is_const< ElementType >::value, int >::type = 0>
span< byte,((Extent==dynamic_extent) ? dynamic_extent :sizeof(ElementType) *Extent)> as_writable_bytes (span< ElementType, Extent > s) noexcept
 
template<std::size_t N, typename E , std::size_t S>
constexpr auto get (span< E, S > s) -> decltype(s[N])
 

Variables

TCB_SPAN_INLINE_VAR constexpr std::size_t dynamic_extent = SIZE_MAX
 

Typedef Documentation

◆ byte

using byte = unsigned char

Function Documentation

◆ make_span() [1/6]

constexpr span< ElementType, Extent > make_span ( span< ElementType, Extent >  s)
constexprnoexcept
533{
534 return s;
535}

◆ make_span() [2/6]

constexpr span< T, N > make_span ( T(&)  arr[N])
constexprnoexcept
539{
540 return { arr };
541}

◆ make_span() [3/6]

TCB_SPAN_ARRAY_CONSTEXPR span< T, N > make_span ( std::array< T, N > &  arr)
noexcept
545{
546 return { arr };
547}

◆ make_span() [4/6]

TCB_SPAN_ARRAY_CONSTEXPR span< const T, N > make_span ( const std::array< T, N > &  arr)
noexcept
551{
552 return { arr };
553}

◆ make_span() [5/6]

constexpr span< typename Container::value_type > make_span ( Container &  cont)
constexpr
557{
558 return { cont };
559}

◆ make_span() [6/6]

constexpr span< const typename Container::value_type > make_span ( const Container &  cont)
constexpr
563{
564 return { cont };
565}

◆ as_bytes()

span< const byte,((Extent==dynamic_extent) ? dynamic_extent :sizeof(ElementType) *Extent)> as_bytes ( span< ElementType, Extent >  s)
noexcept
568 : sizeof(ElementType) * Extent)> as_bytes(
569 span<ElementType, Extent> s) noexcept
570{
571 return { reinterpret_cast<const byte*>(s.data()), s.size_bytes() };
572}
Definition: geom_span.hpp:295
constexpr size_type size_bytes() const noexcept
Definition: geom_span.hpp:452
constexpr pointer data() const noexcept
Definition: geom_span.hpp:481
span< const byte,((Extent==dynamic_extent) ? dynamic_extent :sizeof(ElementType) *Extent)> as_bytes(span< ElementType, Extent > s) noexcept
Definition: geom_span.hpp:568

◆ as_writable_bytes()

span< byte,((Extent==dynamic_extent) ? dynamic_extent :sizeof(ElementType) *Extent)> as_writable_bytes ( span< ElementType, Extent >  s)
noexcept
575 : sizeof(ElementType) * Extent)> as_writable_bytes(
576 span<ElementType, Extent> s) noexcept
577{
578 return { reinterpret_cast<byte*>(s.data()), s.size_bytes() };
579}
span< byte,((Extent==dynamic_extent) ? dynamic_extent :sizeof(ElementType) *Extent)> as_writable_bytes(span< ElementType, Extent > s) noexcept
Definition: geom_span.hpp:575

◆ get()

constexpr auto get ( span< E, S >  s) -> decltype(s[N])
constexpr
583{
584 return s[N];
585}

Variable Documentation

◆ dynamic_extent

TCB_SPAN_INLINE_VAR constexpr std::size_t dynamic_extent = SIZE_MAX
constexpr