Caller must ensure that there are size() elements in array.
| 1017 | |
| 1018 | // Caller must ensure that there are size() elements in array. |
| 1019 | VTK_ITER_INLINE void GetTuple(APIType* tuple) const noexcept |
| 1020 | { |
| 1021 | VTK_ITER_ASSUME(this->NumComps.value > 0); |
| 1022 | VTK_ITER_ASSUME(this->Array->GetNumberOfComponents() == this->NumComps.value); |
| 1023 | if constexpr (std::is_same<ArrayType, vtkDataArray>::value) |
| 1024 | { |
| 1025 | this->Array->GetTuple(this->TupleId, tuple); |
| 1026 | } |
| 1027 | else |
| 1028 | { |
| 1029 | this->Array->GetTypedTuple(this->TupleId, tuple); |
| 1030 | } |
| 1031 | } |
| 1032 | |
| 1033 | template <typename VT = APIType> |
| 1034 | typename std::enable_if_t<!std::is_same_v<VT, double>> VTK_ITER_INLINE GetTuple( |
no test coverage detected