Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions
gmx::detail::extents_analyse< 0 > Struct Template Reference

#include <gromacs/mdspan/extents.h>

Description

template<>
struct gmx::detail::extents_analyse< 0 >

Specialisation for rank 0 extents analysis. Ends recursive rank analysis.

Public Member Functions

constexpr extents_analyse ()
 Trivial constructor.
 
template<std::size_t Rank>
 extents_analyse (const std::array< std::ptrdiff_t, Rank > &, const std::size_t)
 Construct from array and rank, doing nothing.
 

Static Public Member Functions

static constexpr std::size_t rank () noexcept
 Rank of extent of rank 0. More...
 
static constexpr std::size_t rank_dynamic () noexcept
 Dynamic rank of extent of rank 0. More...
 
static constexpr std::ptrdiff_t extent (const std::size_t) noexcept
 Extent of rank 0 is 1, ensuring that product of extents yields required size and not zero. NOTE changed from ORNL reference implementation in making this static constexpr instead of constexpr .. const.
 
static constexpr std::ptrdiff_t static_extent (const std::size_t) noexcept
 Static extent of rank 0 is 1, ensuring that product of extents yields required size and not zero.
 

Member Function Documentation

static constexpr std::size_t gmx::detail::extents_analyse< 0 >::rank ( )
inlinestaticnoexcept

Rank of extent of rank 0.

Returns
0
static constexpr std::size_t gmx::detail::extents_analyse< 0 >::rank_dynamic ( )
inlinestaticnoexcept

Dynamic rank of extent of rank 0.

Returns
0

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