tfel
Loading...
Searching...
No Matches
tfel::math::ScatteredAccessPolicy< MappedType, IndexingPolicyType > Struct Template Reference

access policy storing one pointer per component of the mapped object More...

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

Inheritance diagram for tfel::math::ScatteredAccessPolicy< MappedType, IndexingPolicyType >:
tfel::math::AccessPolicyBasedView< MappedType, IndexingPolicyType, ScatteredAccessPolicy< MappedType, IndexingPolicyType > >

Public Member Functions

TFEL_HOST_DEVICE constexpr ScatteredAccessPolicy (const std::array< ViewDataPointerType< MappedType >, N > &p) noexcept
 default constructor
TFEL_HOST_DEVICE constexpr ScatteredAccessPolicy (const std::span< const ViewDataPointerType< MappedType >, N > &p) noexcept
 default constructor
constexpr ScatteredAccessPolicy (const ScatteredAccessPolicy &) noexcept=default
 copy constructor
constexpr ScatteredAccessPolicy (ScatteredAccessPolicy &&) noexcept=default
 move constructor

Static Public Attributes

static constexpr auto N

Protected Member Functions

TFEL_HOST_DEVICE constexpr auto & getValue (const typename IndexingPolicyType::size_type i) noexcept
TFEL_HOST_DEVICE constexpr const auto & getValue (const typename IndexingPolicyType::size_type i) const noexcept

Protected Attributes

std::array< ViewDataPointerType< MappedType >, N > ptrs
 pointer to the memory buffer

Detailed Description

template<MappableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType>
struct tfel::math::ScatteredAccessPolicy< MappedType, IndexingPolicyType >

access policy storing one pointer per component of the mapped object

Member Data Documentation

◆ N

template<MappableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType>
auto tfel::math::ScatteredAccessPolicy< MappedType, IndexingPolicyType >::N
inlinestaticconstexpr
Initial value:
= [] {
typename MappedType::indexing_policy p;
return p.size();
}()

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