|
|
constexpr | AccessPolicyBasedView (const AccessPolicyBasedView &) noexcept=default |
| | copy constructor
|
|
constexpr | AccessPolicyBasedView (AccessPolicyBasedView &&) noexcept=default |
| | move constructor
|
| constexpr const auto & | getIndexingPolicy () const |
|
TFEL_HOST_DEVICE constexpr array_policy::const_reference | operator[] (const typename IndexingPolicyType::size_type i) const noexcept |
|
TFEL_HOST_DEVICE constexpr array_policy::reference | operator[] (const typename IndexingPolicyType::size_type i) noexcept |
|
template<typename... Indices> |
| TFEL_HOST_DEVICE constexpr array_policy::const_reference | operator() (const Indices... i) const noexcept |
|
TFEL_HOST_DEVICE constexpr array_policy::const_reference | operator() (const std::array< typename IndexingPolicyType::size_type, IndexingPolicyType::arity > &i) const noexcept |
template<typename... Indices>
requires (!is_const) |
| TFEL_HOST_DEVICE constexpr array_policy::reference | operator() (const Indices... i) noexcept |
|
TFEL_HOST_DEVICE constexpr array_policy::reference | operator() (const std::array< typename IndexingPolicyType::size_type, IndexingPolicyType::arity > &i) noexcept |
|
TFEL_HOST_DEVICE constexpr AccessPolicyBasedView & | operator= (const AccessPolicyBasedView &src) noexcept |
| | assignement operator
|
template<typename OtherArray>
requires ( isAssignableTo<OtherArray, MappedType>()) |
| TFEL_HOST_DEVICE constexpr AccessPolicyBasedView & | operator= (const OtherArray &src) |
| | assign values values from an other array
|
template<typename OtherArray>
requires ( isAssignableTo<OtherArray, MappedType>()) |
| TFEL_HOST_DEVICE constexpr AccessPolicyBasedView & | operator+= (const OtherArray &src) |
template<typename OtherArray>
requires ( isAssignableTo<OtherArray, MappedType>()) |
| TFEL_HOST_DEVICE constexpr AccessPolicyBasedView & | operator-= (const OtherArray &src) |
template<typename ValueType2>
requires ( isAssignableTo< BinaryOperationResult<ValueType2, numeric_type<MappedType>, OpMult>, numeric_type<MappedType>>()) |
| TFEL_HOST_DEVICE constexpr AccessPolicyBasedView & | operator*= (const ValueType2 &s) noexcept |
template<typename ValueType2>
requires ( isAssignableTo< BinaryOperationResult<numeric_type<MappedType>, ValueType2, OpDiv>, numeric_type<MappedType>>()) |
| TFEL_HOST_DEVICE constexpr AccessPolicyBasedView & | operator/= (const ValueType2 &s) noexcept |
|
| ~AccessPolicyBasedView () noexcept=default |
| | destructor
|
|
|
template<typename FunctorType> |
| TFEL_HOST_DEVICE constexpr void | iterate (const FunctorType &f) const |
|
template<typename OtherArray> |
| TFEL_HOST_DEVICE constexpr void | assign (const OtherArray &src) noexcept |
|
template<typename OtherArray> |
| TFEL_HOST_DEVICE constexpr void | addAndAssign (const OtherArray &src) noexcept |
|
template<typename OtherArray> |
| TFEL_HOST_DEVICE constexpr void | substractAndAssign (const OtherArray &src) noexcept |
template<MappableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType, typename AccessPolicy>
struct tfel::math::AccessPolicyBasedView< MappedType, IndexingPolicyType, AccessPolicy >
view of an object whose components are not stored contiguously
- Template Parameters
-
| MappedType | type of the object mapped |
| IndexingPolicyType | indexing policy used by the view |
| AccessPolicy | policy giving access to the component associated with an index |