access policy storing a pointer to the first component of the mapped object and the stride between two successive components
More...
#include </home/runner/work/tfel/tfel/include/TFEL/Math/Array/StridedView.hxx>
|
|
TFEL_HOST_DEVICE constexpr | StridedAccessPolicy (const ViewDataPointerType< MappedType > p, std::size_t s) noexcept |
| | default constructor
|
|
constexpr | StridedAccessPolicy (const StridedAccessPolicy &) noexcept=default |
| | copy constructor
|
|
constexpr | StridedAccessPolicy (StridedAccessPolicy &&) noexcept=default |
| | move constructor
|
| TFEL_HOST_DEVICE constexpr auto | data () const noexcept |
|
|
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 |
|
|
const ViewDataPointerType< MappedType > | ptr |
| | pointer to the memory buffer
|
|
std::size_t | stride |
| | data stride
|
template<MappableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType>
struct tfel::math::StridedAccessPolicy< MappedType, IndexingPolicyType >
access policy storing a pointer to the first component of the mapped object and the stride between two successive components
◆ data()
template<MappableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType>
|
|
inlinenodiscardconstexprnoexcept |
- Returns
- the pointer to the first component of the mapped object and the stride between successive components
template<MappableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType>
Initial value:= [] {
typename MappedType::indexing_policy p;
return p.size();
}()
The documentation for this struct was generated from the following file: