MCPcopy Create free account
hub / github.com/Kitware/VTK / GetTuple

Function GetTuple

Common/Core/vtkDataArrayTupleRange_Generic.h:1019–1031  ·  view source on GitHub ↗

Caller must ensure that there are size() elements in array.

Source from the content-addressed store, hash-verified

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(

Calls 3

GetNumberOfComponentsMethod · 0.45
GetTupleMethod · 0.45
GetTypedTupleMethod · 0.45

Tested by

no test coverage detected