tfel
Loading...
Searching...
No Matches
tfel::math::ViewArrayPolicy< ValueType, IndexingPolicyType > Struct Template Reference

a standard array policy. More...

#include </home/runner/work/tfel/tfel/include/TFEL/Math/Array/View.hxx>

Public Types

using value_type = ValueType
 type of the values hold by the array.
using const_value_type = const value_type
 const type of the values hold by the array.
using reference
 type of a const reference to the value contained.
using const_reference
 type of a const reference to the value contained.
using storage_type
 type of the values hold by the array.
using IndexingPolicy = IndexingPolicyType
 the underlying indexing policy

Static Public Member Functions

static constexpr ViewArrayPolicy::const_reference make_const_reference (const typename ViewArrayPolicy::storage_type &v) noexcept
 make a const_reference from a const reference to a base type
static constexpr ViewArrayPolicy::reference make_reference (typename ViewArrayPolicy::storage_type &v) noexcept
 make a reference from a reference to a base type

Static Public Attributes

static constexpr auto isMakeConstReferenceTrivial
static constexpr auto isMakeReferenceTrivial = !isQuantity<ValueType>()

Detailed Description

template<typename ValueType, typename IndexingPolicyType>
struct tfel::math::ViewArrayPolicy< ValueType, IndexingPolicyType >

a standard array policy.

Member Typedef Documentation

◆ const_reference

template<typename ValueType, typename IndexingPolicyType>
using tfel::math::ViewArrayPolicy< ValueType, IndexingPolicyType >::const_reference
Initial value:

type of a const reference to the value contained.

◆ reference

template<typename ValueType, typename IndexingPolicyType>
using tfel::math::ViewArrayPolicy< ValueType, IndexingPolicyType >::reference
Initial value:

type of a const reference to the value contained.

◆ storage_type

template<typename ValueType, typename IndexingPolicyType>
using tfel::math::ViewArrayPolicy< ValueType, IndexingPolicyType >::storage_type
Initial value:
std::
conditional_t<isQuantity<ValueType>(), base_type<ValueType>, ValueType>

type of the values hold by the array.

Member Data Documentation

◆ isMakeConstReferenceTrivial

template<typename ValueType, typename IndexingPolicyType>
auto tfel::math::ViewArrayPolicy< ValueType, IndexingPolicyType >::isMakeConstReferenceTrivial
staticconstexpr
Initial value:
=
TFEL_HOST_DEVICE constexpr bool isQuantity()
a function testing if a type is a quantity
Definition Forward/qt.hxx:168

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